From Gustav at cactus.dk Sat Mar 1 05:14:46 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Sat, 01 Mar 2008 12:14:46 +0100 Subject: [AccessD] Progress Meter ? Message-ID: Hi Robert Try with: shpProg.Width = shpProgContainer.Width * (mBytesTransferred / mFileSize) /gustav >>> robert at servicexp.com 29-02-2008 22:43 >>> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hooooowdy All, Preface: ~ I'm downloading, from ftp. The class raises an event which contains mBytesTransferred. mFileSize is the total size of the file being downloaded. shpProgContainer is a rectangle thats "behind" the shpProg. shpProg is a rectangle that is used as the meter. ~ Can anyone tell me why this doesn't work.. I get an Error 6 Overflow when downloading large files. shpProg.Width = (shpProgContainer.Width * mBytesTransferred) / mFileSize If I Debug.Print "Bar: " & shpProg.Width & " BarContainer: " & shpProgContainer.Width & " Bytes: " & mBytesTransferred & " FileSize: " & mFileSize I get Bar: 128 BarContainer: 3270 Bytes: 350192 FileSize: 8981235 Bar: 128 BarContainer: 3270 Bytes: 352240 FileSize: 8981235 Bar: 129 BarContainer: 3270 Bytes: 353584 FileSize: 8981235 Bar: 129 BarContainer: 3270 Bytes: 355632 FileSize: 8981235 Bar: 130 BarContainer: 3270 Bytes: 357680 FileSize: 8981235 Bar: 131 BarContainer: 3270 Bytes: 359024 FileSize: 8981235 Bar: 131 BarContainer: 3270 Bytes: 360384 FileSize: 8981235 Bar: 131 BarContainer: 3270 Bytes: 360448 FileSize: 8981235 Bar: 132 BarContainer: 3270 Bytes: 361808 FileSize: 8981235 Bar: 132 BarContainer: 3270 Bytes: 363168 FileSize: 8981235 Bar: 133 BarContainer: 3270 Bytes: 364528 FileSize: 8981235 Bar: 133 BarContainer: 3270 Bytes: 366576 FileSize: 8981235 Bar: 134 BarContainer: 3270 Bytes: 368624 FileSize: 8981235 Bar: 135 BarContainer: 3270 Bytes: 370672 FileSize: 8981235 Bar: 136 BarContainer: 3270 Bytes: 372720 FileSize: 8981235 Bar: 136 BarContainer: 3270 Bytes: 374048 FileSize: 8981235 Bar: 137 BarContainer: 3270 Bytes: 376096 FileSize: 8981235 Bar: 137 BarContainer: 3270 Bytes: 376768 FileSize: 8981235 Bar: 137 BarContainer: 3270 Bytes: 376832 FileSize: 8981235 Bar: 138 BarContainer: 3270 Bytes: 378192 FileSize: 8981235 Bar: 138 BarContainer: 3270 Bytes: 380240 FileSize: 8981235 Bar: 139 BarContainer: 3270 Bytes: 382288 FileSize: 8981235 Bar: 140 BarContainer: 3270 Bytes: 384336 FileSize: 8981235 Bar: 141 BarContainer: 3270 Bytes: 386384 FileSize: 8981235 Bar: 141 BarContainer: 3270 Bytes: 387712 FileSize: 8981235 Bar: 142 BarContainer: 3270 Bytes: 389760 FileSize: 8981235 Bar: 143 BarContainer: 3270 Bytes: 391792 FileSize: 8981235 Bar: 143 BarContainer: 3270 Bytes: 393152 FileSize: 8981235 Bar: 143 BarContainer: 3270 Bytes: 393216 FileSize: 8981235 Bar: 144 BarContainer: 3270 Bytes: 394576 FileSize: 8981235 Bar: 144 BarContainer: 3270 Bytes: 396624 FileSize: 8981235 Bar: 145 BarContainer: 3270 Bytes: 397296 FileSize: 8981235 Bar: 145 BarContainer: 3270 Bytes: 398656 FileSize: 8981235 Bar: 146 BarContainer: 3270 Bytes: 400704 FileSize: 8981235 Bar: 147 BarContainer: 3270 Bytes: 402752 FileSize: 8981235 Bar: 147 BarContainer: 3270 Bytes: 404800 FileSize: 8981235 Bar: 148 BarContainer: 3270 Bytes: 406816 FileSize: 8981235 Bar: 149 BarContainer: 3270 Bytes: 408864 FileSize: 8981235 Bar: 149 BarContainer: 3270 Bytes: 409536 FileSize: 8981235 Bar: 149 BarContainer: 3270 Bytes: 409600 FileSize: 8981235 Bar: 150 BarContainer: 3270 Bytes: 410960 FileSize: 8981235 Bar: 150 BarContainer: 3270 Bytes: 412320 FileSize: 8981235 Bar: 151 BarContainer: 3270 Bytes: 414368 FileSize: 8981235 Bar: 152 BarContainer: 3270 Bytes: 416400 FileSize: 8981235 Bar: 152 BarContainer: 3270 Bytes: 418448 FileSize: 8981235 Bar: 153 BarContainer: 3270 Bytes: 420496 FileSize: 8981235 Bar: 154 BarContainer: 3270 Bytes: 421840 FileSize: 8981235 Bar: 154 BarContainer: 3270 Bytes: 423888 FileSize: 8981235 Bar: 155 BarContainer: 3270 Bytes: 425920 FileSize: 8981235 Bar: 155 BarContainer: 3270 Bytes: 425984 FileSize: 8981235 Bar: 156 BarContainer: 3270 Bytes: 427344 FileSize: 8981235 Bar: 156 BarContainer: 3270 Bytes: 429392 FileSize: 8981235 Bar: 157 BarContainer: 3270 Bytes: 430064 FileSize: 8981235 Bar: 157 BarContainer: 3270 Bytes: 431424 FileSize: 8981235 Bar: 158 BarContainer: 3270 Bytes: 433472 FileSize: 8981235 Bar: 158 BarContainer: 3270 Bytes: 434144 FileSize: 8981235 Bar: 159 BarContainer: 3270 Bytes: 436192 FileSize: 8981235 Bar: 160 BarContainer: 3270 Bytes: 438240 FileSize: 8981235 Bar: 160 BarContainer: 3270 Bytes: 439584 FileSize: 8981235 Bar: 161 BarContainer: 3270 Bytes: 441632 FileSize: 8981235 Bar: 161 BarContainer: 3270 Bytes: 442304 FileSize: 8981235 Bar: 161 BarContainer: 3270 Bytes: 442368 FileSize: 8981235 Bar: 162 BarContainer: 3270 Bytes: 443728 FileSize: 8981235 Bar: 162 BarContainer: 3270 Bytes: 445776 FileSize: 8981235 Bar: 163 BarContainer: 3270 Bytes: 446448 FileSize: 8981235 Bar: 163 BarContainer: 3270 Bytes: 447808 FileSize: 8981235 Bar: 164 BarContainer: 3270 Bytes: 449856 FileSize: 8981235 Bar: 165 BarContainer: 3270 Bytes: 451888 FileSize: 8981235 Bar: 165 BarContainer: 3270 Bytes: 453936 FileSize: 8981235 Bar: 166 BarContainer: 3270 Bytes: 455968 FileSize: 8981235 Bar: 167 BarContainer: 3270 Bytes: 458016 FileSize: 8981235 Bar: 167 BarContainer: 3270 Bytes: 458688 FileSize: 8981235 Bar: 167 BarContainer: 3270 Bytes: 458752 FileSize: 8981235 Bar: 168 BarContainer: 3270 Bytes: 460112 FileSize: 8981235 Bar: 168 BarContainer: 3270 Bytes: 462160 FileSize: 8981235 Bar: 169 BarContainer: 3270 Bytes: 462832 FileSize: 8981235 Bar: 169 BarContainer: 3270 Bytes: 464880 FileSize: 8981235 Bar: 170 BarContainer: 3270 Bytes: 466912 FileSize: 8981235 Bar: 171 BarContainer: 3270 Bytes: 468960 FileSize: 8981235 Bar: 171 BarContainer: 3270 Bytes: 471008 FileSize: 8981235 Bar: 172 BarContainer: 3270 Bytes: 472352 FileSize: 8981235 Bar: 173 BarContainer: 3270 Bytes: 474400 FileSize: 8981235 Bar: 173 BarContainer: 3270 Bytes: 475072 FileSize: 8981235 Bar: 173 BarContainer: 3270 Bytes: 475136 FileSize: 8981235 Bar: 173 BarContainer: 3270 Bytes: 476496 FileSize: 8981235 Bar: 174 BarContainer: 3270 Bytes: 478544 FileSize: 8981235 Bar: 175 BarContainer: 3270 Bytes: 480576 FileSize: 8981235 Bar: 176 BarContainer: 3270 Bytes: 482624 FileSize: 8981235 Bar: 176 BarContainer: 3270 Bytes: 484656 FileSize: 8981235 Bar: 177 BarContainer: 3270 Bytes: 486704 FileSize: 8981235 Bar: 178 BarContainer: 3270 Bytes: 488752 FileSize: 8981235 Bar: 178 BarContainer: 3270 Bytes: 490096 FileSize: 8981235 Bar: 179 BarContainer: 3270 Bytes: 491456 FileSize: 8981235 Bar: 179 BarContainer: 3270 Bytes: 492816 FileSize: 8981235 Bar: 180 BarContainer: 3270 Bytes: 494864 FileSize: 8981235 Bar: 180 BarContainer: 3270 Bytes: 495536 FileSize: 8981235 Bar: 181 BarContainer: 3270 Bytes: 496896 FileSize: 8981235 Bar: 182 BarContainer: 3270 Bytes: 498944 FileSize: 8981235 Bar: 182 BarContainer: 3270 Bytes: 499616 FileSize: 8981235 Bar: 183 BarContainer: 3270 Bytes: 501664 FileSize: 8981235 Bar: 183 BarContainer: 3270 Bytes: 503712 FileSize: 8981235 Bar: 184 BarContainer: 3270 Bytes: 505056 FileSize: 8981235 Bar: 185 BarContainer: 3270 Bytes: 507104 FileSize: 8981235 Bar: 185 BarContainer: 3270 Bytes: 507904 FileSize: 8981235 Bar: 185 BarContainer: 3270 Bytes: 509264 FileSize: 8981235 Bar: 186 BarContainer: 3270 Bytes: 510624 FileSize: 8981235 Bar: 187 BarContainer: 3270 Bytes: 512672 FileSize: 8981235 Bar: 187 BarContainer: 3270 Bytes: 514720 FileSize: 8981235 Bar: 188 BarContainer: 3270 Bytes: 516768 FileSize: 8981235 Bar: 189 BarContainer: 3270 Bytes: 518816 FileSize: 8981235 Bar: 189 BarContainer: 3270 Bytes: 520144 FileSize: 8981235 Bar: 190 BarContainer: 3270 Bytes: 522192 FileSize: 8981235 Bar: 191 BarContainer: 3270 Bytes: 524240 FileSize: 8981235 Bar: 191 BarContainer: 3270 Bytes: 524288 FileSize: 8981235 Bar: 191 BarContainer: 3270 Bytes: 525648 FileSize: 8981235 Bar: 192 BarContainer: 3270 Bytes: 527696 FileSize: 8981235 Bar: 192 BarContainer: 3270 Bytes: 528368 FileSize: 8981235 Bar: 193 BarContainer: 3270 Bytes: 529728 FileSize: 8981235 Bar: 193 BarContainer: 3270 Bytes: 531088 FileSize: 8981235 Bar: 194 BarContainer: 3270 Bytes: 532448 FileSize: 8981235 Bar: 194 BarContainer: 3270 Bytes: 533808 FileSize: 8981235 Bar: 195 BarContainer: 3270 Bytes: 535168 FileSize: 8981235 Bar: 195 BarContainer: 3270 Bytes: 536528 FileSize: 8981235 Bar: 196 BarContainer: 3270 Bytes: 537888 FileSize: 8981235 Bar: 196 BarContainer: 3270 Bytes: 539248 FileSize: 8981235 Bar: 197 BarContainer: 3270 Bytes: 540608 FileSize: 8981235 Bar: 197 BarContainer: 3270 Bytes: 541968 FileSize: 8981235 Bar: 198 BarContainer: 3270 Bytes: 543328 FileSize: 8981235 Bar: 198 BarContainer: 3270 Bytes: 544688 FileSize: 8981235 Bar: 199 BarContainer: 3270 Bytes: 546048 FileSize: 8981235 Bar: 200 BarContainer: 3270 Bytes: 548096 FileSize: 8981235 Bar: 200 BarContainer: 3270 Bytes: 550144 FileSize: 8981235 Bar: 201 BarContainer: 3270 Bytes: 552192 FileSize: 8981235 Bar: 201 BarContainer: 3270 Bytes: 552848 FileSize: 8981235 Bar: 202 BarContainer: 3270 Bytes: 554208 FileSize: 8981235 Bar: 203 BarContainer: 3270 Bytes: 556256 FileSize: 8981235 Bar: 203 BarContainer: 3270 Bytes: 556928 FileSize: 8981235 Bar: 203 BarContainer: 3270 Bytes: 558288 FileSize: 8981235 Bar: 204 BarContainer: 3270 Bytes: 560336 FileSize: 8981235 Bar: 204 BarContainer: 3270 Bytes: 561008 FileSize: 8981235 Bar: 205 BarContainer: 3270 Bytes: 563056 FileSize: 8981235 Bar: 206 BarContainer: 3270 Bytes: 565104 FileSize: 8981235 Bar: 206 BarContainer: 3270 Bytes: 566448 FileSize: 8981235 Bar: 207 BarContainer: 3270 Bytes: 568496 FileSize: 8981235 Bar: 207 BarContainer: 3270 Bytes: 569168 FileSize: 8981235 Bar: 208 BarContainer: 3270 Bytes: 570528 FileSize: 8981235 Bar: 208 BarContainer: 3270 Bytes: 571888 FileSize: 8981235 Bar: 209 BarContainer: 3270 Bytes: 573936 FileSize: 8981235 Bar: 209 BarContainer: 3270 Bytes: 574608 FileSize: 8981235 Bar: 210 BarContainer: 3270 Bytes: 576656 FileSize: 8981235 Bar: 211 BarContainer: 3270 Bytes: 578704 FileSize: 8981235 Bar: 211 BarContainer: 3270 Bytes: 580048 FileSize: 8981235 Bar: 212 BarContainer: 3270 Bytes: 582096 FileSize: 8981235 Bar: 212 BarContainer: 3270 Bytes: 582768 FileSize: 8981235 Bar: 213 BarContainer: 3270 Bytes: 584816 FileSize: 8981235 Bar: 214 BarContainer: 3270 Bytes: 586864 FileSize: 8981235 Bar: 214 BarContainer: 3270 Bytes: 588912 FileSize: 8981235 Bar: 215 BarContainer: 3270 Bytes: 589824 FileSize: 8981235 Bar: 215 BarContainer: 3270 Bytes: 591184 FileSize: 8981235 Bar: 216 BarContainer: 3270 Bytes: 592544 FileSize: 8981235 Bar: 216 BarContainer: 3270 Bytes: 594592 FileSize: 8981235 Bar: 217 BarContainer: 3270 Bytes: 596640 FileSize: 8981235 Bar: 218 BarContainer: 3270 Bytes: 597984 FileSize: 8981235 Bar: 218 BarContainer: 3270 Bytes: 600032 FileSize: 8981235 Bar: 219 BarContainer: 3270 Bytes: 602080 FileSize: 8981235 Bar: 220 BarContainer: 3270 Bytes: 603424 FileSize: 8981235 Bar: 220 BarContainer: 3270 Bytes: 605472 FileSize: 8981235 Bar: 221 BarContainer: 3270 Bytes: 606144 FileSize: 8981235 Bar: 221 BarContainer: 3270 Bytes: 607504 FileSize: 8981235 Bar: 222 BarContainer: 3270 Bytes: 608864 FileSize: 8981235 Bar: 222 BarContainer: 3270 Bytes: 610224 FileSize: 8981235 Bar: 223 BarContainer: 3270 Bytes: 612272 FileSize: 8981235 Bar: 224 BarContainer: 3270 Bytes: 614304 FileSize: 8981235 Bar: 224 BarContainer: 3270 Bytes: 616352 FileSize: 8981235 Bar: 225 BarContainer: 3270 Bytes: 618400 FileSize: 8981235 Bar: 226 BarContainer: 3270 Bytes: 619744 FileSize: 8981235 Bar: 226 BarContainer: 3270 Bytes: 621792 FileSize: 8981235 Bar: 227 BarContainer: 3270 Bytes: 622592 FileSize: 8981235 Bar: 227 BarContainer: 3270 Bytes: 623952 FileSize: 8981235 Bar: 228 BarContainer: 3270 Bytes: 625312 FileSize: 8981235 Bar: 228 BarContainer: 3270 Bytes: 626672 FileSize: 8981235 Bar: 229 BarContainer: 3270 Bytes: 628720 FileSize: 8981235 Bar: 230 BarContainer: 3270 Bytes: 630768 FileSize: 8981235 Bar: 230 BarContainer: 3270 Bytes: 632816 FileSize: 8981235 Bar: 231 BarContainer: 3270 Bytes: 634864 FileSize: 8981235 Bar: 232 BarContainer: 3270 Bytes: 636912 FileSize: 8981235 Bar: 233 BarContainer: 3270 Bytes: 638960 FileSize: 8981235 Bar: 233 BarContainer: 3270 Bytes: 638976 FileSize: 8981235 Bar: 233 BarContainer: 3270 Bytes: 640336 FileSize: 8981235 Bar: 234 BarContainer: 3270 Bytes: 641696 FileSize: 8981235 Bar: 234 BarContainer: 3270 Bytes: 643744 FileSize: 8981235 Bar: 235 BarContainer: 3270 Bytes: 645776 FileSize: 8981235 Bar: 236 BarContainer: 3270 Bytes: 647136 FileSize: 8981235 Bar: 236 BarContainer: 3270 Bytes: 649184 FileSize: 8981235 Bar: 237 BarContainer: 3270 Bytes: 651216 FileSize: 8981235 Bar: 238 BarContainer: 3270 Bytes: 653264 FileSize: 8981235 Bar: 239 BarContainer: 3270 Bytes: 655296 FileSize: 8981235 Bar: 239 BarContainer: 3270 Bytes: 655360 FileSize: 8981235 Bar: 239 BarContainer: 3270 Bytes: 656720 FileSize: 8981235 Fails on the next event. TYIA ~Robert -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHyHyJ72dSYCwH8FQRAi5gAKCad4+M6omZ4WjPaaQxAYzriLU7lQCgtVO/ 5DrT0PfyqE+/oG8U1F85E4o= =N4MQ -----END PGP SIGNATURE----- From adtp at airtelmail.in Sat Mar 1 07:25:53 2008 From: adtp at airtelmail.in (A.D.Tejpal) Date: Sat, 1 Mar 2008 18:55:53 +0530 Subject: [AccessD] Cnts in sets References: <005601c87a49$f0c8ec80$0201a8c0@M90> Message-ID: <004f01c87ba0$38a8a7a0$0964a27a@personald6374f> John, You might like to have a look at my sample db named TrackMissingAndDuplicates and see whether it could help. It is available at Rogers Access Library (other developers library). Link - http://www.rogersaccesslibrary.com/OtherLibraries.asp#Tejpal,A.D. Gist of holes (missing sequential values) is displayed, giving the start and end values of each hole. In the situation explained by you, before testing for holes, the source data can first be filtered so as to eliminate Null values. Note - This sample is for Access 2000 / 2003 desktop and the execution speed has not been tested in the context of huge tables of the size mentioned by you. However, if the underlying principle is found applicable, suitable adaptation could be considered, say by testing smaller chunks at a time in such a manner that there are always some common records between adjacent chunks (i.e the last record of a given sub-table is also the first record of next sub-table). Best wishes, A.D.Tejpal ------------ ----- Original Message ----- From: jwcolby To: 'Access Developers discussion and problem solving' ; 'Discussion concerning MS SQL Server' Sent: Friday, February 29, 2008 02:08 Subject: [AccessD] Cnts in sets I have a table with 50 million records, which is a subset of a bigger table of 65 million records. IOW, of 65 million records, only about 50 million were selected for inclusion in the smaller table. The reason for this is that of the 65 million records, ~15 million had addresses that were undeliverable. I need a way to "view" or understand the distribution of PKIDs across that table. Back in the beginning I performed a very manual labor intensive task of processing these records through accuzip (address validation) where I had to break the 65 million records down into CSV files of ~1.5 million records, export them out to Accuzip, then reimport the validated results back into SQL Server, filter out bad records etc. I have discovered a "hole" in my results where there are no PKIDs across a range of hundreds of thousands of records. I do not know how big the "hole" is. Under normal circumstances (a visual view for example) you will see a few missing PKIDs in a range of 20 or 30, but never consecutive sets of missing records. But I have at least one "hole" where hundreds of thousands are missing. I need a way to find the "edges" of the hole of the missing PKIDs. IE I need to view the distribution of numbers across the range of numbers. It should be a "flat line" if you will where every once in awhile a number is missing, but where the hole is will be a drop to zero for an extended range. Or something. I have no idea how to "see" this data. I have a process that is exporting the validated records back out to be revalidated (people move). It is this export program (which I wrote) that discovered the hole, and I can if necessary use this program to find the hole but I thought some of you folks might know of a way to do this in SQL. Something like specify a range of numbers, a from/to and get a count, rinse / repeat. I did this manually to verify that a 1 million record range came up about 400 K short of the normal - ~800K is a "normal" count within a given million records, the "hole" only had ~400K records. BTW, I found the hole because I normally export "100K" records at a time into a file , and was filling a recordset with a WHERE PKID >=X and <=X+100K (which of course does not provide 100K but around 80K) and was looking for an empty recordset to tell me that I was done. Well... when I hit the "hole" I got the empty recordset and my process was saying it was done, except it had only exported about twenty 1 million record files out of a total 50 million records. oooops. So, I have a hole. I need to know if there are any other holes (smaller than my 100k export piece) but I really need a generic way to sense such a hole in my PKs. Any ideas? John W. Colby Colby Consulting www.ColbyConsulting.com From jwcolby at colbyconsulting.com Sat Mar 1 08:05:00 2008 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 1 Mar 2008 09:05:00 -0500 Subject: [AccessD] Cnts in sets In-Reply-To: <004f01c87ba0$38a8a7a0$0964a27a@personald6374f> References: <005601c87a49$f0c8ec80$0201a8c0@M90> <004f01c87ba0$38a8a7a0$0964a27a@personald6374f> Message-ID: <001601c87ba5$3e18c490$0201a8c0@M90> Before I launch into that you should understand that missing values are OK. Of the original 64 million records, roughly 13 million are missing, thus there are missing PKs throughout the data, but they are just "one here and there", in fact on average one every 8 records. It is only "large holes" (I understand that is a rather nebulous term) that I care about. 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 A.D.Tejpal Sent: Saturday, March 01, 2008 8:26 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Cnts in sets John, You might like to have a look at my sample db named TrackMissingAndDuplicates and see whether it could help. It is available at Rogers Access Library (other developers library). Link - http://www.rogersaccesslibrary.com/OtherLibraries.asp#Tejpal,A.D. Gist of holes (missing sequential values) is displayed, giving the start and end values of each hole. In the situation explained by you, before testing for holes, the source data can first be filtered so as to eliminate Null values. Note - This sample is for Access 2000 / 2003 desktop and the execution speed has not been tested in the context of huge tables of the size mentioned by you. However, if the underlying principle is found applicable, suitable adaptation could be considered, say by testing smaller chunks at a time in such a manner that there are always some common records between adjacent chunks (i.e the last record of a given sub-table is also the first record of next sub-table). Best wishes, A.D.Tejpal ------------ ----- Original Message ----- From: jwcolby To: 'Access Developers discussion and problem solving' ; 'Discussion concerning MS SQL Server' Sent: Friday, February 29, 2008 02:08 Subject: [AccessD] Cnts in sets I have a table with 50 million records, which is a subset of a bigger table of 65 million records. IOW, of 65 million records, only about 50 million were selected for inclusion in the smaller table. The reason for this is that of the 65 million records, ~15 million had addresses that were undeliverable. I need a way to "view" or understand the distribution of PKIDs across that table. Back in the beginning I performed a very manual labor intensive task of processing these records through accuzip (address validation) where I had to break the 65 million records down into CSV files of ~1.5 million records, export them out to Accuzip, then reimport the validated results back into SQL Server, filter out bad records etc. I have discovered a "hole" in my results where there are no PKIDs across a range of hundreds of thousands of records. I do not know how big the "hole" is. Under normal circumstances (a visual view for example) you will see a few missing PKIDs in a range of 20 or 30, but never consecutive sets of missing records. But I have at least one "hole" where hundreds of thousands are missing. I need a way to find the "edges" of the hole of the missing PKIDs. IE I need to view the distribution of numbers across the range of numbers. It should be a "flat line" if you will where every once in awhile a number is missing, but where the hole is will be a drop to zero for an extended range. Or something. I have no idea how to "see" this data. I have a process that is exporting the validated records back out to be revalidated (people move). It is this export program (which I wrote) that discovered the hole, and I can if necessary use this program to find the hole but I thought some of you folks might know of a way to do this in SQL. Something like specify a range of numbers, a from/to and get a count, rinse / repeat. I did this manually to verify that a 1 million record range came up about 400 K short of the normal - ~800K is a "normal" count within a given million records, the "hole" only had ~400K records. BTW, I found the hole because I normally export "100K" records at a time into a file , and was filling a recordset with a WHERE PKID >=X and <=X+100K (which of course does not provide 100K but around 80K) and was looking for an empty recordset to tell me that I was done. Well... when I hit the "hole" I got the empty recordset and my process was saying it was done, except it had only exported about twenty 1 million record files out of a total 50 million records. oooops. So, I have a hole. I need to know if there are any other holes (smaller than my 100k export piece) but I really need a generic way to sense such a hole in my PKs. Any ideas? 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 Sat Mar 1 08:52:37 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Sat, 01 Mar 2008 15:52:37 +0100 Subject: [AccessD] Strong encryption (was: HashBytes) Message-ID: Hi all I noticed this set of free components, ebCrypt, for the purpose: http://www.ebcrypt.com/ Symmetrical encryption algorithms: IDEA, BLOWFISH, CAST5, DES, 3DES, RIJNDAEL, SERPENT, TWOFISH Hashing algorithms: MD5, RIPEMD160, SHA1 Diffie-Hellman key exchange protocol; DSA public/private key support, including key generation, export/import and digital signatured; RSA public/private key support, including key generation, export/import and digital signatured; X.509 Public key certificate support; Other: high level functions provided to do one function call file encryption/decryption, conversion to hex and base64 strings. I haven't worked with it so no experience to share. /gustav >>> Gustav at cactus.dk 18-09-2007 11:36 >>> Hi John and Borge I would expect a linear relation between string length and conversion time. And it is right, speed is not impressive due to the many calculations that have to be done. To gain real speed, an DLL or OCX would be needed like this commercial tool: http://www.chilkatsoft.com/crypt-activex.asp Perhaps someone could try to create an DLL in .Net? As far as I know, .Net contains a class for several types of encrypting, so it should be straight forward to carry out ... /gustav >>> pcs at azizaz.com 18-09-2007 04:54 >>> John, I saw that Gustav had modified the code: "' Modified for high speed conversion of long strings ( > 32K)." Curious if you have any test data for big chunks of strings? Regards Borge ---- Original message ---- >Date: Mon, 17 Sep 2007 16:13:50 -0400 >From: "jwcolby" >Subject: Re: [AccessD] Strong encryption (was: HashBytes) >To: "'Access Developers discussion and problem solving'" > >Thanks Gustav, I just imported this into a class in my C2DbFW3G framework, >and wrote a couple of functions to test it. It is not particularly speedy, >taking about .75 milliseconds to encrypt / decrypt a short string "this is a >drill, this is a drill". It scales linearly, i.e. it takes about twice as >long to do the same string appended to itself once, and three times as long >for the same string appended to itself twice. > >But of course this is interpreted basic, and it does appear to work just >fine so there ya go. > >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: Monday, September 17, 2007 5:01 AM >To: accessd at databaseadvisors.com >Subject: Re: [AccessD] Strong encryption (was: HashBytes) > >Hi Max > >Yes, just a week ago I posted this for Arthur with a non-informative subject >(Transactions): >I've used that for mdb files sent over the Internet thus eliminating the >need for VPN or encrypted mail. I just zipped and attached the mdb files. From jimdettman at verizon.net Sat Mar 1 08:53:43 2008 From: jimdettman at verizon.net (Jim Dettman) Date: Sat, 01 Mar 2008 09:53:43 -0500 Subject: [AccessD] Progress Meter ? In-Reply-To: <47C87C89.3070400@servicexp.com> References: <47C87C89.3070400@servicexp.com> Message-ID: <016901c87bac$0ce5fe90$8abea8c0@XPS> Check the data types being used. Should be using long integers or doubles. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert Sent: Friday, February 29, 2008 4:44 PM To: Access Developers discussion and problem solving Subject: [AccessD] Progress Meter ? -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hooooowdy All, Preface: ~ I'm downloading, from ftp. The class raises an event which contains mBytesTransferred. mFileSize is the total size of the file being downloaded. shpProgContainer is a rectangle thats "behind" the shpProg. shpProg is a rectangle that is used as the meter. ~ Can anyone tell me why this doesn't work.. I get an Error 6 Overflow when downloading large files. shpProg.Width = (shpProgContainer.Width * mBytesTransferred) / mFileSize If I Debug.Print "Bar: " & shpProg.Width & " BarContainer: " & shpProgContainer.Width & " Bytes: " & mBytesTransferred & " FileSize: " & mFileSize I get Bar: 128 BarContainer: 3270 Bytes: 350192 FileSize: 8981235 Bar: 128 BarContainer: 3270 Bytes: 352240 FileSize: 8981235 Bar: 129 BarContainer: 3270 Bytes: 353584 FileSize: 8981235 Bar: 129 BarContainer: 3270 Bytes: 355632 FileSize: 8981235 Bar: 130 BarContainer: 3270 Bytes: 357680 FileSize: 8981235 Bar: 131 BarContainer: 3270 Bytes: 359024 FileSize: 8981235 Bar: 131 BarContainer: 3270 Bytes: 360384 FileSize: 8981235 Bar: 131 BarContainer: 3270 Bytes: 360448 FileSize: 8981235 Bar: 132 BarContainer: 3270 Bytes: 361808 FileSize: 8981235 Bar: 132 BarContainer: 3270 Bytes: 363168 FileSize: 8981235 Bar: 133 BarContainer: 3270 Bytes: 364528 FileSize: 8981235 Bar: 133 BarContainer: 3270 Bytes: 366576 FileSize: 8981235 Bar: 134 BarContainer: 3270 Bytes: 368624 FileSize: 8981235 Bar: 135 BarContainer: 3270 Bytes: 370672 FileSize: 8981235 Bar: 136 BarContainer: 3270 Bytes: 372720 FileSize: 8981235 Bar: 136 BarContainer: 3270 Bytes: 374048 FileSize: 8981235 Bar: 137 BarContainer: 3270 Bytes: 376096 FileSize: 8981235 Bar: 137 BarContainer: 3270 Bytes: 376768 FileSize: 8981235 Bar: 137 BarContainer: 3270 Bytes: 376832 FileSize: 8981235 Bar: 138 BarContainer: 3270 Bytes: 378192 FileSize: 8981235 Bar: 138 BarContainer: 3270 Bytes: 380240 FileSize: 8981235 Bar: 139 BarContainer: 3270 Bytes: 382288 FileSize: 8981235 Bar: 140 BarContainer: 3270 Bytes: 384336 FileSize: 8981235 Bar: 141 BarContainer: 3270 Bytes: 386384 FileSize: 8981235 Bar: 141 BarContainer: 3270 Bytes: 387712 FileSize: 8981235 Bar: 142 BarContainer: 3270 Bytes: 389760 FileSize: 8981235 Bar: 143 BarContainer: 3270 Bytes: 391792 FileSize: 8981235 Bar: 143 BarContainer: 3270 Bytes: 393152 FileSize: 8981235 Bar: 143 BarContainer: 3270 Bytes: 393216 FileSize: 8981235 Bar: 144 BarContainer: 3270 Bytes: 394576 FileSize: 8981235 Bar: 144 BarContainer: 3270 Bytes: 396624 FileSize: 8981235 Bar: 145 BarContainer: 3270 Bytes: 397296 FileSize: 8981235 Bar: 145 BarContainer: 3270 Bytes: 398656 FileSize: 8981235 Bar: 146 BarContainer: 3270 Bytes: 400704 FileSize: 8981235 Bar: 147 BarContainer: 3270 Bytes: 402752 FileSize: 8981235 Bar: 147 BarContainer: 3270 Bytes: 404800 FileSize: 8981235 Bar: 148 BarContainer: 3270 Bytes: 406816 FileSize: 8981235 Bar: 149 BarContainer: 3270 Bytes: 408864 FileSize: 8981235 Bar: 149 BarContainer: 3270 Bytes: 409536 FileSize: 8981235 Bar: 149 BarContainer: 3270 Bytes: 409600 FileSize: 8981235 Bar: 150 BarContainer: 3270 Bytes: 410960 FileSize: 8981235 Bar: 150 BarContainer: 3270 Bytes: 412320 FileSize: 8981235 Bar: 151 BarContainer: 3270 Bytes: 414368 FileSize: 8981235 Bar: 152 BarContainer: 3270 Bytes: 416400 FileSize: 8981235 Bar: 152 BarContainer: 3270 Bytes: 418448 FileSize: 8981235 Bar: 153 BarContainer: 3270 Bytes: 420496 FileSize: 8981235 Bar: 154 BarContainer: 3270 Bytes: 421840 FileSize: 8981235 Bar: 154 BarContainer: 3270 Bytes: 423888 FileSize: 8981235 Bar: 155 BarContainer: 3270 Bytes: 425920 FileSize: 8981235 Bar: 155 BarContainer: 3270 Bytes: 425984 FileSize: 8981235 Bar: 156 BarContainer: 3270 Bytes: 427344 FileSize: 8981235 Bar: 156 BarContainer: 3270 Bytes: 429392 FileSize: 8981235 Bar: 157 BarContainer: 3270 Bytes: 430064 FileSize: 8981235 Bar: 157 BarContainer: 3270 Bytes: 431424 FileSize: 8981235 Bar: 158 BarContainer: 3270 Bytes: 433472 FileSize: 8981235 Bar: 158 BarContainer: 3270 Bytes: 434144 FileSize: 8981235 Bar: 159 BarContainer: 3270 Bytes: 436192 FileSize: 8981235 Bar: 160 BarContainer: 3270 Bytes: 438240 FileSize: 8981235 Bar: 160 BarContainer: 3270 Bytes: 439584 FileSize: 8981235 Bar: 161 BarContainer: 3270 Bytes: 441632 FileSize: 8981235 Bar: 161 BarContainer: 3270 Bytes: 442304 FileSize: 8981235 Bar: 161 BarContainer: 3270 Bytes: 442368 FileSize: 8981235 Bar: 162 BarContainer: 3270 Bytes: 443728 FileSize: 8981235 Bar: 162 BarContainer: 3270 Bytes: 445776 FileSize: 8981235 Bar: 163 BarContainer: 3270 Bytes: 446448 FileSize: 8981235 Bar: 163 BarContainer: 3270 Bytes: 447808 FileSize: 8981235 Bar: 164 BarContainer: 3270 Bytes: 449856 FileSize: 8981235 Bar: 165 BarContainer: 3270 Bytes: 451888 FileSize: 8981235 Bar: 165 BarContainer: 3270 Bytes: 453936 FileSize: 8981235 Bar: 166 BarContainer: 3270 Bytes: 455968 FileSize: 8981235 Bar: 167 BarContainer: 3270 Bytes: 458016 FileSize: 8981235 Bar: 167 BarContainer: 3270 Bytes: 458688 FileSize: 8981235 Bar: 167 BarContainer: 3270 Bytes: 458752 FileSize: 8981235 Bar: 168 BarContainer: 3270 Bytes: 460112 FileSize: 8981235 Bar: 168 BarContainer: 3270 Bytes: 462160 FileSize: 8981235 Bar: 169 BarContainer: 3270 Bytes: 462832 FileSize: 8981235 Bar: 169 BarContainer: 3270 Bytes: 464880 FileSize: 8981235 Bar: 170 BarContainer: 3270 Bytes: 466912 FileSize: 8981235 Bar: 171 BarContainer: 3270 Bytes: 468960 FileSize: 8981235 Bar: 171 BarContainer: 3270 Bytes: 471008 FileSize: 8981235 Bar: 172 BarContainer: 3270 Bytes: 472352 FileSize: 8981235 Bar: 173 BarContainer: 3270 Bytes: 474400 FileSize: 8981235 Bar: 173 BarContainer: 3270 Bytes: 475072 FileSize: 8981235 Bar: 173 BarContainer: 3270 Bytes: 475136 FileSize: 8981235 Bar: 173 BarContainer: 3270 Bytes: 476496 FileSize: 8981235 Bar: 174 BarContainer: 3270 Bytes: 478544 FileSize: 8981235 Bar: 175 BarContainer: 3270 Bytes: 480576 FileSize: 8981235 Bar: 176 BarContainer: 3270 Bytes: 482624 FileSize: 8981235 Bar: 176 BarContainer: 3270 Bytes: 484656 FileSize: 8981235 Bar: 177 BarContainer: 3270 Bytes: 486704 FileSize: 8981235 Bar: 178 BarContainer: 3270 Bytes: 488752 FileSize: 8981235 Bar: 178 BarContainer: 3270 Bytes: 490096 FileSize: 8981235 Bar: 179 BarContainer: 3270 Bytes: 491456 FileSize: 8981235 Bar: 179 BarContainer: 3270 Bytes: 492816 FileSize: 8981235 Bar: 180 BarContainer: 3270 Bytes: 494864 FileSize: 8981235 Bar: 180 BarContainer: 3270 Bytes: 495536 FileSize: 8981235 Bar: 181 BarContainer: 3270 Bytes: 496896 FileSize: 8981235 Bar: 182 BarContainer: 3270 Bytes: 498944 FileSize: 8981235 Bar: 182 BarContainer: 3270 Bytes: 499616 FileSize: 8981235 Bar: 183 BarContainer: 3270 Bytes: 501664 FileSize: 8981235 Bar: 183 BarContainer: 3270 Bytes: 503712 FileSize: 8981235 Bar: 184 BarContainer: 3270 Bytes: 505056 FileSize: 8981235 Bar: 185 BarContainer: 3270 Bytes: 507104 FileSize: 8981235 Bar: 185 BarContainer: 3270 Bytes: 507904 FileSize: 8981235 Bar: 185 BarContainer: 3270 Bytes: 509264 FileSize: 8981235 Bar: 186 BarContainer: 3270 Bytes: 510624 FileSize: 8981235 Bar: 187 BarContainer: 3270 Bytes: 512672 FileSize: 8981235 Bar: 187 BarContainer: 3270 Bytes: 514720 FileSize: 8981235 Bar: 188 BarContainer: 3270 Bytes: 516768 FileSize: 8981235 Bar: 189 BarContainer: 3270 Bytes: 518816 FileSize: 8981235 Bar: 189 BarContainer: 3270 Bytes: 520144 FileSize: 8981235 Bar: 190 BarContainer: 3270 Bytes: 522192 FileSize: 8981235 Bar: 191 BarContainer: 3270 Bytes: 524240 FileSize: 8981235 Bar: 191 BarContainer: 3270 Bytes: 524288 FileSize: 8981235 Bar: 191 BarContainer: 3270 Bytes: 525648 FileSize: 8981235 Bar: 192 BarContainer: 3270 Bytes: 527696 FileSize: 8981235 Bar: 192 BarContainer: 3270 Bytes: 528368 FileSize: 8981235 Bar: 193 BarContainer: 3270 Bytes: 529728 FileSize: 8981235 Bar: 193 BarContainer: 3270 Bytes: 531088 FileSize: 8981235 Bar: 194 BarContainer: 3270 Bytes: 532448 FileSize: 8981235 Bar: 194 BarContainer: 3270 Bytes: 533808 FileSize: 8981235 Bar: 195 BarContainer: 3270 Bytes: 535168 FileSize: 8981235 Bar: 195 BarContainer: 3270 Bytes: 536528 FileSize: 8981235 Bar: 196 BarContainer: 3270 Bytes: 537888 FileSize: 8981235 Bar: 196 BarContainer: 3270 Bytes: 539248 FileSize: 8981235 Bar: 197 BarContainer: 3270 Bytes: 540608 FileSize: 8981235 Bar: 197 BarContainer: 3270 Bytes: 541968 FileSize: 8981235 Bar: 198 BarContainer: 3270 Bytes: 543328 FileSize: 8981235 Bar: 198 BarContainer: 3270 Bytes: 544688 FileSize: 8981235 Bar: 199 BarContainer: 3270 Bytes: 546048 FileSize: 8981235 Bar: 200 BarContainer: 3270 Bytes: 548096 FileSize: 8981235 Bar: 200 BarContainer: 3270 Bytes: 550144 FileSize: 8981235 Bar: 201 BarContainer: 3270 Bytes: 552192 FileSize: 8981235 Bar: 201 BarContainer: 3270 Bytes: 552848 FileSize: 8981235 Bar: 202 BarContainer: 3270 Bytes: 554208 FileSize: 8981235 Bar: 203 BarContainer: 3270 Bytes: 556256 FileSize: 8981235 Bar: 203 BarContainer: 3270 Bytes: 556928 FileSize: 8981235 Bar: 203 BarContainer: 3270 Bytes: 558288 FileSize: 8981235 Bar: 204 BarContainer: 3270 Bytes: 560336 FileSize: 8981235 Bar: 204 BarContainer: 3270 Bytes: 561008 FileSize: 8981235 Bar: 205 BarContainer: 3270 Bytes: 563056 FileSize: 8981235 Bar: 206 BarContainer: 3270 Bytes: 565104 FileSize: 8981235 Bar: 206 BarContainer: 3270 Bytes: 566448 FileSize: 8981235 Bar: 207 BarContainer: 3270 Bytes: 568496 FileSize: 8981235 Bar: 207 BarContainer: 3270 Bytes: 569168 FileSize: 8981235 Bar: 208 BarContainer: 3270 Bytes: 570528 FileSize: 8981235 Bar: 208 BarContainer: 3270 Bytes: 571888 FileSize: 8981235 Bar: 209 BarContainer: 3270 Bytes: 573936 FileSize: 8981235 Bar: 209 BarContainer: 3270 Bytes: 574608 FileSize: 8981235 Bar: 210 BarContainer: 3270 Bytes: 576656 FileSize: 8981235 Bar: 211 BarContainer: 3270 Bytes: 578704 FileSize: 8981235 Bar: 211 BarContainer: 3270 Bytes: 580048 FileSize: 8981235 Bar: 212 BarContainer: 3270 Bytes: 582096 FileSize: 8981235 Bar: 212 BarContainer: 3270 Bytes: 582768 FileSize: 8981235 Bar: 213 BarContainer: 3270 Bytes: 584816 FileSize: 8981235 Bar: 214 BarContainer: 3270 Bytes: 586864 FileSize: 8981235 Bar: 214 BarContainer: 3270 Bytes: 588912 FileSize: 8981235 Bar: 215 BarContainer: 3270 Bytes: 589824 FileSize: 8981235 Bar: 215 BarContainer: 3270 Bytes: 591184 FileSize: 8981235 Bar: 216 BarContainer: 3270 Bytes: 592544 FileSize: 8981235 Bar: 216 BarContainer: 3270 Bytes: 594592 FileSize: 8981235 Bar: 217 BarContainer: 3270 Bytes: 596640 FileSize: 8981235 Bar: 218 BarContainer: 3270 Bytes: 597984 FileSize: 8981235 Bar: 218 BarContainer: 3270 Bytes: 600032 FileSize: 8981235 Bar: 219 BarContainer: 3270 Bytes: 602080 FileSize: 8981235 Bar: 220 BarContainer: 3270 Bytes: 603424 FileSize: 8981235 Bar: 220 BarContainer: 3270 Bytes: 605472 FileSize: 8981235 Bar: 221 BarContainer: 3270 Bytes: 606144 FileSize: 8981235 Bar: 221 BarContainer: 3270 Bytes: 607504 FileSize: 8981235 Bar: 222 BarContainer: 3270 Bytes: 608864 FileSize: 8981235 Bar: 222 BarContainer: 3270 Bytes: 610224 FileSize: 8981235 Bar: 223 BarContainer: 3270 Bytes: 612272 FileSize: 8981235 Bar: 224 BarContainer: 3270 Bytes: 614304 FileSize: 8981235 Bar: 224 BarContainer: 3270 Bytes: 616352 FileSize: 8981235 Bar: 225 BarContainer: 3270 Bytes: 618400 FileSize: 8981235 Bar: 226 BarContainer: 3270 Bytes: 619744 FileSize: 8981235 Bar: 226 BarContainer: 3270 Bytes: 621792 FileSize: 8981235 Bar: 227 BarContainer: 3270 Bytes: 622592 FileSize: 8981235 Bar: 227 BarContainer: 3270 Bytes: 623952 FileSize: 8981235 Bar: 228 BarContainer: 3270 Bytes: 625312 FileSize: 8981235 Bar: 228 BarContainer: 3270 Bytes: 626672 FileSize: 8981235 Bar: 229 BarContainer: 3270 Bytes: 628720 FileSize: 8981235 Bar: 230 BarContainer: 3270 Bytes: 630768 FileSize: 8981235 Bar: 230 BarContainer: 3270 Bytes: 632816 FileSize: 8981235 Bar: 231 BarContainer: 3270 Bytes: 634864 FileSize: 8981235 Bar: 232 BarContainer: 3270 Bytes: 636912 FileSize: 8981235 Bar: 233 BarContainer: 3270 Bytes: 638960 FileSize: 8981235 Bar: 233 BarContainer: 3270 Bytes: 638976 FileSize: 8981235 Bar: 233 BarContainer: 3270 Bytes: 640336 FileSize: 8981235 Bar: 234 BarContainer: 3270 Bytes: 641696 FileSize: 8981235 Bar: 234 BarContainer: 3270 Bytes: 643744 FileSize: 8981235 Bar: 235 BarContainer: 3270 Bytes: 645776 FileSize: 8981235 Bar: 236 BarContainer: 3270 Bytes: 647136 FileSize: 8981235 Bar: 236 BarContainer: 3270 Bytes: 649184 FileSize: 8981235 Bar: 237 BarContainer: 3270 Bytes: 651216 FileSize: 8981235 Bar: 238 BarContainer: 3270 Bytes: 653264 FileSize: 8981235 Bar: 239 BarContainer: 3270 Bytes: 655296 FileSize: 8981235 Bar: 239 BarContainer: 3270 Bytes: 655360 FileSize: 8981235 Bar: 239 BarContainer: 3270 Bytes: 656720 FileSize: 8981235 Fails on the next event. TYIA ~Robert -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHyHyJ72dSYCwH8FQRAi5gAKCad4+M6omZ4WjPaaQxAYzriLU7lQCgtVO/ 5DrT0PfyqE+/oG8U1F85E4o= =N4MQ -----END PGP SIGNATURE----- -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From adtp at airtelmail.in Sat Mar 1 10:34:41 2008 From: adtp at airtelmail.in (A.D.Tejpal) Date: Sat, 1 Mar 2008 22:04:41 +0530 Subject: [AccessD] Cnts in sets References: <005601c87a49$f0c8ec80$0201a8c0@M90><004f01c87ba0$38a8a7a0$0964a27a@personald6374f> <001601c87ba5$3e18c490$0201a8c0@M90> Message-ID: <005101c87bba$4096b050$887da27a@personald6374f> Apparently, you wish to display the missing PkID's where the hole size (consecutive missing records) is large, say >= 1000. Let table T_B be the table having missing PkID's. Set up table T_A with single field PkID and populate it with sequential numbers covering the whole range, without any holes. Sample query Q_3, as given below, should get you the desired results. It uses preliminary queries Q_1 & Q_2, along with function Fn_Mark() given below. Note - This solution is expected to be much faster than those using subqueries or recordsets. As stated earlier, this is based upon Access 2003 desktop. A.D.Tejpal ------------ Q_3 (Final Query) Displays missing PkID's (Where hole size >= 1000 consecutive missing records) =================================== SELECT Q_2.*, T_A.PkID FROM Q_2, T_A WHERE (((T_A.PkID)>=[HoleStart] And (T_A.PkID)<=[HoleEnd])) ORDER BY Q_2.HoleStart, T_A.PkID; =================================== Q_2 (Prelim Query - Stage 2) =================================== SELECT Q_1.Mark, 1+Min([PkID]) AS HoleStart, Max(Q_1.PkID) AS HoleEnd, Max([PkID])-Min([PkID]) AS HoleSpan FROM Q_1 GROUP BY Q_1.Mark HAVING (((Max([PkID])-Min([PkID]))>=1000)); =================================== Q_1 (Prelim Query - Stage 1) =================================== SELECT T_A.PkID, Fn_Mark([T_B].[PkID]) AS Mark FROM T_A LEFT JOIN T_B ON T_A.PkID = T_B.PkID; =================================== ' Fn_Mark() =================================== ' Global Variable Public Mk As Variant '---------------------------------------------------- Function Fn_Mark(PkVal As Variant) As Variant If Len(PkVal) > 0 Then Mk = PkVal End If Debug.Print Mk Fn_Mark = Mk End Function =================================== ----- Original Message ----- From: jwcolby To: 'Access Developers discussion and problem solving' Sent: Saturday, March 01, 2008 19:35 Subject: Re: [AccessD] Cnts in sets Before I launch into that you should understand that missing values are OK. Of the original 64 million records, roughly 13 million are missing, thus there are missing PKs throughout the data, but they are just "one here and there", in fact on average one every 8 records. It is only "large holes" (I understand that is a rather nebulous term) that I care about. 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 A.D.Tejpal Sent: Saturday, March 01, 2008 8:26 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Cnts in sets John, You might like to have a look at my sample db named TrackMissingAndDuplicates and see whether it could help. It is available at Rogers Access Library (other developers library). Link - http://www.rogersaccesslibrary.com/OtherLibraries.asp#Tejpal,A.D. Gist of holes (missing sequential values) is displayed, giving the start and end values of each hole. In the situation explained by you, before testing for holes, the source data can first be filtered so as to eliminate Null values. Note - This sample is for Access 2000 / 2003 desktop and the execution speed has not been tested in the context of huge tables of the size mentioned by you. However, if the underlying principle is found applicable, suitable adaptation could be considered, say by testing smaller chunks at a time in such a manner that there are always some common records between adjacent chunks (i.e the last record of a given sub-table is also the first record of next sub-table). Best wishes, A.D.Tejpal ------------ <> From jwcolby at colbyconsulting.com Sat Mar 1 11:07:32 2008 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 1 Mar 2008 12:07:32 -0500 Subject: [AccessD] Cnts in sets In-Reply-To: <005101c87bba$4096b050$887da27a@personald6374f> References: <005601c87a49$f0c8ec80$0201a8c0@M90><004f01c87ba0$38a8a7a0$0964a27a@personald6374f><001601c87ba5$3e18c490$0201a8c0@M90> <005101c87bba$4096b050$887da27a@personald6374f> Message-ID: <002201c87bbe$bdc3af20$0201a8c0@M90> Thanks AD, I will give it a try. 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 A.D.Tejpal Sent: Saturday, March 01, 2008 11:35 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Cnts in sets Apparently, you wish to display the missing PkID's where the hole size (consecutive missing records) is large, say >= 1000. Let table T_B be the table having missing PkID's. Set up table T_A with single field PkID and populate it with sequential numbers covering the whole range, without any holes. Sample query Q_3, as given below, should get you the desired results. It uses preliminary queries Q_1 & Q_2, along with function Fn_Mark() given below. Note - This solution is expected to be much faster than those using subqueries or recordsets. As stated earlier, this is based upon Access 2003 desktop. A.D.Tejpal ------------ Q_3 (Final Query) Displays missing PkID's (Where hole size >= 1000 consecutive missing records) =================================== SELECT Q_2.*, T_A.PkID FROM Q_2, T_A WHERE (((T_A.PkID)>=[HoleStart] And (T_A.PkID)<=[HoleEnd])) ORDER BY Q_2.HoleStart, T_A.PkID; =================================== Q_2 (Prelim Query - Stage 2) =================================== SELECT Q_1.Mark, 1+Min([PkID]) AS HoleStart, Max(Q_1.PkID) AS HoleEnd, Max([PkID])-Min([PkID]) AS HoleSpan FROM Q_1 GROUP BY Q_1.Mark HAVING (((Max([PkID])-Min([PkID]))>=1000)); =================================== Q_1 (Prelim Query - Stage 1) =================================== SELECT T_A.PkID, Fn_Mark([T_B].[PkID]) AS Mark FROM T_A LEFT JOIN T_B ON T_A.PkID = T_B.PkID; =================================== ' Fn_Mark() =================================== ' Global Variable Public Mk As Variant '---------------------------------------------------- Function Fn_Mark(PkVal As Variant) As Variant If Len(PkVal) > 0 Then Mk = PkVal End If Debug.Print Mk Fn_Mark = Mk End Function =================================== ----- Original Message ----- From: jwcolby To: 'Access Developers discussion and problem solving' Sent: Saturday, March 01, 2008 19:35 Subject: Re: [AccessD] Cnts in sets Before I launch into that you should understand that missing values are OK. Of the original 64 million records, roughly 13 million are missing, thus there are missing PKs throughout the data, but they are just "one here and there", in fact on average one every 8 records. It is only "large holes" (I understand that is a rather nebulous term) that I care about. 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 A.D.Tejpal Sent: Saturday, March 01, 2008 8:26 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Cnts in sets John, You might like to have a look at my sample db named TrackMissingAndDuplicates and see whether it could help. It is available at Rogers Access Library (other developers library). Link - http://www.rogersaccesslibrary.com/OtherLibraries.asp#Tejpal,A.D. Gist of holes (missing sequential values) is displayed, giving the start and end values of each hole. In the situation explained by you, before testing for holes, the source data can first be filtered so as to eliminate Null values. Note - This sample is for Access 2000 / 2003 desktop and the execution speed has not been tested in the context of huge tables of the size mentioned by you. However, if the underlying principle is found applicable, suitable adaptation could be considered, say by testing smaller chunks at a time in such a manner that there are always some common records between adjacent chunks (i.e the last record of a given sub-table is also the first record of next sub-table). Best wishes, A.D.Tejpal ------------ <> -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From adtp at airtelmail.in Sat Mar 1 11:55:28 2008 From: adtp at airtelmail.in (A.D.Tejpal) Date: Sat, 1 Mar 2008 23:25:28 +0530 Subject: [AccessD] Cnts in sets References: <005601c87a49$f0c8ec80$0201a8c0@M90><004f01c87ba0$38a8a7a0$0964a27a@personald6374f><001601c87ba5$3e18c490$0201a8c0@M90><005101c87bba$4096b050$887da27a@personald6374f> <002201c87bbe$bdc3af20$0201a8c0@M90> Message-ID: <002101c87bc5$ba89dcb0$0157a27a@personald6374f> It is to be kept in view that final query Q_3 involves Cartesian join between totals query Q_2 and table T_A. For large data sets, such a query can become very slow. In such a situation, you can get dramatic improvement in speed by storing the output of query Q_2 into an interim table (say T_2) and then use T_2 (in lieu of Q_2) in the final query (Q_3). A.D.Tejpal ------------ ----- Original Message ----- From: jwcolby To: 'Access Developers discussion and problem solving' Sent: Saturday, March 01, 2008 22:37 Subject: Re: [AccessD] Cnts in sets Thanks AD, I will give it a try. 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 A.D.Tejpal Sent: Saturday, March 01, 2008 11:35 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Cnts in sets Apparently, you wish to display the missing PkID's where the hole size (consecutive missing values) is large, say >= 1000. Let table T_B be the table having missing PkID's. Set up table T_A with single field PkID and populate it with sequential numbers covering the whole range, without any holes. Sample query Q_3, as given below, should get you the desired results. It uses preliminary queries Q_1 & Q_2, along with function Fn_Mark() given below. Note - This solution is expected to be much faster than those using subqueries or recordsets. As stated earlier, this is based upon Access 2003 desktop. A.D.Tejpal ------------ Q_3 (Final Query) Displays missing PkID's (Where hole size >= 1000 consecutive missing values) =================================== SELECT Q_2.*, T_A.PkID FROM Q_2, T_A WHERE (((T_A.PkID)>=[HoleStart] And (T_A.PkID)<=[HoleEnd])) ORDER BY Q_2.HoleStart, T_A.PkID; =================================== Q_2 (Prelim Query - Stage 2) =================================== SELECT Q_1.Mark, 1+Min([PkID]) AS HoleStart, Max(Q_1.PkID) AS HoleEnd, Max([PkID])-Min([PkID]) AS HoleSpan FROM Q_1 GROUP BY Q_1.Mark HAVING (((Max([PkID])-Min([PkID]))>=1000)); =================================== Q_1 (Prelim Query - Stage 1) =================================== SELECT T_A.PkID, Fn_Mark([T_B].[PkID]) AS Mark FROM T_A LEFT JOIN T_B ON T_A.PkID = T_B.PkID; =================================== ' Fn_Mark() =================================== ' Global Variable Public Mk As Variant '---------------------------------------------------- Function Fn_Mark(PkVal As Variant) As Variant If Len(PkVal) > 0 Then Mk = PkVal End If Fn_Mark = Mk End Function =================================== ----- Original Message ----- From: jwcolby To: 'Access Developers discussion and problem solving' Sent: Saturday, March 01, 2008 19:35 Subject: Re: [AccessD] Cnts in sets Before I launch into that you should understand that missing values are OK. Of the original 64 million records, roughly 13 million are missing, thus there are missing PKs throughout the data, but they are just "one here and there", in fact on average one every 8 records. It is only "large holes" (I understand that is a rather nebulous term) that I care about. John W. Colby Colby Consulting www.ColbyConsulting.com <> From DWUTKA at Marlow.com Sat Mar 1 12:30:53 2008 From: DWUTKA at Marlow.com (Drew Wutka) Date: Sat, 1 Mar 2008 12:30:53 -0600 Subject: [AccessD] Code help Almost there In-Reply-To: <000001c87b42$e30283f0$6401a8c0@ACER2G> Message-ID: So did using Cancel work? Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Friday, February 29, 2008 8:21 PM To: accessD at databaseadvisors.com Subject: [AccessD] Code help Almost there Thanks Drew, I have three books on my desk, looked at help and still can not find this one. In the case no block, I need to send the escape key. Everything I see says send keys is a macro. I can not find the code. TIA Joe Private Sub txtQBInvoice_BeforeUpdate(Cancel As Integer) If Me.txtQBInvoice = "" Then Else If Me.txtQBInvoice.Value <> Me.txtQBInvoice.OldValue Then Dim lngRetval As Long lngRetval = MsgBox( _ "The Quick Books Invoice Number has changed." & vbCrLf & "" & vbCrLf & "Do you want to change this Value?", _ vbYesNo + vbExclamation + vbDefaultButton2, _ "QB Invoice Number has been changed") Select Case lngRetval Case vbYes Cancel = False Case vbNo Cancel = True ' SendKeys (esc) End Select End If End If End Sub Joe Hecht Joe at anamericanjoe.us -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From robert at servicexp.com Sat Mar 1 12:44:34 2008 From: robert at servicexp.com (Robert) Date: Sat, 01 Mar 2008 13:44:34 -0500 Subject: [AccessD] Progress Meter ? In-Reply-To: References: Message-ID: <47C9A412.3060304@servicexp.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Gustav, ~ Your are amazing.. that did the trick... Thank You Very Much WBR Robert Gustav Brock wrote: | Hi Robert | | Try with: | | shpProg.Width = shpProgContainer.Width * (mBytesTransferred / mFileSize) | | /gustav | .....SNIP -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHyaQR72dSYCwH8FQRAgMqAJ44ah5PQHkg85fiF8APCXwX4DzMkQCeMaO9 V4y3s9WH/CZYgxS1vufokrA= =rdGo -----END PGP SIGNATURE----- From joe at anamericanjoe.us Sat Mar 1 12:54:19 2008 From: joe at anamericanjoe.us (Joe Hecht) Date: Sat, 1 Mar 2008 10:54:19 -0800 Subject: [AccessD] Code help Almost there In-Reply-To: References: <000001c87b42$e30283f0$6401a8c0@ACER2G> Message-ID: <000601c87bcd$a8aea8b0$6401a8c0@ACER2G> Drew, It got me moved along. Thanks In the VB No Block After the cancel = true I need to "press" the escape key in code. All the send keys stuff I found is in a macro. I could not find the macro to code tool. Can you or anyone help? ============================================================================ THIS CODE CHECKS TO MAKE A SURE A CHANGE IN EXISTING VALUE IN THE TEXT BOX IS INTENDED. NORMALLY IF IT IS AN EXISTING RECORD IT SHOULD NOT CHANGE. ============================================================================ Private Sub txtQBInvoice_BeforeUpdate(Cancel As Integer) If Me.txtQBInvoice = "" Then Else If Me.txtQBInvoice.Value <> Me.txtQBInvoice.OldValue Then Dim lngRetval As Long lngRetval = MsgBox( _ "The Quick Books Invoice Number has changed." & vbCrLf & "" & vbCrLf & "Do you want to change this Value?", _ vbYesNo + vbExclamation + vbDefaultButton2, _ "QB Invoice Number has been changed") Select Case lngRetval Case vbYes Cancel = False Case vbNo Cancel = True I need to "Press" the escape key here. End Select End If End If End Sub Joe Hecht Joe at anamericanjoe.us -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Saturday, March 01, 2008 10:31 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Code help Almost there So did using Cancel work? Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Friday, February 29, 2008 8:21 PM To: accessD at databaseadvisors.com Subject: [AccessD] Code help Almost there Thanks Drew, I have three books on my desk, looked at help and still can not find this one. In the case no block, I need to send the escape key. Everything I see says send keys is a macro. I can not find the code. TIA Joe Private Sub txtQBInvoice_BeforeUpdate(Cancel As Integer) If Me.txtQBInvoice = "" Then Else If Me.txtQBInvoice.Value <> Me.txtQBInvoice.OldValue Then Dim lngRetval As Long lngRetval = MsgBox( _ "The Quick Books Invoice Number has changed." & vbCrLf & "" & vbCrLf & "Do you want to change this Value?", _ vbYesNo + vbExclamation + vbDefaultButton2, _ "QB Invoice Number has been changed") Select Case lngRetval Case vbYes Cancel = False Case vbNo Cancel = True ' SendKeys (esc) End Select End If End If End Sub Joe Hecht Joe at anamericanjoe.us -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bill_patten at embarqmail.com Sat Mar 1 13:50:07 2008 From: bill_patten at embarqmail.com (Bill Patten) Date: Sat, 1 Mar 2008 11:50:07 -0800 Subject: [AccessD] Code help Almost there In-Reply-To: <000601c87bcd$a8aea8b0$6401a8c0@ACER2G> References: <000001c87b42$e30283f0$6401a8c0@ACER2G> <000601c87bcd$a8aea8b0$6401a8c0@ACER2G> Message-ID: Joe, Would chr(27) work?? Bill ----- Original Message ----- From: "Joe Hecht" To: "'Access Developers discussion and problem solving'" Sent: Saturday, March 01, 2008 10:54 AM Subject: Re: [AccessD] Code help Almost there Drew, It got me moved along. Thanks In the VB No Block After the cancel = true I need to "press" the escape key in code. All the send keys stuff I found is in a macro. I could not find the macro to code tool. Can you or anyone help? ============================================================================ THIS CODE CHECKS TO MAKE A SURE A CHANGE IN EXISTING VALUE IN THE TEXT BOX IS INTENDED. NORMALLY IF IT IS AN EXISTING RECORD IT SHOULD NOT CHANGE. ============================================================================ Private Sub txtQBInvoice_BeforeUpdate(Cancel As Integer) If Me.txtQBInvoice = "" Then Else If Me.txtQBInvoice.Value <> Me.txtQBInvoice.OldValue Then Dim lngRetval As Long lngRetval = MsgBox( _ "The Quick Books Invoice Number has changed." & vbCrLf & "" & vbCrLf & "Do you want to change this Value?", _ vbYesNo + vbExclamation + vbDefaultButton2, _ "QB Invoice Number has been changed") Select Case lngRetval Case vbYes Cancel = False Case vbNo Cancel = True I need to "Press" the escape key here. End Select End If End If End Sub Joe Hecht Joe at anamericanjoe.us -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Saturday, March 01, 2008 10:31 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Code help Almost there So did using Cancel work? Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Friday, February 29, 2008 8:21 PM To: accessD at databaseadvisors.com Subject: [AccessD] Code help Almost there Thanks Drew, I have three books on my desk, looked at help and still can not find this one. In the case no block, I need to send the escape key. Everything I see says send keys is a macro. I can not find the code. TIA Joe Private Sub txtQBInvoice_BeforeUpdate(Cancel As Integer) If Me.txtQBInvoice = "" Then Else If Me.txtQBInvoice.Value <> Me.txtQBInvoice.OldValue Then Dim lngRetval As Long lngRetval = MsgBox( _ "The Quick Books Invoice Number has changed." & vbCrLf & "" & vbCrLf & "Do you want to change this Value?", _ vbYesNo + vbExclamation + vbDefaultButton2, _ "QB Invoice Number has been changed") Select Case lngRetval Case vbYes Cancel = False Case vbNo Cancel = True ' SendKeys (esc) End Select End If End If End Sub Joe Hecht Joe at anamericanjoe.us -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Sat Mar 1 14:19:17 2008 From: DWUTKA at Marlow.com (Drew Wutka) Date: Sat, 1 Mar 2008 14:19:17 -0600 Subject: [AccessD] Code help Almost there In-Reply-To: <000601c87bcd$a8aea8b0$6401a8c0@ACER2G> Message-ID: Sorry, why are you sending the escape key? Is Access prompting to cancel the update? Why not just turn off the warnings before you cancel, then set them back on afterwards. Sendkeys can cause some other issues, so it should be avoided. (Also, if the prompt is occurring from something you are doing in code, then Sendkeys probably won't work, because if the prompt is dialog, then your code will be paused until the dialog box is closed. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Saturday, March 01, 2008 12:54 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Code help Almost there Drew, It got me moved along. Thanks In the VB No Block After the cancel = true I need to "press" the escape key in code. All the send keys stuff I found is in a macro. I could not find the macro to code tool. Can you or anyone help? ======================================================================== ==== THIS CODE CHECKS TO MAKE A SURE A CHANGE IN EXISTING VALUE IN THE TEXT BOX IS INTENDED. NORMALLY IF IT IS AN EXISTING RECORD IT SHOULD NOT CHANGE. ======================================================================== ==== Private Sub txtQBInvoice_BeforeUpdate(Cancel As Integer) If Me.txtQBInvoice = "" Then Else If Me.txtQBInvoice.Value <> Me.txtQBInvoice.OldValue Then Dim lngRetval As Long lngRetval = MsgBox( _ "The Quick Books Invoice Number has changed." & vbCrLf & "" & vbCrLf & "Do you want to change this Value?", _ vbYesNo + vbExclamation + vbDefaultButton2, _ "QB Invoice Number has been changed") Select Case lngRetval Case vbYes Cancel = False Case vbNo Cancel = True I need to "Press" the escape key here. End Select End If End If End Sub Joe Hecht Joe at anamericanjoe.us -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Saturday, March 01, 2008 10:31 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Code help Almost there So did using Cancel work? Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Friday, February 29, 2008 8:21 PM To: accessD at databaseadvisors.com Subject: [AccessD] Code help Almost there Thanks Drew, I have three books on my desk, looked at help and still can not find this one. In the case no block, I need to send the escape key. Everything I see says send keys is a macro. I can not find the code. TIA Joe Private Sub txtQBInvoice_BeforeUpdate(Cancel As Integer) If Me.txtQBInvoice = "" Then Else If Me.txtQBInvoice.Value <> Me.txtQBInvoice.OldValue Then Dim lngRetval As Long lngRetval = MsgBox( _ "The Quick Books Invoice Number has changed." & vbCrLf & "" & vbCrLf & "Do you want to change this Value?", _ vbYesNo + vbExclamation + vbDefaultButton2, _ "QB Invoice Number has been changed") Select Case lngRetval Case vbYes Cancel = False Case vbNo Cancel = True ' SendKeys (esc) End Select End If End If End Sub Joe Hecht Joe at anamericanjoe.us -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From ssharkins at gmail.com Sat Mar 1 14:44:13 2008 From: ssharkins at gmail.com (Susan Harkins) Date: Sat, 1 Mar 2008 15:44:13 -0500 Subject: [AccessD] Code help Almost there References: Message-ID: <021301c87bdd$03ff48f0$4b3a8343@SusanOne> I disagree -- you don't avoid SendKeys -- just use have to use it appropriately and remember that you might have to rework it when you upgrade to the next version. Susan H. > cancel, then set them back on afterwards. Sendkeys can cause some other > issues, so it should be avoided. (Also, if the prompt is occurring from From joe at anamericanjoe.us Sat Mar 1 17:22:19 2008 From: joe at anamericanjoe.us (Joe Hecht) Date: Sat, 1 Mar 2008 15:22:19 -0800 Subject: [AccessD] Code help Almost there More Info In-Reply-To: <021301c87bdd$03ff48f0$4b3a8343@SusanOne> References: <021301c87bdd$03ff48f0$4b3a8343@SusanOne> Message-ID: <000001c87bf3$18a4c4e0$6401a8c0@ACER2G> Hi Gang, I am not married to the form after update event. I have tried the text box lost focus and change events. I am not getting what I want but I do not think I can do what I want in the after update. Joe Hecht Joe at anamericanjoe.us From joe at anamericanjoe.us Sat Mar 1 17:45:23 2008 From: joe at anamericanjoe.us (Joe Hecht) Date: Sat, 1 Mar 2008 15:45:23 -0800 Subject: [AccessD] Code help Almost there More Info // Got it In-Reply-To: <000001c87bf3$18a4c4e0$6401a8c0@ACER2G> References: <021301c87bdd$03ff48f0$4b3a8343@SusanOne> <000001c87bf3$18a4c4e0$6401a8c0@ACER2G> Message-ID: <000101c87bf6$51e0fe10$6401a8c0@ACER2G> Put the code in the lost focus and I have what I need. Thanks to all who helped. Joe Hecht Joe at anamericanjoe.us From accessd at shaw.ca Sat Mar 1 18:37:25 2008 From: accessd at shaw.ca (Jim Lawrence) Date: Sat, 01 Mar 2008 16:37:25 -0800 Subject: [AccessD] OT Asp nightmare In-Reply-To: <00e301c87a0c$020509e0$8abea8c0@XPS> References: <12575913.681571204145341932.JavaMail.root@vms074.mailsrvcs.net> <00e301c87a0c$020509e0$8abea8c0@XPS> Message-ID: <9DF4514050724DCAB328A16D0D148325@creativesystemdesigns.com> The following is far off Access but as much of the coding is slowly morphing from Access MDB/ADP and ASP streams into ASP.Net this should not be considered as far OT as it could be initially viewed. I run a test bed IIS 6 server for a number of client systems using everything from ColdFusion to PHP and from standard HTML to ASP.Net. A number of sites run straight ASP. (The Database Advisors web site http://www.databaseadvisors.com is one example.) Early last week, seeing the Server is 2003, an upgrade fro fso.objects was recommended via Microsoft. The upload and install was performed and everything ran fine....NOT! >From then on all ASP applications would fail with the following error: Active Server Pages error 'ASP 0201' Invalid Default Script Language The default script language specified for this application is invalid. There is nothing wrong with the IIS configuration, the security... to that end, the IIS server has been removed completely and replaced, twice. ASP is also completely replaced within this process. There is obviously nothing changed with IIS or ASP but the Server 2003 has had some subtle changes made to either the directory/file permissions or to some entry in the registry. A week later...no joy. Has anyone had similar problems and found a solution. (Sorry no current system backups... so the next step is a dreaded system re-install.) MTIA Jim PS I have now heard of a number of other individuals, through the web, who have had similar situations but in all case the only solution has been a call to MS or a system install... serious stuff. From accessd at shaw.ca Sat Mar 1 18:46:57 2008 From: accessd at shaw.ca (Jim Lawrence) Date: Sat, 01 Mar 2008 16:46:57 -0800 Subject: [AccessD] Retirement In-Reply-To: References: Message-ID: That is great news, Jim... (I am current on the freedom 75 to 85 path so anyone who achieves that goal earlier is my hero.) I guess you have time lots of time start another career? Hope this does not mean that your sage advice will be lost to us. Best regards Another Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hale, Jim Sent: Thursday, February 28, 2008 12:28 PM To: accessd at databaseadvisors.com Subject: [AccessD] Retirement I was tired yesterday, I am tired today, and after tomorrow (2/29), I will be officially retired. Given what the market has done since I announced my retirement back in July this is the equivalent of diving into the pool headfirst before remembering to check for water. Hopefully it will work out. The ten years since I joined this list has zoomed by amazingly fast. It has been a blast. I thought about writing my memoirs but realized this would take only about an afternoon if I stretched it. Maybe I will write an expose "Code I have known and loved" and other trivia. Or perhaps I will hang around kind of as the ghost of Access past rattling the chains and scaring newbies. So much time, so little money! In any case after a six year hiatus its time to rejoin the OT list which, after all, was started to discuss Bush's election in 2000. But first a week in Vegas. See you guys in a week. Jim (Tx hold'em as a 2nd career) Hale *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Sat Mar 1 19:01:26 2008 From: accessd at shaw.ca (Jim Lawrence) Date: Sat, 01 Mar 2008 17:01:26 -0800 Subject: [AccessD] Strong encryption (was: HashBytes) In-Reply-To: References: Message-ID: <7998D07362324254ACA8377F514AD3A9@creativesystemdesigns.com> It is good that you for spotting that Gustav. Thanks for sharing Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Saturday, March 01, 2008 6:53 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Strong encryption (was: HashBytes) Hi all I noticed this set of free components, ebCrypt, for the purpose: http://www.ebcrypt.com/ Symmetrical encryption algorithms: IDEA, BLOWFISH, CAST5, DES, 3DES, RIJNDAEL, SERPENT, TWOFISH Hashing algorithms: MD5, RIPEMD160, SHA1 Diffie-Hellman key exchange protocol; DSA public/private key support, including key generation, export/import and digital signatured; RSA public/private key support, including key generation, export/import and digital signatured; X.509 Public key certificate support; Other: high level functions provided to do one function call file encryption/decryption, conversion to hex and base64 strings. I haven't worked with it so no experience to share. /gustav >>> Gustav at cactus.dk 18-09-2007 11:36 >>> Hi John and Borge I would expect a linear relation between string length and conversion time. And it is right, speed is not impressive due to the many calculations that have to be done. To gain real speed, an DLL or OCX would be needed like this commercial tool: http://www.chilkatsoft.com/crypt-activex.asp Perhaps someone could try to create an DLL in .Net? As far as I know, .Net contains a class for several types of encrypting, so it should be straight forward to carry out ... /gustav >>> pcs at azizaz.com 18-09-2007 04:54 >>> John, I saw that Gustav had modified the code: "' Modified for high speed conversion of long strings ( > 32K)." Curious if you have any test data for big chunks of strings? Regards Borge ---- Original message ---- >Date: Mon, 17 Sep 2007 16:13:50 -0400 >From: "jwcolby" >Subject: Re: [AccessD] Strong encryption (was: HashBytes) >To: "'Access Developers discussion and problem solving'" > >Thanks Gustav, I just imported this into a class in my C2DbFW3G framework, >and wrote a couple of functions to test it. It is not particularly speedy, >taking about .75 milliseconds to encrypt / decrypt a short string "this is a >drill, this is a drill". It scales linearly, i.e. it takes about twice as >long to do the same string appended to itself once, and three times as long >for the same string appended to itself twice. > >But of course this is interpreted basic, and it does appear to work just >fine so there ya go. > >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: Monday, September 17, 2007 5:01 AM >To: accessd at databaseadvisors.com >Subject: Re: [AccessD] Strong encryption (was: HashBytes) > >Hi Max > >Yes, just a week ago I posted this for Arthur with a non-informative subject >(Transactions): >I've used that for mdb files sent over the Internet thus eliminating the >need for VPN or encrypted mail. I just zipped and attached the mdb files. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Sun Mar 2 02:55:18 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Sun, 02 Mar 2008 09:55:18 +0100 Subject: [AccessD] Strong encryption (was: HashBytes) Message-ID: Hi all I was told by one who knows more about encryption than me, Dave Howe, that: PC-1 is an important part of the DES algorithm, used to prescramble the bit ordering on the key (and remove the parity bits) before starting the first round of the non-invertible s-boxes. These are also left-rotated between each round (by 1 or 2 bits, in a non-regular pattern) to form what is commonly called a "key schedule" or "subkey array". However your module is not using DES/PC-1, but "Pukall Code #1" which is a code Alexander Pukall designed himself - and which is widely regarded as insecure. Pukall shouldn't really have chosen the same name as the DES key schedule, as it does tend to cause confusion. So, as a general warning, the code is fine for making clear text non-readable but should not be used for true encryption. /gustav >>> Gustav at cactus.dk 17-09-2007 11:01 >>> Here's the header info with the description of the functions: ' PC1 Cipher 128-bit key ' (c) Alexander Pukall 1991 ' Can be used freely even for commercial applications ' ' MS Access 97 version by ' Gustav Brock, Cactus Data ApS ' gustav at cactus.dk ' ' 2002-03-09. V1.0 ' Initial port from Visual Basic. ' 2002-06-23. V1.1 ' Code clean up and constants added. ' Redundant code removed. ' Modified to fully comply with VB datatypes. ' Modified to not crash for certain passwords. ' Modified for high speed conversion of long strings ( > 32K). ' 2002-06-24. V1.2 ' Functions added for en/decrypting to/from binary strings. ' Usage: ' SetPassword(password) sets password prior to en/decryption. ' GetPassword() retrieves current password. ' StrEncrypt(DecryptedString) returns encrypted ascii string. ' StrDecrypt(EncryptedString_ascii) returns decrypted string. ' StrEncryptBin(DecryptedString) returns encrypted binary string. ' StrDecryptBin(EncryptedString_binary) returns decrypted string. ' ' Encrypted ascii string is twice the length of the decrypted string. ' Encrypted ascii string contains low ascii chars from a to p only. ' Encrypted binary string is same length as the decrypted string. ' Encrypted binary string may contain any char including Chr(0). ' Password may contain any ascii char including Chr(0). ' Password is maintained in global variable strPC1Password16. I've posted the full module previously: http://databaseadvisors.com/pipermail/dba-tech/2005-February/003711.html /gustav From fuller.artful at gmail.com Sun Mar 2 16:01:09 2008 From: fuller.artful at gmail.com (Arthur Fuller) Date: Sun, 2 Mar 2008 17:01:09 -0500 Subject: [AccessD] A Good Reason for a Class Message-ID: <29f585dd0803021401m4ea5fea4u5cd153c6fed76d5f@mail.gmail.com> I'm doing a traditional (MDB) app with one minor twist. The form's controls are (almost all) read-only until the user elects to update the data. At that point the Save button becomes enabled and remains enabled until the user saves the data, and then we're back to read-only. As a first pass, I simply set the form's AllowEdits to False, then switched it to True when the user clicks the button. Easy enough. But now I want to add some functionality, at least cosmetic. I want the controls to display in a color such as grey when they cannot be edited, and then white when they can be edited, and finally I want the control that has focus to change to yet another color and change back when it loses the focus. I've got an idea that this is an occasion when I should create a class and make all the controls inherit some of that class's behavior. I'm not sure how to begin this exercise. What should I do? JC, are you awake? TIA, Arthur From Gustav at cactus.dk Sun Mar 2 16:21:49 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Sun, 02 Mar 2008 23:21:49 +0100 Subject: [AccessD] A Good Reason for a Class Message-ID: Hi Arthur Yes, that's a good reason. Look up the thread in December, "events question": http://databaseadvisors.com/pipermail/accessd/2007-December/057437.html /gustav >>> fuller.artful at gmail.com 02-03-2008 23:01 >>> I'm doing a traditional (MDB) app with one minor twist. The form's controls are (almost all) read-only until the user elects to update the data. At that point the Save button becomes enabled and remains enabled until the user saves the data, and then we're back to read-only. As a first pass, I simply set the form's AllowEdits to False, then switched it to True when the user clicks the button. Easy enough. But now I want to add some functionality, at least cosmetic. I want the controls to display in a color such as grey when they cannot be edited, and then white when they can be edited, and finally I want the control that has focus to change to yet another color and change back when it loses the focus. I've got an idea that this is an occasion when I should create a class and make all the controls inherit some of that class's behavior. I'm not sure how to begin this exercise. What should I do? JC, are you awake? TIA, Arthur From fuller.artful at gmail.com Sun Mar 2 17:33:13 2008 From: fuller.artful at gmail.com (Arthur Fuller) Date: Sun, 2 Mar 2008 18:33:13 -0500 Subject: [AccessD] A Good Reason for a Class In-Reply-To: References: Message-ID: <29f585dd0803021533j66e75fd6o41c8bf44913c0d97@mail.gmail.com> Thanks Gustav, A nice slick and compact little demo. To do precisely what I need, I must add a teensy bit of code, which I shall begin doing now. I guess that I'll have to loop through the controls as you did, enabling them all once the user clicks the Update button, and then re-loop to disable them once the user clicks Save Changes. And then I'll have to add a line or two to prevent the color change if the control is disabled. But as is, it's very pretty and intuitive. Thx, Arthur On 3/2/08, Gustav Brock wrote: > > Hi Arthur > > Yes, that's a good reason. > Look up the thread in December, "events question": > > http://databaseadvisors.com/pipermail/accessd/2007-December/057437.html > > /gustav > From Darryl.Collins at coles.com.au Sun Mar 2 19:19:45 2008 From: Darryl.Collins at coles.com.au (Darryl Collins) Date: Mon, 3 Mar 2008 12:19:45 +1100 Subject: [AccessD] Access Table data replaced with ##### in some fields Message-ID: <49DFE57FB126044B8A8B934E7AEA09ED09FD6FE3@WPEXCH05.colesmyer.ad.cmltd.net.au> Hey There, This looks like some sort of corruption issue. I have a table where two records where the data has been replaced by ####'s. Does anyone know why this may have happened? regards Darryl This email and any attachments may contain privileged and confidential information and are intended for the named addressee only. If you have received this e-mail in error, please notify the sender and delete this e-mail immediately. Any confidentiality, privilege or copyright is not waived or lost because this e-mail has been sent to you in error. It is your responsibility to check this e-mail and any attachments for viruses. No warranty is made that this material is free from computer virus or any other defect or error. Any loss/damage incurred by using this material is not the sender's responsibility. The sender's entire liability will be limited to resupplying the material. From jwcolby at colbyconsulting.com Sun Mar 2 19:47:09 2008 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sun, 2 Mar 2008 20:47:09 -0500 Subject: [AccessD] A Good Reason for a Class In-Reply-To: <29f585dd0803021401m4ea5fea4u5cd153c6fed76d5f@mail.gmail.com> References: <29f585dd0803021401m4ea5fea4u5cd153c6fed76d5f@mail.gmail.com> Message-ID: <004501c87cd0$7f2f57b0$0201a8c0@M90> Yea, I'm here. I have a bunch of WithEvent class demos on my site including some that change the background color. If this is to be generic, IOW it should work with any form and the controls on those forms, then you will want a form class that any form needing to do this will use. That form would use a control scanner to find all controls on the form. Additionally you would want a class for each control that you want the background to change, for example a clsCtlTxt, clsCtlCbo etc. Once you have those, the form class is initialized by the form, the form class initializes a class instance for each control and you are off. The form class would also control the form's AllowEdits property and any others you might need controlled. Poke around through my demos and I am sure you will find the skeleton for just this kind of 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 Arthur Fuller Sent: Sunday, March 02, 2008 5:01 PM To: Access Developers discussion and problem solving Subject: [AccessD] A Good Reason for a Class I'm doing a traditional (MDB) app with one minor twist. The form's controls are (almost all) read-only until the user elects to update the data. At that point the Save button becomes enabled and remains enabled until the user saves the data, and then we're back to read-only. As a first pass, I simply set the form's AllowEdits to False, then switched it to True when the user clicks the button. Easy enough. But now I want to add some functionality, at least cosmetic. I want the controls to display in a color such as grey when they cannot be edited, and then white when they can be edited, and finally I want the control that has focus to change to yet another color and change back when it loses the focus. I've got an idea that this is an occasion when I should create a class and make all the controls inherit some of that class's behavior. I'm not sure how to begin this exercise. What should I do? JC, are you awake? TIA, Arthur -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From delam at zyterra.com Sun Mar 2 19:51:42 2008 From: delam at zyterra.com (delam at zyterra.com) Date: Mon, 3 Mar 2008 01:51:42 +0000 Subject: [AccessD] Access Table data replaced with ##### in some fields In-Reply-To: <49DFE57FB126044B8A8B934E7AEA09ED09FD6FE3@WPEXCH05.colesmyer.ad.cmltd.net.au> References: <49DFE57FB126044B8A8B934E7AEA09ED09FD6FE3@WPEXCH05.colesmyer.ad.cmltd.net.au> Message-ID: <1781070581-1204508926-cardhu_decombobulator_blackberry.rim.net-232745865-@bxe040.bisx.prod.on.blackberry> I have seen this happen on memo fields. I have been told network issues can cause them. Have not found a better explanation. Debbie Sent via BlackBerry by AT&T -----Original Message----- From: "Darryl Collins" Date: Mon, 3 Mar 2008 12:19:45 To:"Access Developers discussion and problem solving" Subject: [AccessD] Access Table data replaced with ##### in some fields Hey There, This looks like some sort of corruption issue. I have a table where two records where the data has been replaced by ####'s. Does anyone know why this may have happened? regards Darryl This email and any attachments may contain privileged and confidential information and are intended for the named addressee only. If you have received this e-mail in error, please notify the sender and delete this e-mail immediately. Any confidentiality, privilege or copyright is not waived or lost because this e-mail has been sent to you in error. It is your responsibility to check this e-mail and any attachments for viruses. No warranty is made that this material is free from computer virus or any other defect or error. Any loss/damage incurred by using this material is not the sender's responsibility. The sender's entire liability will be limited to resupplying the material. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Darryl.Collins at coles.com.au Sun Mar 2 20:15:45 2008 From: Darryl.Collins at coles.com.au (Darryl Collins) Date: Mon, 3 Mar 2008 13:15:45 +1100 Subject: [AccessD] Access Table data replaced with ##### in some fields Message-ID: <49DFE57FB126044B8A8B934E7AEA09ED0B27022B@WPEXCH05.colesmyer.ad.cmltd.net.au> Thanks Debbie. Ok.. That could make sense. These were not just memo fields, but it is over a network which is running somewhat sluggy today and the user in question did have Access fail on them and Access generated a 'compaction error table' in the database. The error wiped out the KeyID fields and a few others and left in about half the field (say 5 out of 10) about 15 #'s and that was it. Naturally not having the KeyID immediately caused a lot of errors. I have a complete backup table which I have used to replace the damaged one with no loss of data so it is a not major issue today. It has shaken the confidence of my new users a bit. urrrgh. If anyone else has had any experience on this I would love to hear your story. regards Darryl. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of delam at zyterra.com Sent: Monday, 3 March 2008 12:52 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access Table data replaced with ##### in some fields I have seen this happen on memo fields. I have been told network issues can cause them. Have not found a better explanation. Debbie Sent via BlackBerry by AT&T -----Original Message----- From: "Darryl Collins" Date: Mon, 3 Mar 2008 12:19:45 To:"Access Developers discussion and problem solving" Subject: [AccessD] Access Table data replaced with ##### in some fields Hey There, This looks like some sort of corruption issue. I have a table where two records where the data has been replaced by ####'s. Does anyone know why this may have happened? regards Darryl This email and any attachments may contain privileged and confidential information and are intended for the named addressee only. If you have received this e-mail in error, please notify the sender and delete this e-mail immediately. Any confidentiality, privilege or copyright is not waived or lost because this e-mail has been sent to you in error. It is your responsibility to check this e-mail and any attachments for viruses. No warranty is made that this material is free from computer virus or any other defect or error. Any loss/damage incurred by using this material is not the sender's responsibility. The sender's entire liability will be limited to resupplying the material. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This email and any attachments may contain privileged and confidential information and are intended for the named addressee only. If you have received this e-mail in error, please notify the sender and delete this e-mail immediately. Any confidentiality, privilege or copyright is not waived or lost because this e-mail has been sent to you in error. It is your responsibility to check this e-mail and any attachments for viruses. No warranty is made that this material is free from computer virus or any other defect or error. Any loss/damage incurred by using this material is not the sender's responsibility. The sender's entire liability will be limited to resupplying the material. From enberga001 at hawaii.rr.com Sun Mar 2 21:06:59 2008 From: enberga001 at hawaii.rr.com (Alan Enberg) Date: Sun, 2 Mar 2008 17:06:59 -1000 Subject: [AccessD] Access Table data replaced with ##### in some fields In-Reply-To: <49DFE57FB126044B8A8B934E7AEA09ED0B27022B@WPEXCH05.colesmyer.ad.cmltd.net.au> Message-ID: <004801c87cdb$a634cf60$6501a8c0@your7008ffa13b> Darryl, For the past year I've experienced this, managing 3 Access mdbs for one company. Each mdb has about 10-20 users. From what I've read it does seem to be a network issue. Variants I've seen of the '####' are every field replaced with oriental characters, or one or more fields with '#ERROR'. It does seem to occur most often when users are editing memo fields. I find that if you have a numeric PKID (I almost always use auto-number), the key ID will often still be there...but the index will be hosed, so Access doesn't know it's there. So far, I've only had one record at a time get corrupted. If you can determine the key ID, say by looking at the previous and next records, you may be able to restore the individual record instead of the entire database, so you avoid losing all the edits since the last backup. Of course, if the db has many tables with dependent records, this may not be practical. I haven't yet found a solution to this either. Since the index error can make any further record searches fail (essentially stopping all production) and the only solution (I know of) is to get all the users out, compact & repair, delete the offending record(s) then restore them, I wonder how clients with no on-site db manager deal with it. There's doubtless been many threads related to this over the years, but I'd be interested to know how others have dealt with it. Are there any programming methods/trick to avoid this? Alan Enberg -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darryl Collins Sent: Sunday, March 02, 2008 4:16 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access Table data replaced with ##### in some fields Thanks Debbie. Ok.. That could make sense. These were not just memo fields, but it is over a network which is running somewhat sluggy today and the user in question did have Access fail on them and Access generated a 'compaction error table' in the database. The error wiped out the KeyID fields and a few others and left in about half the field (say 5 out of 10) about 15 #'s and that was it. Naturally not having the KeyID immediately caused a lot of errors. I have a complete backup table which I have used to replace the damaged one with no loss of data so it is a not major issue today. It has shaken the confidence of my new users a bit. urrrgh. If anyone else has had any experience on this I would love to hear your story. regards Darryl. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of delam at zyterra.com Sent: Monday, 3 March 2008 12:52 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access Table data replaced with ##### in some fields I have seen this happen on memo fields. I have been told network issues can cause them. Have not found a better explanation. Debbie Sent via BlackBerry by AT&T -----Original Message----- From: "Darryl Collins" Date: Mon, 3 Mar 2008 12:19:45 To:"Access Developers discussion and problem solving" Subject: [AccessD] Access Table data replaced with ##### in some fields Hey There, This looks like some sort of corruption issue. I have a table where two records where the data has been replaced by ####'s. Does anyone know why this may have happened? regards Darryl This email and any attachments may contain privileged and confidential information and are intended for the named addressee only. If you have received this e-mail in error, please notify the sender and delete this e-mail immediately. Any confidentiality, privilege or copyright is not waived or lost because this e-mail has been sent to you in error. It is your responsibility to check this e-mail and any attachments for viruses. No warranty is made that this material is free from computer virus or any other defect or error. Any loss/damage incurred by using this material is not the sender's responsibility. The sender's entire liability will be limited to resupplying the material. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This email and any attachments may contain privileged and confidential information and are intended for the named addressee only. If you have received this e-mail in error, please notify the sender and delete this e-mail immediately. Any confidentiality, privilege or copyright is not waived or lost because this e-mail has been sent to you in error. It is your responsibility to check this e-mail and any attachments for viruses. No warranty is made that this material is free from computer virus or any other defect or error. Any loss/damage incurred by using this material is not the sender's responsibility. The sender's entire liability will be limited to resupplying the material. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Darryl.Collins at coles.com.au Sun Mar 2 21:33:59 2008 From: Darryl.Collins at coles.com.au (Darryl Collins) Date: Mon, 3 Mar 2008 14:33:59 +1100 Subject: [AccessD] Access Table data replaced with ##### in some fields Message-ID: <49DFE57FB126044B8A8B934E7AEA09ED09FD6FE7@WPEXCH05.colesmyer.ad.cmltd.net.au> Alan, Thanks very much for this detail - yep, this seems to mirror the issue I had this morning. I too use AutoNumber field for the KeyID, and whilst the table that had this error does not have memo fields, the data entry Form the users use (and the form is based on the damaged table) has plenty of them in other subForms. To correct this I only needed to replace the table itself, rather than back up the whole database. Even so, you are correct. Whilst I was lucky and it was a quick and easy fix for me (with no data loss thanks to a good backup system), it might not have been so pleasant if I wasn't on-site at the time. Kind regards Darryl. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Alan Enberg Sent: Monday, 3 March 2008 2:07 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access Table data replaced with ##### in some fields Darryl, For the past year I've experienced this, managing 3 Access mdbs for one company. Each mdb has about 10-20 users. From what I've read it does seem to be a network issue. Variants I've seen of the '####' are every field replaced with oriental characters, or one or more fields with '#ERROR'. It does seem to occur most often when users are editing memo fields. I find that if you have a numeric PKID (I almost always use auto-number), the key ID will often still be there...but the index will be hosed, so Access doesn't know it's there. So far, I've only had one record at a time get corrupted. If you can determine the key ID, say by looking at the previous and next records, you may be able to restore the individual record instead of the entire database, so you avoid losing all the edits since the last backup. Of course, if the db has many tables with dependent records, this may not be practical. I haven't yet found a solution to this either. Since the index error can make any further record searches fail (essentially stopping all production) and the only solution (I know of) is to get all the users out, compact & repair, delete the offending record(s) then restore them, I wonder how clients with no on-site db manager deal with it. There's doubtless been many threads related to this over the years, but I'd be interested to know how others have dealt with it. Are there any programming methods/trick to avoid this? Alan Enberg -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darryl Collins Sent: Sunday, March 02, 2008 4:16 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access Table data replaced with ##### in some fields Thanks Debbie. Ok.. That could make sense. These were not just memo fields, but it is over a network which is running somewhat sluggy today and the user in question did have Access fail on them and Access generated a 'compaction error table' in the database. The error wiped out the KeyID fields and a few others and left in about half the field (say 5 out of 10) about 15 #'s and that was it. Naturally not having the KeyID immediately caused a lot of errors. I have a complete backup table which I have used to replace the damaged one with no loss of data so it is a not major issue today. It has shaken the confidence of my new users a bit. urrrgh. If anyone else has had any experience on this I would love to hear your story. regards Darryl. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of delam at zyterra.com Sent: Monday, 3 March 2008 12:52 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access Table data replaced with ##### in some fields I have seen this happen on memo fields. I have been told network issues can cause them. Have not found a better explanation. Debbie Sent via BlackBerry by AT&T -----Original Message----- From: "Darryl Collins" Date: Mon, 3 Mar 2008 12:19:45 To:"Access Developers discussion and problem solving" Subject: [AccessD] Access Table data replaced with ##### in some fields Hey There, This looks like some sort of corruption issue. I have a table where two records where the data has been replaced by ####'s. Does anyone know why this may have happened? regards Darryl This email and any attachments may contain privileged and confidential information and are intended for the named addressee only. If you have received this e-mail in error, please notify the sender and delete this e-mail immediately. Any confidentiality, privilege or copyright is not waived or lost because this e-mail has been sent to you in error. It is your responsibility to check this e-mail and any attachments for viruses. No warranty is made that this material is free from computer virus or any other defect or error. Any loss/damage incurred by using this material is not the sender's responsibility. The sender's entire liability will be limited to resupplying the material. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This email and any attachments may contain privileged and confidential information and are intended for the named addressee only. If you have received this e-mail in error, please notify the sender and delete this e-mail immediately. Any confidentiality, privilege or copyright is not waived or lost because this e-mail has been sent to you in error. It is your responsibility to check this e-mail and any attachments for viruses. No warranty is made that this material is free from computer virus or any other defect or error. Any loss/damage incurred by using this material is not the sender's responsibility. The sender's entire liability will be limited to resupplying the material. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This email and any attachments may contain privileged and confidential information and are intended for the named addressee only. If you have received this e-mail in error, please notify the sender and delete this e-mail immediately. Any confidentiality, privilege or copyright is not waived or lost because this e-mail has been sent to you in error. It is your responsibility to check this e-mail and any attachments for viruses. No warranty is made that this material is free from computer virus or any other defect or error. Any loss/damage incurred by using this material is not the sender's responsibility. The sender's entire liability will be limited to resupplying the material. From fuller.artful at gmail.com Mon Mar 3 04:46:10 2008 From: fuller.artful at gmail.com (Arthur Fuller) Date: Mon, 3 Mar 2008 05:46:10 -0500 Subject: [AccessD] A Good Reason for a Class In-Reply-To: <004501c87cd0$7f2f57b0$0201a8c0@M90> References: <29f585dd0803021401m4ea5fea4u5cd153c6fed76d5f@mail.gmail.com> <004501c87cd0$7f2f57b0$0201a8c0@M90> Message-ID: <29f585dd0803030246n1bf7330avef8e98f02fb87cdc@mail.gmail.com> Thanks, JC. Gustav put me in the right direction and I'm sure that your classes will take me the rest of the way. I have one other very minor issue, which is this. Since no edits are permitted until the user clicks Update Data, then I need to place the focus somewhere. I have a tab control on the form, so I guess I could place it there. At the moment I have a very small textbox control where I place the focus(and exclude it from the loops). Is there a better way? Thanks, Arthur On 3/2/08, jwcolby wrote: > > Yea, I'm here. I have a bunch of WithEvent class demos on my site > including > some that change the background color. > > If this is to be generic, IOW it should work with any form and the > controls > on those forms, then you will want a form class that any form needing to > do > this will use. > > That form would use a control scanner to find all controls on the form. > Additionally you would want a class for each control that you want the > background to change, for example a clsCtlTxt, clsCtlCbo etc. Once you > have > those, the form class is initialized by the form, the form class > initializes > a class instance for each control and you are off. The form class would > also control the form's AllowEdits property and any others you might need > controlled. > > Poke around through my demos and I am sure you will find the skeleton for > just this kind of thing. > > > John W. Colby > From lembit.dbamail at t-online.de Mon Mar 3 05:29:46 2008 From: lembit.dbamail at t-online.de (Lembit Soobik) Date: Mon, 3 Mar 2008 12:29:46 +0100 Subject: [AccessD] A Good Reason for a Class References: <29f585dd0803021401m4ea5fea4u5cd153c6fed76d5f@mail.gmail.com><004501c87cd0$7f2f57b0$0201a8c0@M90> <29f585dd0803030246n1bf7330avef8e98f02fb87cdc@mail.gmail.com> Message-ID: <004d01c87d21$e2e1c9e0$1800a8c0@s1800> a transparent button is a good parking place for the focus Lembit ----- Original Message ----- From: "Arthur Fuller" To: "Access Developers discussion and problem solving" Sent: Monday, March 03, 2008 11:46 AM Subject: Re: [AccessD] A Good Reason for a Class > Thanks, JC. Gustav put me in the right direction and I'm sure that your > classes will take me the rest of the way. > > I have one other very minor issue, which is this. Since no edits are > permitted until the user clicks Update Data, then I need to place the > focus > somewhere. I have a tab control on the form, so I guess I could place it > there. At the moment I have a very small textbox control where I place the > focus(and exclude it from the loops). Is there a better way? > > Thanks, > Arthur > > On 3/2/08, jwcolby wrote: >> >> Yea, I'm here. I have a bunch of WithEvent class demos on my site >> including >> some that change the background color. >> >> If this is to be generic, IOW it should work with any form and the >> controls >> on those forms, then you will want a form class that any form needing to >> do >> this will use. >> >> That form would use a control scanner to find all controls on the form. >> Additionally you would want a class for each control that you want the >> background to change, for example a clsCtlTxt, clsCtlCbo etc. Once you >> have >> those, the form class is initialized by the form, the form class >> initializes >> a class instance for each control and you are off. The form class would >> also control the form's AllowEdits property and any others you might need >> controlled. >> >> Poke around through my demos and I am sure you will find the skeleton for >> just this kind of thing. >> >> >> John W. Colby >> > -- > 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.5.516 / Virus Database: 269.21.3/1307 - Release Date: > 02.03.2008 15:59 > From fuller.artful at gmail.com Mon Mar 3 05:47:29 2008 From: fuller.artful at gmail.com (Arthur Fuller) Date: Mon, 3 Mar 2008 06:47:29 -0500 Subject: [AccessD] A Good Reason for a Class In-Reply-To: <004d01c87d21$e2e1c9e0$1800a8c0@s1800> References: <29f585dd0803021401m4ea5fea4u5cd153c6fed76d5f@mail.gmail.com> <004501c87cd0$7f2f57b0$0201a8c0@M90> <29f585dd0803030246n1bf7330avef8e98f02fb87cdc@mail.gmail.com> <004d01c87d21$e2e1c9e0$1800a8c0@s1800> Message-ID: <29f585dd0803030347o73a49ecem51e5bbfa9e8f34cd@mail.gmail.com> Thanks Lembit! A. On 3/3/08, Lembit Soobik wrote: > > a transparent button is a good parking place for the focus > > Lembit > From markamatte at hotmail.com Mon Mar 3 10:06:17 2008 From: markamatte at hotmail.com (Mark A Matte) Date: Mon, 3 Mar 2008 16:06:17 +0000 Subject: [AccessD] OT Crystal Reports In-Reply-To: <49DFE57FB126044B8A8B934E7AEA09ED09FD6FE7@WPEXCH05.colesmyer.ad.cmltd.net.au> References: <49DFE57FB126044B8A8B934E7AEA09ED09FD6FE7@WPEXCH05.colesmyer.ad.cmltd.net.au> Message-ID: Hello All, Sorry for the OT...there are over 1000 reports in Crystal Reports Ver 7(CR-7) that I need to get into CR-11. My understanding is the only way to do this is to open the old report in the new software and click save. Anyone have any experience automating this? Also, is anyone familiar with the scenario above causing errors in some reports? Some of the reports what went through the above process would run ex: 12 records with a currency field...report lists records and displays subtotal...unfortunately it displayed 10 records but added all 12 up? This was verified on a number of different machines, reports and tables. But if the report was recreated from scratch...all records were visible. It was not a data issue. 3rd and final on this subject...I also need to convert all of my labels to Spanish? Any automation ideas on any of the above would be greatly appreciated. Thanks, Mark A. Matte _________________________________________________________________ Climb to the top of the charts!?Play the word scramble challenge with star power. http://club.live.com/star_shuffle.aspx?icid=starshuffle_wlmailtextlink_jan From rockysmolin at bchacc.com Mon Mar 3 10:58:52 2008 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Mon, 3 Mar 2008 08:58:52 -0800 Subject: [AccessD] Regional Settings Problem Message-ID: <003801c87d4f$dc1485c0$0301a8c0@HAL9005> Dear List: I have a dealer in Brazil who brought something to my attention. In Brazil they use the comma as a decimal point and a period to separate thousands. When I set my regional settings to Portuguese(Brazil) I can enter fractions like 2,123. But the comma (their decimal point) appears whether I press comma or period. That's probably OK. After the field is updated it shows as 2,123 but if I select the field it displays as 2.123. So I can enter fractional quantities using the comma and it displays correctly after update. The only time the period shows is when an already entered number in a field is selected. But this is causing him some trouble. What am I missing on this Windows Regional Setting thing? MTIA Rocky From garykjos at gmail.com Mon Mar 3 11:32:00 2008 From: garykjos at gmail.com (Gary Kjos) Date: Mon, 3 Mar 2008 11:32:00 -0600 Subject: [AccessD] Regional Settings Problem In-Reply-To: <003801c87d4f$dc1485c0$0301a8c0@HAL9005> References: <003801c87d4f$dc1485c0$0301a8c0@HAL9005> Message-ID: Do you perhaps have defined Formats for the field on the form that might be overriding the User Setting? GK On 3/3/08, Rocky Smolin at Beach Access Software wrote: > Dear List: > > I have a dealer in Brazil who brought something to my attention. In Brazil > they use the comma as a decimal point and a period to separate thousands. > > When I set my regional settings to Portuguese(Brazil) I can enter fractions > like 2,123. But the comma (their decimal point) appears whether I press > comma or period. That's probably OK. > > After the field is updated it shows as 2,123 but if I select the field it > displays as 2.123. So I can enter fractional quantities using the comma and > it displays correctly after update. The only time the period shows is when > an already entered number in a field is selected. > > But this is causing him some trouble. What am I missing on this Windows > Regional Setting thing? > > MTIA > > Rocky > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Gary Kjos garykjos at gmail.com From rockysmolin at bchacc.com Mon Mar 3 12:39:11 2008 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Mon, 3 Mar 2008 10:39:11 -0800 Subject: [AccessD] Regional Settings Problem In-Reply-To: References: <003801c87d4f$dc1485c0$0301a8c0@HAL9005> Message-ID: <003801c87d5d$dfe5d0b0$0301a8c0@HAL9005> The format for the field I tested is Fixed with decimal places set at 3. There is no input mask. Is that what's causing the problem? Is there a better format which would do what I need for the U.S. and not make a conflict with the foreign users? Regards, Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos Sent: Monday, March 03, 2008 9:32 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Regional Settings Problem Do you perhaps have defined Formats for the field on the form that might be overriding the User Setting? GK On 3/3/08, Rocky Smolin at Beach Access Software wrote: > Dear List: > > I have a dealer in Brazil who brought something to my attention. In > Brazil they use the comma as a decimal point and a period to separate thousands. > > When I set my regional settings to Portuguese(Brazil) I can enter > fractions like 2,123. But the comma (their decimal point) appears > whether I press comma or period. That's probably OK. > > After the field is updated it shows as 2,123 but if I select the field > it displays as 2.123. So I can enter fractional quantities using the > comma and it displays correctly after update. The only time the > period shows is when an already entered number in a field is selected. > > But this is causing him some trouble. What am I missing on this > Windows Regional Setting thing? > > MTIA > > Rocky > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Gary Kjos garykjos at gmail.com -- 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.5.516 / Virus Database: 269.21.3/1307 - Release Date: 3/2/2008 3:59 PM From garykjos at gmail.com Mon Mar 3 13:05:50 2008 From: garykjos at gmail.com (Gary Kjos) Date: Mon, 3 Mar 2008 13:05:50 -0600 Subject: [AccessD] Regional Settings Problem In-Reply-To: <003801c87d5d$dfe5d0b0$0301a8c0@HAL9005> References: <003801c87d4f$dc1485c0$0301a8c0@HAL9005> <003801c87d5d$dfe5d0b0$0301a8c0@HAL9005> Message-ID: I'm guessing that if you have ANYTHING in that format parameter you are going to have a problem as it will override the Regional Default setting. It should be noted that I have never worked with any clients or users outside the geographical confines of Minnesota though. ;-) GK On 3/3/08, Rocky Smolin at Beach Access Software wrote: > The format for the field I tested is Fixed with decimal places set at 3. > There is no input mask. Is that what's causing the problem? Is there a > better format which would do what I need for the U.S. and not make a > conflict with the foreign users? > > Regards, > > Rocky > > > > > > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos > Sent: Monday, March 03, 2008 9:32 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Regional Settings Problem > > Do you perhaps have defined Formats for the field on the form that might be > overriding the User Setting? > > GK > > On 3/3/08, Rocky Smolin at Beach Access Software > wrote: > > Dear List: > > > > I have a dealer in Brazil who brought something to my attention. In > > Brazil they use the comma as a decimal point and a period to separate > thousands. > > > > When I set my regional settings to Portuguese(Brazil) I can enter > > fractions like 2,123. But the comma (their decimal point) appears > > whether I press comma or period. That's probably OK. > > > > After the field is updated it shows as 2,123 but if I select the field > > it displays as 2.123. So I can enter fractional quantities using the > > comma and it displays correctly after update. The only time the > > period shows is when an already entered number in a field is selected. > > > > But this is causing him some trouble. What am I missing on this > > Windows Regional Setting thing? > > > > MTIA > > > > Rocky > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > -- > Gary Kjos > garykjos at gmail.com > -- > 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.5.516 / Virus Database: 269.21.3/1307 - Release Date: 3/2/2008 > 3:59 PM > > > -- > 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 cfoust at infostatsystems.com Mon Mar 3 13:10:19 2008 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 3 Mar 2008 11:10:19 -0800 Subject: [AccessD] Regional Settings Problem In-Reply-To: <003801c87d5d$dfe5d0b0$0301a8c0@HAL9005> References: <003801c87d4f$dc1485c0$0301a8c0@HAL9005> <003801c87d5d$dfe5d0b0$0301a8c0@HAL9005> Message-ID: Rocky, What we had to do in our apps was to allow for the regional settings (it could be worse, France uses a space as a delimiter) and have a function that casts any number passed into it back into US format for use in SQL, etc. Similarly, we have a function that casts dates in US format for SQL purposes. All Our exports convert the data to US format and the import converts that to the local regional settings if needed. A lot of initial work, but we have clients all over the world. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Monday, March 03, 2008 10:39 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Regional Settings Problem The format for the field I tested is Fixed with decimal places set at 3. There is no input mask. Is that what's causing the problem? Is there a better format which would do what I need for the U.S. and not make a conflict with the foreign users? Regards, Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos Sent: Monday, March 03, 2008 9:32 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Regional Settings Problem Do you perhaps have defined Formats for the field on the form that might be overriding the User Setting? GK On 3/3/08, Rocky Smolin at Beach Access Software wrote: > Dear List: > > I have a dealer in Brazil who brought something to my attention. In > Brazil they use the comma as a decimal point and a period to separate thousands. > > When I set my regional settings to Portuguese(Brazil) I can enter > fractions like 2,123. But the comma (their decimal point) appears > whether I press comma or period. That's probably OK. > > After the field is updated it shows as 2,123 but if I select the field > it displays as 2.123. So I can enter fractional quantities using the > comma and it displays correctly after update. The only time the > period shows is when an already entered number in a field is selected. > > But this is causing him some trouble. What am I missing on this > Windows Regional Setting thing? > > MTIA > > Rocky > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Gary Kjos garykjos at gmail.com -- 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.5.516 / Virus Database: 269.21.3/1307 - Release Date: 3/2/2008 3:59 PM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Mon Mar 3 13:12:02 2008 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 3 Mar 2008 11:12:02 -0800 Subject: [AccessD] Regional Settings Problem In-Reply-To: References: <003801c87d4f$dc1485c0$0301a8c0@HAL9005><003801c87d5d$dfe5d0b0$0301a8c0@HAL9005> Message-ID: No, the decimal format should work regardless of the regional settings. But if the keyboard settings don't agree with the regional settings, that could cause weird behavior. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos Sent: Monday, March 03, 2008 11:06 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Regional Settings Problem I'm guessing that if you have ANYTHING in that format parameter you are going to have a problem as it will override the Regional Default setting. It should be noted that I have never worked with any clients or users outside the geographical confines of Minnesota though. ;-) GK On 3/3/08, Rocky Smolin at Beach Access Software wrote: > The format for the field I tested is Fixed with decimal places set at 3. > There is no input mask. Is that what's causing the problem? Is there > a better format which would do what I need for the U.S. and not make a > conflict with the foreign users? > > Regards, > > Rocky > > From rockysmolin at bchacc.com Mon Mar 3 13:29:01 2008 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Mon, 3 Mar 2008 11:29:01 -0800 Subject: [AccessD] Regional Settings Problem In-Reply-To: References: <003801c87d4f$dc1485c0$0301a8c0@HAL9005><003801c87d5d$dfe5d0b0$0301a8c0@HAL9005> Message-ID: <004201c87d64$d664a1e0$0301a8c0@HAL9005> You know everything works perfectly on my machine EXCEPT, when a field is selected it displays American. For example, a field contains 2.123. When regional settings (and keyboard) are set to Portuguese (Brazil) is displays 1,123. And when entering a number whether I press comma or period it displays a comma. However, if I click or tab into a field so that the field is selected (shown in reverse video) the comma becomes a decimal point. If I enter another number in there like 4,567 it displays as 4,567 on entry, and, of course, after I leave the field. But if I go back to edit it and the whole field is selected, it displays 4.567. Any clues here: TIA Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: segunda-feira, 3 de mar?o de 2008 11:12 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Regional Settings Problem No, the decimal format should work regardless of the regional settings. But if the keyboard settings don't agree with the regional settings, that could cause weird behavior. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos Sent: Monday, March 03, 2008 11:06 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Regional Settings Problem I'm guessing that if you have ANYTHING in that format parameter you are going to have a problem as it will override the Regional Default setting. It should be noted that I have never worked with any clients or users outside the geographical confines of Minnesota though. ;-) GK On 3/3/08, Rocky Smolin at Beach Access Software wrote: > The format for the field I tested is Fixed with decimal places set at 3. > There is no input mask. Is that what's causing the problem? Is there > a better format which would do what I need for the U.S. and not make a > conflict with the foreign users? > > Regards, > > 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.5.516 / Virus Database: 269.21.3/1307 - Release Date: 2/3/2008 15:59 From cfoust at infostatsystems.com Mon Mar 3 13:41:01 2008 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 3 Mar 2008 11:41:01 -0800 Subject: [AccessD] Regional Settings Problem In-Reply-To: <004201c87d64$d664a1e0$0301a8c0@HAL9005> References: <003801c87d4f$dc1485c0$0301a8c0@HAL9005><003801c87d5d$dfe5d0b0$0301a8c0@HAL9005> <004201c87d64$d664a1e0$0301a8c0@HAL9005> Message-ID: Are your clients seeing the same thing in Brazil? There are multiple levels to regional settings, including the specifics of the decimal delimiter, digit delimiter, etc. Have you checked all those? Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Monday, March 03, 2008 11:29 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Regional Settings Problem You know everything works perfectly on my machine EXCEPT, when a field is selected it displays American. For example, a field contains 2.123. When regional settings (and keyboard) are set to Portuguese (Brazil) is displays 1,123. And when entering a number whether I press comma or period it displays a comma. However, if I click or tab into a field so that the field is selected (shown in reverse video) the comma becomes a decimal point. If I enter another number in there like 4,567 it displays as 4,567 on entry, and, of course, after I leave the field. But if I go back to edit it and the whole field is selected, it displays 4.567. Any clues here: TIA Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: segunda-feira, 3 de mar?o de 2008 11:12 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Regional Settings Problem No, the decimal format should work regardless of the regional settings. But if the keyboard settings don't agree with the regional settings, that could cause weird behavior. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos Sent: Monday, March 03, 2008 11:06 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Regional Settings Problem I'm guessing that if you have ANYTHING in that format parameter you are going to have a problem as it will override the Regional Default setting. It should be noted that I have never worked with any clients or users outside the geographical confines of Minnesota though. ;-) GK On 3/3/08, Rocky Smolin at Beach Access Software wrote: > The format for the field I tested is Fixed with decimal places set at 3. > There is no input mask. Is that what's causing the problem? Is there > a better format which would do what I need for the U.S. and not make a > conflict with the foreign users? > > Regards, > > 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.5.516 / Virus Database: 269.21.3/1307 - Release Date: 2/3/2008 15:59 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Mon Mar 3 14:02:09 2008 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Mon, 3 Mar 2008 12:02:09 -0800 Subject: [AccessD] Regional Settings Problem In-Reply-To: References: <003801c87d4f$dc1485c0$0301a8c0@HAL9005><003801c87d5d$dfe5d0b0$0301a8c0@HAL9005><004201c87d64$d664a1e0$0301a8c0@HAL9005> Message-ID: <004c01c87d69$777b8180$0301a8c0@HAL9005> No. I just got the email from him this morning. I hardly know what to ask him. But I'm going to summarize the accumulated list wisdom and email back with observations, questions, etc. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: segunda-feira, 3 de mar?o de 2008 11:41 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Regional Settings Problem Are your clients seeing the same thing in Brazil? There are multiple levels to regional settings, including the specifics of the decimal delimiter, digit delimiter, etc. Have you checked all those? Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Monday, March 03, 2008 11:29 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Regional Settings Problem You know everything works perfectly on my machine EXCEPT, when a field is selected it displays American. For example, a field contains 2.123. When regional settings (and keyboard) are set to Portuguese (Brazil) is displays 1,123. And when entering a number whether I press comma or period it displays a comma. However, if I click or tab into a field so that the field is selected (shown in reverse video) the comma becomes a decimal point. If I enter another number in there like 4,567 it displays as 4,567 on entry, and, of course, after I leave the field. But if I go back to edit it and the whole field is selected, it displays 4.567. Any clues here: TIA Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: segunda-feira, 3 de mar?o de 2008 11:12 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Regional Settings Problem No, the decimal format should work regardless of the regional settings. But if the keyboard settings don't agree with the regional settings, that could cause weird behavior. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos Sent: Monday, March 03, 2008 11:06 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Regional Settings Problem I'm guessing that if you have ANYTHING in that format parameter you are going to have a problem as it will override the Regional Default setting. It should be noted that I have never worked with any clients or users outside the geographical confines of Minnesota though. ;-) GK On 3/3/08, Rocky Smolin at Beach Access Software wrote: > The format for the field I tested is Fixed with decimal places set at 3. > There is no input mask. Is that what's causing the problem? Is there > a better format which would do what I need for the U.S. and not make a > conflict with the foreign users? > > Regards, > > 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.5.516 / Virus Database: 269.21.3/1307 - Release Date: 2/3/2008 15:59 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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.5.516 / Virus Database: 269.21.3/1307 - Release Date: 2/3/2008 15:59 From max.wanadoo at gmail.com Mon Mar 3 14:32:20 2008 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Mon, 3 Mar 2008 20:32:20 -0000 Subject: [AccessD] Regional Settings Problem In-Reply-To: <004c01c87d69$777b8180$0301a8c0@HAL9005> References: <003801c87d4f$dc1485c0$0301a8c0@HAL9005><003801c87d5d$dfe5d0b0$0301a8c0@HAL9005><004201c87d64$d664a1e0$0301a8c0@HAL9005> <004c01c87d69$777b8180$0301a8c0@HAL9005> Message-ID: <001b01c87d6d$aec87860$8119fea9@LTVM> Rocky, Would you be better off dialing in to his PC and checking the settings for yourself? It might save a lot of emailing back-n-forth. We use www.logmein.com and I believe that there is a free option available. Just a thought. Max ps. My PC at work "died" this morning. Delightful days ahead just to get back to where I was yesterday! -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Monday, March 03, 2008 8:02 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Regional Settings Problem No. I just got the email from him this morning. I hardly know what to ask him. But I'm going to summarize the accumulated list wisdom and email back with observations, questions, etc. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: segunda-feira, 3 de mar?o de 2008 11:41 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Regional Settings Problem Are your clients seeing the same thing in Brazil? There are multiple levels to regional settings, including the specifics of the decimal delimiter, digit delimiter, etc. Have you checked all those? Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Monday, March 03, 2008 11:29 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Regional Settings Problem You know everything works perfectly on my machine EXCEPT, when a field is selected it displays American. For example, a field contains 2.123. When regional settings (and keyboard) are set to Portuguese (Brazil) is displays 1,123. And when entering a number whether I press comma or period it displays a comma. However, if I click or tab into a field so that the field is selected (shown in reverse video) the comma becomes a decimal point. If I enter another number in there like 4,567 it displays as 4,567 on entry, and, of course, after I leave the field. But if I go back to edit it and the whole field is selected, it displays 4.567. Any clues here: TIA Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: segunda-feira, 3 de mar?o de 2008 11:12 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Regional Settings Problem No, the decimal format should work regardless of the regional settings. But if the keyboard settings don't agree with the regional settings, that could cause weird behavior. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos Sent: Monday, March 03, 2008 11:06 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Regional Settings Problem I'm guessing that if you have ANYTHING in that format parameter you are going to have a problem as it will override the Regional Default setting. It should be noted that I have never worked with any clients or users outside the geographical confines of Minnesota though. ;-) GK On 3/3/08, Rocky Smolin at Beach Access Software wrote: > The format for the field I tested is Fixed with decimal places set at 3. > There is no input mask. Is that what's causing the problem? Is there > a better format which would do what I need for the U.S. and not make a > conflict with the foreign users? > > Regards, > > 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.5.516 / Virus Database: 269.21.3/1307 - Release Date: 2/3/2008 15:59 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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.5.516 / Virus Database: 269.21.3/1307 - Release Date: 2/3/2008 15:59 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Mon Mar 3 14:59:16 2008 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Mon, 3 Mar 2008 12:59:16 -0800 Subject: [AccessD] Regional Settings Problem In-Reply-To: <001b01c87d6d$aec87860$8119fea9@LTVM> References: <003801c87d4f$dc1485c0$0301a8c0@HAL9005><003801c87d5d$dfe5d0b0$0301a8c0@HAL9005><004201c87d64$d664a1e0$0301a8c0@HAL9005><004c01c87d69$777b8180$0301a8c0@HAL9005> <001b01c87d6d$aec87860$8119fea9@LTVM> Message-ID: <005401c87d71$71958560$0301a8c0@HAL9005> That might work if he lets me in - a stranger in California - might be a little sketchy. He's a systems house in Brazil so he's pretty technically savvy. If I can ask him the right questions... How does LogMeIn work? How do I tell it what computer I want to log into? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Monday, March 03, 2008 12:32 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Regional Settings Problem Rocky, Would you be better off dialing in to his PC and checking the settings for yourself? It might save a lot of emailing back-n-forth. We use www.logmein.com and I believe that there is a free option available. Just a thought. Max ps. My PC at work "died" this morning. Delightful days ahead just to get back to where I was yesterday! -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Monday, March 03, 2008 8:02 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Regional Settings Problem No. I just got the email from him this morning. I hardly know what to ask him. But I'm going to summarize the accumulated list wisdom and email back with observations, questions, etc. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: segunda-feira, 3 de mar?o de 2008 11:41 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Regional Settings Problem Are your clients seeing the same thing in Brazil? There are multiple levels to regional settings, including the specifics of the decimal delimiter, digit delimiter, etc. Have you checked all those? Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Monday, March 03, 2008 11:29 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Regional Settings Problem You know everything works perfectly on my machine EXCEPT, when a field is selected it displays American. For example, a field contains 2.123. When regional settings (and keyboard) are set to Portuguese (Brazil) is displays 1,123. And when entering a number whether I press comma or period it displays a comma. However, if I click or tab into a field so that the field is selected (shown in reverse video) the comma becomes a decimal point. If I enter another number in there like 4,567 it displays as 4,567 on entry, and, of course, after I leave the field. But if I go back to edit it and the whole field is selected, it displays 4.567. Any clues here: TIA Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: segunda-feira, 3 de mar?o de 2008 11:12 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Regional Settings Problem No, the decimal format should work regardless of the regional settings. But if the keyboard settings don't agree with the regional settings, that could cause weird behavior. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos Sent: Monday, March 03, 2008 11:06 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Regional Settings Problem I'm guessing that if you have ANYTHING in that format parameter you are going to have a problem as it will override the Regional Default setting. It should be noted that I have never worked with any clients or users outside the geographical confines of Minnesota though. ;-) GK On 3/3/08, Rocky Smolin at Beach Access Software wrote: > The format for the field I tested is Fixed with decimal places set at 3. > There is no input mask. Is that what's causing the problem? Is there > a better format which would do what I need for the U.S. and not make a > conflict with the foreign users? > > Regards, > > 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.5.516 / Virus Database: 269.21.3/1307 - Release Date: 2/3/2008 15:59 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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.5.516 / Virus Database: 269.21.3/1307 - Release Date: 2/3/2008 15:59 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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.5.516 / Virus Database: 269.21.3/1307 - Release Date: 3/2/2008 3:59 PM From max.wanadoo at gmail.com Mon Mar 3 15:02:10 2008 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Mon, 3 Mar 2008 21:02:10 -0000 Subject: [AccessD] Regional Settings Problem In-Reply-To: <005401c87d71$71958560$0301a8c0@HAL9005> References: <003801c87d4f$dc1485c0$0301a8c0@HAL9005><003801c87d5d$dfe5d0b0$0301a8c0@HAL9005><004201c87d64$d664a1e0$0301a8c0@HAL9005><004c01c87d69$777b8180$0301a8c0@HAL9005><001b01c87d6d$aec87860$8119fea9@LTVM> <005401c87d71$71958560$0301a8c0@HAL9005> Message-ID: <001d01c87d71$d9eb92d0$8119fea9@LTVM> It's all on their site, Rocky Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Monday, March 03, 2008 8:59 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Regional Settings Problem That might work if he lets me in - a stranger in California - might be a little sketchy. He's a systems house in Brazil so he's pretty technically savvy. If I can ask him the right questions... How does LogMeIn work? How do I tell it what computer I want to log into? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Monday, March 03, 2008 12:32 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Regional Settings Problem Rocky, Would you be better off dialing in to his PC and checking the settings for yourself? It might save a lot of emailing back-n-forth. We use www.logmein.com and I believe that there is a free option available. Just a thought. Max ps. My PC at work "died" this morning. Delightful days ahead just to get back to where I was yesterday! -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Monday, March 03, 2008 8:02 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Regional Settings Problem No. I just got the email from him this morning. I hardly know what to ask him. But I'm going to summarize the accumulated list wisdom and email back with observations, questions, etc. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: segunda-feira, 3 de mar?o de 2008 11:41 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Regional Settings Problem Are your clients seeing the same thing in Brazil? There are multiple levels to regional settings, including the specifics of the decimal delimiter, digit delimiter, etc. Have you checked all those? Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Monday, March 03, 2008 11:29 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Regional Settings Problem You know everything works perfectly on my machine EXCEPT, when a field is selected it displays American. For example, a field contains 2.123. When regional settings (and keyboard) are set to Portuguese (Brazil) is displays 1,123. And when entering a number whether I press comma or period it displays a comma. However, if I click or tab into a field so that the field is selected (shown in reverse video) the comma becomes a decimal point. If I enter another number in there like 4,567 it displays as 4,567 on entry, and, of course, after I leave the field. But if I go back to edit it and the whole field is selected, it displays 4.567. Any clues here: TIA Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: segunda-feira, 3 de mar?o de 2008 11:12 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Regional Settings Problem No, the decimal format should work regardless of the regional settings. But if the keyboard settings don't agree with the regional settings, that could cause weird behavior. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos Sent: Monday, March 03, 2008 11:06 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Regional Settings Problem I'm guessing that if you have ANYTHING in that format parameter you are going to have a problem as it will override the Regional Default setting. It should be noted that I have never worked with any clients or users outside the geographical confines of Minnesota though. ;-) GK On 3/3/08, Rocky Smolin at Beach Access Software wrote: > The format for the field I tested is Fixed with decimal places set at 3. > There is no input mask. Is that what's causing the problem? Is there > a better format which would do what I need for the U.S. and not make a > conflict with the foreign users? > > Regards, > > 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.5.516 / Virus Database: 269.21.3/1307 - Release Date: 2/3/2008 15:59 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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.5.516 / Virus Database: 269.21.3/1307 - Release Date: 2/3/2008 15:59 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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.5.516 / Virus Database: 269.21.3/1307 - Release Date: 3/2/2008 3:59 PM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Mon Mar 3 15:07:31 2008 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 3 Mar 2008 13:07:31 -0800 Subject: [AccessD] Regional Settings Problem In-Reply-To: <004201c87d64$d664a1e0$0301a8c0@HAL9005> References: <003801c87d4f$dc1485c0$0301a8c0@HAL9005><003801c87d5d$dfe5d0b0$0301a8c0@HAL9005> <004201c87d64$d664a1e0$0301a8c0@HAL9005> Message-ID: Rocky, There's a regional setting on the advanced tab that says "Apply all settings to the current user account and to the default user profile". Could this be missed? The Advanced settings are for non-unicode programs, which includes Access, doesn't it? Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Monday, March 03, 2008 11:29 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Regional Settings Problem You know everything works perfectly on my machine EXCEPT, when a field is selected it displays American. For example, a field contains 2.123. When regional settings (and keyboard) are set to Portuguese (Brazil) is displays 1,123. And when entering a number whether I press comma or period it displays a comma. However, if I click or tab into a field so that the field is selected (shown in reverse video) the comma becomes a decimal point. If I enter another number in there like 4,567 it displays as 4,567 on entry, and, of course, after I leave the field. But if I go back to edit it and the whole field is selected, it displays 4.567. Any clues here: TIA Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: segunda-feira, 3 de mar?o de 2008 11:12 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Regional Settings Problem No, the decimal format should work regardless of the regional settings. But if the keyboard settings don't agree with the regional settings, that could cause weird behavior. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos Sent: Monday, March 03, 2008 11:06 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Regional Settings Problem I'm guessing that if you have ANYTHING in that format parameter you are going to have a problem as it will override the Regional Default setting. It should be noted that I have never worked with any clients or users outside the geographical confines of Minnesota though. ;-) GK On 3/3/08, Rocky Smolin at Beach Access Software wrote: > The format for the field I tested is Fixed with decimal places set at 3. > There is no input mask. Is that what's causing the problem? Is there > a better format which would do what I need for the U.S. and not make a > conflict with the foreign users? > > Regards, > > 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.5.516 / Virus Database: 269.21.3/1307 - Release Date: 2/3/2008 15:59 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dw-murphy at cox.net Mon Mar 3 15:18:16 2008 From: dw-murphy at cox.net (Doug Murphy) Date: Mon, 3 Mar 2008 13:18:16 -0800 Subject: [AccessD] Regional Settings Problem In-Reply-To: <005401c87d71$71958560$0301a8c0@HAL9005> Message-ID: <004901c87d74$18b93b50$0200a8c0@murphy3234aaf1> Rocky, We use Techinline.com for working on customer computers remotely. When we started the first 2 weeks or month was free so it wouldn't cost you anything to try it. I have worked with a customer in Bermuda with this service and it worked well. We liked the service enough to keep using it when we had to pay. It is great for those situations where some one calls to say something doesn't work but can't really describe what and how. We don't do a lot so by it by session. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Monday, March 03, 2008 12:59 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Regional Settings Problem That might work if he lets me in - a stranger in California - might be a little sketchy. He's a systems house in Brazil so he's pretty technically savvy. If I can ask him the right questions... How does LogMeIn work? How do I tell it what computer I want to log into? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Monday, March 03, 2008 12:32 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Regional Settings Problem Rocky, Would you be better off dialing in to his PC and checking the settings for yourself? It might save a lot of emailing back-n-forth. We use www.logmein.com and I believe that there is a free option available. Just a thought. Max ps. My PC at work "died" this morning. Delightful days ahead just to get back to where I was yesterday! -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Monday, March 03, 2008 8:02 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Regional Settings Problem No. I just got the email from him this morning. I hardly know what to ask him. But I'm going to summarize the accumulated list wisdom and email back with observations, questions, etc. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: segunda-feira, 3 de mar?o de 2008 11:41 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Regional Settings Problem Are your clients seeing the same thing in Brazil? There are multiple levels to regional settings, including the specifics of the decimal delimiter, digit delimiter, etc. Have you checked all those? Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Monday, March 03, 2008 11:29 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Regional Settings Problem You know everything works perfectly on my machine EXCEPT, when a field is selected it displays American. For example, a field contains 2.123. When regional settings (and keyboard) are set to Portuguese (Brazil) is displays 1,123. And when entering a number whether I press comma or period it displays a comma. However, if I click or tab into a field so that the field is selected (shown in reverse video) the comma becomes a decimal point. If I enter another number in there like 4,567 it displays as 4,567 on entry, and, of course, after I leave the field. But if I go back to edit it and the whole field is selected, it displays 4.567. Any clues here: TIA Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: segunda-feira, 3 de mar?o de 2008 11:12 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Regional Settings Problem No, the decimal format should work regardless of the regional settings. But if the keyboard settings don't agree with the regional settings, that could cause weird behavior. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos Sent: Monday, March 03, 2008 11:06 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Regional Settings Problem I'm guessing that if you have ANYTHING in that format parameter you are going to have a problem as it will override the Regional Default setting. It should be noted that I have never worked with any clients or users outside the geographical confines of Minnesota though. ;-) GK On 3/3/08, Rocky Smolin at Beach Access Software wrote: > The format for the field I tested is Fixed with decimal places set at 3. > There is no input mask. Is that what's causing the problem? Is there > a better format which would do what I need for the U.S. and not make a > conflict with the foreign users? > > Regards, > > 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.5.516 / Virus Database: 269.21.3/1307 - Release Date: 2/3/2008 15:59 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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.5.516 / Virus Database: 269.21.3/1307 - Release Date: 2/3/2008 15:59 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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.5.516 / Virus Database: 269.21.3/1307 - Release Date: 3/2/2008 3:59 PM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Mon Mar 3 15:24:20 2008 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Mon, 3 Mar 2008 13:24:20 -0800 Subject: [AccessD] Regional Settings Problem In-Reply-To: <004901c87d74$18b93b50$0200a8c0@murphy3234aaf1> References: <005401c87d71$71958560$0301a8c0@HAL9005> <004901c87d74$18b93b50$0200a8c0@murphy3234aaf1> Message-ID: <006201c87d74$f1b3f440$0301a8c0@HAL9005> Do you have problems with firewalls and other gatekeepers? The couple of times I've tried to use Remote Assistance, it was blocked by the corporate network. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Murphy Sent: Monday, March 03, 2008 1:18 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Regional Settings Problem Rocky, We use Techinline.com for working on customer computers remotely. When we started the first 2 weeks or month was free so it wouldn't cost you anything to try it. I have worked with a customer in Bermuda with this service and it worked well. We liked the service enough to keep using it when we had to pay. It is great for those situations where some one calls to say something doesn't work but can't really describe what and how. We don't do a lot so by it by session. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Monday, March 03, 2008 12:59 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Regional Settings Problem That might work if he lets me in - a stranger in California - might be a little sketchy. He's a systems house in Brazil so he's pretty technically savvy. If I can ask him the right questions... How does LogMeIn work? How do I tell it what computer I want to log into? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Monday, March 03, 2008 12:32 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Regional Settings Problem Rocky, Would you be better off dialing in to his PC and checking the settings for yourself? It might save a lot of emailing back-n-forth. We use www.logmein.com and I believe that there is a free option available. Just a thought. Max ps. My PC at work "died" this morning. Delightful days ahead just to get back to where I was yesterday! -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Monday, March 03, 2008 8:02 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Regional Settings Problem No. I just got the email from him this morning. I hardly know what to ask him. But I'm going to summarize the accumulated list wisdom and email back with observations, questions, etc. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: segunda-feira, 3 de mar?o de 2008 11:41 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Regional Settings Problem Are your clients seeing the same thing in Brazil? There are multiple levels to regional settings, including the specifics of the decimal delimiter, digit delimiter, etc. Have you checked all those? Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Monday, March 03, 2008 11:29 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Regional Settings Problem You know everything works perfectly on my machine EXCEPT, when a field is selected it displays American. For example, a field contains 2.123. When regional settings (and keyboard) are set to Portuguese (Brazil) is displays 1,123. And when entering a number whether I press comma or period it displays a comma. However, if I click or tab into a field so that the field is selected (shown in reverse video) the comma becomes a decimal point. If I enter another number in there like 4,567 it displays as 4,567 on entry, and, of course, after I leave the field. But if I go back to edit it and the whole field is selected, it displays 4.567. Any clues here: TIA Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: segunda-feira, 3 de mar?o de 2008 11:12 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Regional Settings Problem No, the decimal format should work regardless of the regional settings. But if the keyboard settings don't agree with the regional settings, that could cause weird behavior. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos Sent: Monday, March 03, 2008 11:06 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Regional Settings Problem I'm guessing that if you have ANYTHING in that format parameter you are going to have a problem as it will override the Regional Default setting. It should be noted that I have never worked with any clients or users outside the geographical confines of Minnesota though. ;-) GK On 3/3/08, Rocky Smolin at Beach Access Software wrote: > The format for the field I tested is Fixed with decimal places set at 3. > There is no input mask. Is that what's causing the problem? Is there > a better format which would do what I need for the U.S. and not make a > conflict with the foreign users? > > Regards, > > 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.5.516 / Virus Database: 269.21.3/1307 - Release Date: 2/3/2008 15:59 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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.5.516 / Virus Database: 269.21.3/1307 - Release Date: 2/3/2008 15:59 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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.5.516 / Virus Database: 269.21.3/1307 - Release Date: 3/2/2008 3:59 PM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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.5.516 / Virus Database: 269.21.3/1307 - Release Date: 3/2/2008 3:59 PM From dw-murphy at cox.net Mon Mar 3 15:38:58 2008 From: dw-murphy at cox.net (Doug Murphy) Date: Mon, 3 Mar 2008 13:38:58 -0800 Subject: [AccessD] Regional Settings Problem In-Reply-To: <006201c87d74$f1b3f440$0301a8c0@HAL9005> Message-ID: <005201c87d76$fd4612a0$0200a8c0@murphy3234aaf1> Not yet. I have worked on corporate systems and personal systems. No problem with firewalls or anti virus stuff. You can see how it works and what you need to do by looking at the site. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Monday, March 03, 2008 1:24 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Regional Settings Problem Do you have problems with firewalls and other gatekeepers? The couple of times I've tried to use Remote Assistance, it was blocked by the corporate network. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Murphy Sent: Monday, March 03, 2008 1:18 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Regional Settings Problem Rocky, We use Techinline.com for working on customer computers remotely. When we started the first 2 weeks or month was free so it wouldn't cost you anything to try it. I have worked with a customer in Bermuda with this service and it worked well. We liked the service enough to keep using it when we had to pay. It is great for those situations where some one calls to say something doesn't work but can't really describe what and how. We don't do a lot so by it by session. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Monday, March 03, 2008 12:59 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Regional Settings Problem That might work if he lets me in - a stranger in California - might be a little sketchy. He's a systems house in Brazil so he's pretty technically savvy. If I can ask him the right questions... How does LogMeIn work? How do I tell it what computer I want to log into? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Monday, March 03, 2008 12:32 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Regional Settings Problem Rocky, Would you be better off dialing in to his PC and checking the settings for yourself? It might save a lot of emailing back-n-forth. We use www.logmein.com and I believe that there is a free option available. Just a thought. Max ps. My PC at work "died" this morning. Delightful days ahead just to get back to where I was yesterday! -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Monday, March 03, 2008 8:02 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Regional Settings Problem No. I just got the email from him this morning. I hardly know what to ask him. But I'm going to summarize the accumulated list wisdom and email back with observations, questions, etc. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: segunda-feira, 3 de mar?o de 2008 11:41 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Regional Settings Problem Are your clients seeing the same thing in Brazil? There are multiple levels to regional settings, including the specifics of the decimal delimiter, digit delimiter, etc. Have you checked all those? Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Monday, March 03, 2008 11:29 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Regional Settings Problem You know everything works perfectly on my machine EXCEPT, when a field is selected it displays American. For example, a field contains 2.123. When regional settings (and keyboard) are set to Portuguese (Brazil) is displays 1,123. And when entering a number whether I press comma or period it displays a comma. However, if I click or tab into a field so that the field is selected (shown in reverse video) the comma becomes a decimal point. If I enter another number in there like 4,567 it displays as 4,567 on entry, and, of course, after I leave the field. But if I go back to edit it and the whole field is selected, it displays 4.567. Any clues here: TIA Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: segunda-feira, 3 de mar?o de 2008 11:12 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Regional Settings Problem No, the decimal format should work regardless of the regional settings. But if the keyboard settings don't agree with the regional settings, that could cause weird behavior. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos Sent: Monday, March 03, 2008 11:06 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Regional Settings Problem I'm guessing that if you have ANYTHING in that format parameter you are going to have a problem as it will override the Regional Default setting. It should be noted that I have never worked with any clients or users outside the geographical confines of Minnesota though. ;-) GK On 3/3/08, Rocky Smolin at Beach Access Software wrote: > The format for the field I tested is Fixed with decimal places set at 3. > There is no input mask. Is that what's causing the problem? Is there > a better format which would do what I need for the U.S. and not make a > conflict with the foreign users? > > Regards, > > 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.5.516 / Virus Database: 269.21.3/1307 - Release Date: 2/3/2008 15:59 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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.5.516 / Virus Database: 269.21.3/1307 - Release Date: 2/3/2008 15:59 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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.5.516 / Virus Database: 269.21.3/1307 - Release Date: 3/2/2008 3:59 PM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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.5.516 / Virus Database: 269.21.3/1307 - Release Date: 3/2/2008 3:59 PM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From fuller.artful at gmail.com Mon Mar 3 16:07:05 2008 From: fuller.artful at gmail.com (Arthur Fuller) Date: Mon, 3 Mar 2008 17:07:05 -0500 Subject: [AccessD] Query by Form Message-ID: <29f585dd0803031407g20c20a59j953b286deadd69ae@mail.gmail.com> I've been scouting a couple of lists that translate menu commands to constants for RunCommand, but I cannot seem to locate the "Filter By Form" equivalent. Can you find this constant? TIA, Arthur From rockysmolin at bchacc.com Mon Mar 3 16:10:45 2008 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Mon, 3 Mar 2008 14:10:45 -0800 Subject: [AccessD] Regional Settings Problem In-Reply-To: <005201c87d76$fd4612a0$0200a8c0@murphy3234aaf1> References: <006201c87d74$f1b3f440$0301a8c0@HAL9005> <005201c87d76$fd4612a0$0200a8c0@murphy3234aaf1> Message-ID: <008201c87d7b$6dd4ef60$0301a8c0@HAL9005> Thanks. I'll do that. But of course, I still have the problem here with the selected field showing the decimal point instead of the comma even when I've got the Regional Settings AND the keyboard set to Protuguese(Brazil). Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Murphy Sent: Monday, March 03, 2008 1:39 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Regional Settings Problem Not yet. I have worked on corporate systems and personal systems. No problem with firewalls or anti virus stuff. You can see how it works and what you need to do by looking at the site. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Monday, March 03, 2008 1:24 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Regional Settings Problem Do you have problems with firewalls and other gatekeepers? The couple of times I've tried to use Remote Assistance, it was blocked by the corporate network. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Murphy Sent: Monday, March 03, 2008 1:18 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Regional Settings Problem Rocky, We use Techinline.com for working on customer computers remotely. When we started the first 2 weeks or month was free so it wouldn't cost you anything to try it. I have worked with a customer in Bermuda with this service and it worked well. We liked the service enough to keep using it when we had to pay. It is great for those situations where some one calls to say something doesn't work but can't really describe what and how. We don't do a lot so by it by session. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Monday, March 03, 2008 12:59 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Regional Settings Problem That might work if he lets me in - a stranger in California - might be a little sketchy. He's a systems house in Brazil so he's pretty technically savvy. If I can ask him the right questions... How does LogMeIn work? How do I tell it what computer I want to log into? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Monday, March 03, 2008 12:32 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Regional Settings Problem Rocky, Would you be better off dialing in to his PC and checking the settings for yourself? It might save a lot of emailing back-n-forth. We use www.logmein.com and I believe that there is a free option available. Just a thought. Max ps. My PC at work "died" this morning. Delightful days ahead just to get back to where I was yesterday! -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Monday, March 03, 2008 8:02 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Regional Settings Problem No. I just got the email from him this morning. I hardly know what to ask him. But I'm going to summarize the accumulated list wisdom and email back with observations, questions, etc. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: segunda-feira, 3 de mar?o de 2008 11:41 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Regional Settings Problem Are your clients seeing the same thing in Brazil? There are multiple levels to regional settings, including the specifics of the decimal delimiter, digit delimiter, etc. Have you checked all those? Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Monday, March 03, 2008 11:29 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Regional Settings Problem You know everything works perfectly on my machine EXCEPT, when a field is selected it displays American. For example, a field contains 2.123. When regional settings (and keyboard) are set to Portuguese (Brazil) is displays 1,123. And when entering a number whether I press comma or period it displays a comma. However, if I click or tab into a field so that the field is selected (shown in reverse video) the comma becomes a decimal point. If I enter another number in there like 4,567 it displays as 4,567 on entry, and, of course, after I leave the field. But if I go back to edit it and the whole field is selected, it displays 4.567. Any clues here: TIA Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: segunda-feira, 3 de mar?o de 2008 11:12 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Regional Settings Problem No, the decimal format should work regardless of the regional settings. But if the keyboard settings don't agree with the regional settings, that could cause weird behavior. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos Sent: Monday, March 03, 2008 11:06 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Regional Settings Problem I'm guessing that if you have ANYTHING in that format parameter you are going to have a problem as it will override the Regional Default setting. It should be noted that I have never worked with any clients or users outside the geographical confines of Minnesota though. ;-) GK On 3/3/08, Rocky Smolin at Beach Access Software wrote: > The format for the field I tested is Fixed with decimal places set at 3. > There is no input mask. Is that what's causing the problem? Is there > a better format which would do what I need for the U.S. and not make a > conflict with the foreign users? > > Regards, > > 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.5.516 / Virus Database: 269.21.3/1307 - Release Date: 2/3/2008 15:59 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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.5.516 / Virus Database: 269.21.3/1307 - Release Date: 2/3/2008 15:59 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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.5.516 / Virus Database: 269.21.3/1307 - Release Date: 3/2/2008 3:59 PM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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.5.516 / Virus Database: 269.21.3/1307 - Release Date: 3/2/2008 3:59 PM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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.5.516 / Virus Database: 269.21.3/1307 - Release Date: 3/2/2008 3:59 PM From ab-mi at post3.tele.dk Mon Mar 3 17:10:47 2008 From: ab-mi at post3.tele.dk (Asger Blond) Date: Tue, 4 Mar 2008 00:10:47 +0100 Subject: [AccessD] Query by Form In-Reply-To: <20080303221101.UQGH22041.fep22.mail.dk@databaseadvisors.com> Message-ID: <000101c87d83$e5caf390$2101a8c0@AB> Is acCmdFilterByForm (value 207) what you are looking for? HTH Asger -----Oprindelig meddelelse----- Fra: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Arthur Fuller Sendt: 3. marts 2008 23:07 Til: Access Developers discussion and problem solving Emne: [AccessD] Query by Form I've been scouting a couple of lists that translate menu commands to constants for RunCommand, but I cannot seem to locate the "Filter By Form" equivalent. Can you find this constant? TIA, Arthur -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Darryl.Collins at coles.com.au Mon Mar 3 17:11:19 2008 From: Darryl.Collins at coles.com.au (Darryl Collins) Date: Tue, 4 Mar 2008 10:11:19 +1100 Subject: [AccessD] Regional Settings Problem Message-ID: <49DFE57FB126044B8A8B934E7AEA09ED09FD6FEE@WPEXCH05.colesmyer.ad.cmltd.net.au> I use LogMeIn a lot and it works well over a corporate network to access a remote PC, not sure how well it would work the other way - never need to try that. It uses a HTTPS path just like if you logged onto your bank or similar via the browser. I find it super useful for doing remote assistance work. Just log on, choose the PC you want to connect to, enter the password you have set and away you go. The free version is pretty good, although there are more features on the fully paid up versions. Basically you need to set up an account (email and password is what they use). There is also a 'remote assist' version that require no software installation on the target PC. worth a look - It is one of the better services I have used lately. regards Darryl. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Rocky Smolin at Beach Access Software Sent: Tuesday, 4 March 2008 8:24 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Regional Settings Problem Do you have problems with firewalls and other gatekeepers? The couple of times I've tried to use Remote Assistance, it was blocked by the corporate network. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Murphy Sent: Monday, March 03, 2008 1:18 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Regional Settings Problem Rocky, We use Techinline.com for working on customer computers remotely. When we started the first 2 weeks or month was free so it wouldn't cost you anything to try it. I have worked with a customer in Bermuda with this service and it worked well. We liked the service enough to keep using it when we had to pay. It is great for those situations where some one calls to say something doesn't work but can't really describe what and how. We don't do a lot so by it by session. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Monday, March 03, 2008 12:59 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Regional Settings Problem That might work if he lets me in - a stranger in California - might be a little sketchy. He's a systems house in Brazil so he's pretty technically savvy. If I can ask him the right questions... How does LogMeIn work? How do I tell it what computer I want to log into? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Monday, March 03, 2008 12:32 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Regional Settings Problem Rocky, Would you be better off dialing in to his PC and checking the settings for yourself? It might save a lot of emailing back-n-forth. We use www.logmein.com and I believe that there is a free option available. Just a thought. Max ps. My PC at work "died" this morning. Delightful days ahead just to get back to where I was yesterday! -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Monday, March 03, 2008 8:02 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Regional Settings Problem No. I just got the email from him this morning. I hardly know what to ask him. But I'm going to summarize the accumulated list wisdom and email back with observations, questions, etc. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: segunda-feira, 3 de mar?o de 2008 11:41 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Regional Settings Problem Are your clients seeing the same thing in Brazil? There are multiple levels to regional settings, including the specifics of the decimal delimiter, digit delimiter, etc. Have you checked all those? Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Monday, March 03, 2008 11:29 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Regional Settings Problem You know everything works perfectly on my machine EXCEPT, when a field is selected it displays American. For example, a field contains 2.123. When regional settings (and keyboard) are set to Portuguese (Brazil) is displays 1,123. And when entering a number whether I press comma or period it displays a comma. However, if I click or tab into a field so that the field is selected (shown in reverse video) the comma becomes a decimal point. If I enter another number in there like 4,567 it displays as 4,567 on entry, and, of course, after I leave the field. But if I go back to edit it and the whole field is selected, it displays 4.567. Any clues here: TIA Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: segunda-feira, 3 de mar?o de 2008 11:12 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Regional Settings Problem No, the decimal format should work regardless of the regional settings. But if the keyboard settings don't agree with the regional settings, that could cause weird behavior. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos Sent: Monday, March 03, 2008 11:06 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Regional Settings Problem I'm guessing that if you have ANYTHING in that format parameter you are going to have a problem as it will override the Regional Default setting. It should be noted that I have never worked with any clients or users outside the geographical confines of Minnesota though. ;-) GK On 3/3/08, Rocky Smolin at Beach Access Software wrote: > The format for the field I tested is Fixed with decimal places set at 3. > There is no input mask. Is that what's causing the problem? Is there > a better format which would do what I need for the U.S. and not make a > conflict with the foreign users? > > Regards, > > 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.5.516 / Virus Database: 269.21.3/1307 - Release Date: 2/3/2008 15:59 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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.5.516 / Virus Database: 269.21.3/1307 - Release Date: 2/3/2008 15:59 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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.5.516 / Virus Database: 269.21.3/1307 - Release Date: 3/2/2008 3:59 PM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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.5.516 / Virus Database: 269.21.3/1307 - Release Date: 3/2/2008 3:59 PM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This email and any attachments may contain privileged and confidential information and are intended for the named addressee only. If you have received this e-mail in error, please notify the sender and delete this e-mail immediately. Any confidentiality, privilege or copyright is not waived or lost because this e-mail has been sent to you in error. It is your responsibility to check this e-mail and any attachments for viruses. No warranty is made that this material is free from computer virus or any other defect or error. Any loss/damage incurred by using this material is not the sender's responsibility. The sender's entire liability will be limited to resupplying the material. From fuller.artful at gmail.com Mon Mar 3 21:47:26 2008 From: fuller.artful at gmail.com (Arthur Fuller) Date: Mon, 3 Mar 2008 22:47:26 -0500 Subject: [AccessD] Query by Form In-Reply-To: <000101c87d83$e5caf390$2101a8c0@AB> References: <20080303221101.UQGH22041.fep22.mail.dk@databaseadvisors.com> <000101c87d83$e5caf390$2101a8c0@AB> Message-ID: <29f585dd0803031947u2ea26511jab198103db1e088e@mail.gmail.com> Thanks. I think that will do it. On 3/3/08, Asger Blond wrote: > > Is acCmdFilterByForm (value 207) what you are looking for? > > From rockysmolin at bchacc.com Mon Mar 3 22:08:44 2008 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Mon, 3 Mar 2008 20:08:44 -0800 Subject: [AccessD] Regional Settings Problem In-Reply-To: <49DFE57FB126044B8A8B934E7AEA09ED09FD6FEE@WPEXCH05.colesmyer.ad.cmltd.net.au> References: <49DFE57FB126044B8A8B934E7AEA09ED09FD6FEE@WPEXCH05.colesmyer.ad.cmltd.net.au> Message-ID: <00cd01c87dad$70634fb0$0301a8c0@HAL9005> So the account and password have to be on the target machine as well? Is that how it's identified? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darryl Collins Sent: Monday, March 03, 2008 3:11 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Regional Settings Problem I use LogMeIn a lot and it works well over a corporate network to access a remote PC, not sure how well it would work the other way - never need to try that. It uses a HTTPS path just like if you logged onto your bank or similar via the browser. I find it super useful for doing remote assistance work. Just log on, choose the PC you want to connect to, enter the password you have set and away you go. The free version is pretty good, although there are more features on the fully paid up versions. Basically you need to set up an account (email and password is what they use). There is also a 'remote assist' version that require no software installation on the target PC. worth a look - It is one of the better services I have used lately. regards Darryl. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Rocky Smolin at Beach Access Software Sent: Tuesday, 4 March 2008 8:24 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Regional Settings Problem Do you have problems with firewalls and other gatekeepers? The couple of times I've tried to use Remote Assistance, it was blocked by the corporate network. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Murphy Sent: Monday, March 03, 2008 1:18 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Regional Settings Problem Rocky, We use Techinline.com for working on customer computers remotely. When we started the first 2 weeks or month was free so it wouldn't cost you anything to try it. I have worked with a customer in Bermuda with this service and it worked well. We liked the service enough to keep using it when we had to pay. It is great for those situations where some one calls to say something doesn't work but can't really describe what and how. We don't do a lot so by it by session. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Monday, March 03, 2008 12:59 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Regional Settings Problem That might work if he lets me in - a stranger in California - might be a little sketchy. He's a systems house in Brazil so he's pretty technically savvy. If I can ask him the right questions... How does LogMeIn work? How do I tell it what computer I want to log into? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Monday, March 03, 2008 12:32 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Regional Settings Problem Rocky, Would you be better off dialing in to his PC and checking the settings for yourself? It might save a lot of emailing back-n-forth. We use www.logmein.com and I believe that there is a free option available. Just a thought. Max ps. My PC at work "died" this morning. Delightful days ahead just to get back to where I was yesterday! -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Monday, March 03, 2008 8:02 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Regional Settings Problem No. I just got the email from him this morning. I hardly know what to ask him. But I'm going to summarize the accumulated list wisdom and email back with observations, questions, etc. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: segunda-feira, 3 de mar?o de 2008 11:41 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Regional Settings Problem Are your clients seeing the same thing in Brazil? There are multiple levels to regional settings, including the specifics of the decimal delimiter, digit delimiter, etc. Have you checked all those? Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Monday, March 03, 2008 11:29 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Regional Settings Problem You know everything works perfectly on my machine EXCEPT, when a field is selected it displays American. For example, a field contains 2.123. When regional settings (and keyboard) are set to Portuguese (Brazil) is displays 1,123. And when entering a number whether I press comma or period it displays a comma. However, if I click or tab into a field so that the field is selected (shown in reverse video) the comma becomes a decimal point. If I enter another number in there like 4,567 it displays as 4,567 on entry, and, of course, after I leave the field. But if I go back to edit it and the whole field is selected, it displays 4.567. Any clues here: TIA Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: segunda-feira, 3 de mar?o de 2008 11:12 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Regional Settings Problem No, the decimal format should work regardless of the regional settings. But if the keyboard settings don't agree with the regional settings, that could cause weird behavior. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos Sent: Monday, March 03, 2008 11:06 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Regional Settings Problem I'm guessing that if you have ANYTHING in that format parameter you are going to have a problem as it will override the Regional Default setting. It should be noted that I have never worked with any clients or users outside the geographical confines of Minnesota though. ;-) GK On 3/3/08, Rocky Smolin at Beach Access Software wrote: > The format for the field I tested is Fixed with decimal places set at 3. > There is no input mask. Is that what's causing the problem? Is there > a better format which would do what I need for the U.S. and not make a > conflict with the foreign users? > > Regards, > > 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.5.516 / Virus Database: 269.21.3/1307 - Release Date: 2/3/2008 15:59 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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.5.516 / Virus Database: 269.21.3/1307 - Release Date: 2/3/2008 15:59 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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.5.516 / Virus Database: 269.21.3/1307 - Release Date: 3/2/2008 3:59 PM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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.5.516 / Virus Database: 269.21.3/1307 - Release Date: 3/2/2008 3:59 PM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This email and any attachments may contain privileged and confidential information and are intended for the named addressee only. If you have received this e-mail in error, please notify the sender and delete this e-mail immediately. Any confidentiality, privilege or copyright is not waived or lost because this e-mail has been sent to you in error. It is your responsibility to check this e-mail and any attachments for viruses. No warranty is made that this material is free from computer virus or any other defect or error. Any loss/damage incurred by using this material is not the sender's responsibility. The sender's entire liability will be limited to resupplying the material. -- 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.5.516 / Virus Database: 269.21.3/1307 - Release Date: 3/2/2008 3:59 PM From EdTesiny at oasas.state.ny.us Tue Mar 4 09:41:18 2008 From: EdTesiny at oasas.state.ny.us (Tesiny, Ed) Date: Tue, 4 Mar 2008 10:41:18 -0500 Subject: [AccessD] Query by Form In-Reply-To: <29f585dd0803031407g20c20a59j953b286deadd69ae@mail.gmail.com> References: <29f585dd0803031407g20c20a59j953b286deadd69ae@mail.gmail.com> Message-ID: Here's a good link Arthur http://home.clara.net/tkwickenden/menus/records.htm Ed Tesiny EdTesiny at oasas.state.ny.us > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Arthur Fuller > Sent: Monday, March 03, 2008 5:07 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] Query by Form > > I've been scouting a couple of lists that translate menu commands to > constants for RunCommand, but I cannot seem to locate the > "Filter By Form" > equivalent. Can you find this constant? > > TIA, > Arthur > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From fuller.artful at gmail.com Tue Mar 4 10:28:36 2008 From: fuller.artful at gmail.com (Arthur Fuller) Date: Tue, 4 Mar 2008 11:28:36 -0500 Subject: [AccessD] Query by Form In-Reply-To: References: <29f585dd0803031407g20c20a59j953b286deadd69ae@mail.gmail.com> Message-ID: <29f585dd0803040828o76221be1w9b41dcc6013302d4@mail.gmail.com> Thanks, Ed. I bookmarked this one for sure! A. On 3/4/08, Tesiny, Ed wrote: > > > Here's a good link Arthur > > http://home.clara.net/tkwickenden/menus/records.htm > > Ed Tesiny > EdTesiny at oasas.state.ny.us > > From dw-murphy at cox.net Tue Mar 4 14:24:35 2008 From: dw-murphy at cox.net (Doug Murphy) Date: Tue, 4 Mar 2008 12:24:35 -0800 Subject: [AccessD] Access 2003 graph In-Reply-To: <47C65CDF.7040804@mvps.org> Message-ID: <004701c87e35$c3881120$0200a8c0@murphy3234aaf1> Folks, I opened an application I worked on about a year ago today to test some functionality and ran one of the reports, which has a graph in it. Before the graph would open the installer window came up and wanted to install "Components for MS Graph features." Has anyone experienced this behavior? It happens every time I run the report. I put the install disk in and let it install the first time, but Access wants to install the graph features every time I open the report. Not Good! I am using Office 2003, SP2. The only thing that might have impacted Office was that I removed Visual Studio 2005 and installed Visual Studio 2008. Not sure why this might cause a problem, but it is the only major MS product change on this computer. All other Access versions are run in Virtual machines. Thanks in advance for any suggestions. Doug From dw-murphy at cox.net Tue Mar 4 14:47:02 2008 From: dw-murphy at cox.net (Doug Murphy) Date: Tue, 4 Mar 2008 12:47:02 -0800 Subject: [AccessD] Access 2003 graph In-Reply-To: <004701c87e35$c3881120$0200a8c0@murphy3234aaf1> Message-ID: <000301c87e38$e678bd80$0200a8c0@murphy3234aaf1> Fixed it. Did an office repair and the problem seems to be fixed. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Murphy Sent: Tuesday, March 04, 2008 12:25 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Access 2003 graph Folks, I opened an application I worked on about a year ago today to test some functionality and ran one of the reports, which has a graph in it. Before the graph would open the installer window came up and wanted to install "Components for MS Graph features." Has anyone experienced this behavior? It happens every time I run the report. I put the install disk in and let it install the first time, but Access wants to install the graph features every time I open the report. Not Good! I am using Office 2003, SP2. The only thing that might have impacted Office was that I removed Visual Studio 2005 and installed Visual Studio 2008. Not sure why this might cause a problem, but it is the only major MS product change on this computer. All other Access versions are run in Virtual machines. Thanks in advance for any suggestions. Doug -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Darryl.Collins at coles.com.au Tue Mar 4 18:22:48 2008 From: Darryl.Collins at coles.com.au (Darryl Collins) Date: Wed, 5 Mar 2008 11:22:48 +1100 Subject: [AccessD] Error 3048 Cannot open any more databases Message-ID: <49DFE57FB126044B8A8B934E7AEA09ED0B27022C@WPEXCH05.colesmyer.ad.cmltd.net.au> Hey folks, Sorry to bug you with this, Having a lot of, ummm, 'fun' with this database I am building. Stand alone, it works great, with 5 or so users it works great, over a WAN with multi users it gets very wobbly and corrupts easily. Decided that it has to be split into FE and BE, which I have done manually and linked up the tables. When the DB opens it populates a listbox with choices for the user as before fine. However when the users selects an option which opens the data-entry form (and associated subforms) I get this lovely error "Error 3048 Cannot open any more databases" on this line sSQL = "SELECT * FROM tbl_FYP_APLID WHERE (((FYPID)=" & lFYPID & ") AND ((tbl_FYP_APLID.APLID)=" & lAPLID & "));" [Forms]![frm_FYP_APLID].RecordSource = sSQL Now I know clearly that I must have too "many databases open", but exactly what the hell does that mean? how did it happen and how can I either 1: increase the amount of DB's I can have open, or close down some of the offending databases? The only clue I have found online is if you don't SET your delcared CurrentDB to NOTHING when you are done with it, But the code in this workbook doesn't work like that at all and the modules that do use SET current DB, does set them to nothing when finished. Most confusing. Can anyone shed some light on this. Sorry about all the questions - working under lot of pressure and learning on the fly. Educational for sure, but I am getting through more and more scotch in the evening!! :) Darryl. This email and any attachments may contain privileged and confidential information and are intended for the named addressee only. If you have received this e-mail in error, please notify the sender and delete this e-mail immediately. Any confidentiality, privilege or copyright is not waived or lost because this e-mail has been sent to you in error. It is your responsibility to check this e-mail and any attachments for viruses. No warranty is made that this material is free from computer virus or any other defect or error. Any loss/damage incurred by using this material is not the sender's responsibility. The sender's entire liability will be limited to resupplying the material. From fhtapia at gmail.com Tue Mar 4 18:31:47 2008 From: fhtapia at gmail.com (Francisco Tapia) Date: Tue, 4 Mar 2008 16:31:47 -0800 Subject: [AccessD] Importing an XML file Message-ID: I have an XML file that looks like this: TEST 5551231212 300122598 SvcTech1 Yes Yes Yes Test Test21 5551231212 300120902 SvcTech2 Yes Yes No Test Test3 5551231212 300121480 SvcTech3 Yes Yes Yes No Comment I'd like to import this XML to a table in Access table that reads: Dealer_name Phone CallNo ServiceTech_Name Question1 Question2 Question3 Question4 I tried the default import but for some reason it only imports the first set? -- -Francisco http://sqlthis.blogspot.com | Tsql and More... From cfoust at infostatsystems.com Tue Mar 4 19:08:05 2008 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 4 Mar 2008 17:08:05 -0800 Subject: [AccessD] Error 3048 Cannot open any more databases In-Reply-To: <49DFE57FB126044B8A8B934E7AEA09ED0B27022C@WPEXCH05.colesmyer.ad.cmltd.net.au> References: <49DFE57FB126044B8A8B934E7AEA09ED0B27022C@WPEXCH05.colesmyer.ad.cmltd.net.au> Message-ID: Darryl, This is a highly misleading message, because it really means you have too many connections open. If you are doing things like populating combo boxes with select statements, each one of them is opening a connection. As I recall, lookups in your tables could do that as well. Access was NOT meant for WAN use, and to make it even marginally reliable in that context, you have to rewrite the UI to eliminate any unnecessary connections to the back end and use a JIT approach to populating lists, forms, subforms, etc. There have been previous discussions on this in the list, so you might take a stroll through the archives and see what you find. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darryl Collins Sent: Tuesday, March 04, 2008 4:23 PM To: Access Developers discussion and problem solving Subject: [AccessD] Error 3048 Cannot open any more databases Hey folks, Sorry to bug you with this, Having a lot of, ummm, 'fun' with this database I am building. Stand alone, it works great, with 5 or so users it works great, over a WAN with multi users it gets very wobbly and corrupts easily. Decided that it has to be split into FE and BE, which I have done manually and linked up the tables. When the DB opens it populates a listbox with choices for the user as before fine. However when the users selects an option which opens the data-entry form (and associated subforms) I get this lovely error "Error 3048 Cannot open any more databases" on this line sSQL = "SELECT * FROM tbl_FYP_APLID WHERE (((FYPID)=" & lFYPID & ") AND ((tbl_FYP_APLID.APLID)=" & lAPLID & "));" [Forms]![frm_FYP_APLID].RecordSource = sSQL Now I know clearly that I must have too "many databases open", but exactly what the hell does that mean? how did it happen and how can I either 1: increase the amount of DB's I can have open, or close down some of the offending databases? The only clue I have found online is if you don't SET your delcared CurrentDB to NOTHING when you are done with it, But the code in this workbook doesn't work like that at all and the modules that do use SET current DB, does set them to nothing when finished. Most confusing. Can anyone shed some light on this. Sorry about all the questions - working under lot of pressure and learning on the fly. Educational for sure, but I am getting through more and more scotch in the evening!! :) Darryl. From jwcolby at colbyconsulting.com Tue Mar 4 21:19:52 2008 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 4 Mar 2008 22:19:52 -0500 Subject: [AccessD] Error 3048 Cannot open any more databases In-Reply-To: References: <49DFE57FB126044B8A8B934E7AEA09ED0B27022C@WPEXCH05.colesmyer.ad.cmltd.net.au> Message-ID: <00df01c87e6f$c78e4ac0$0201a8c0@M90> Yup! If you are using Access XP or above, look at binding all combos and lists to disconnected ADO recordsets. That will help immensely all by itself. After that you will probably need to dive into the dark arts of ADO disconnected recordsets for the form as well. As Charlotte said, WANS are considered a no-no for bound forms in Access. 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: Tuesday, March 04, 2008 8:08 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Error 3048 Cannot open any more databases Darryl, This is a highly misleading message, because it really means you have too many connections open. If you are doing things like populating combo boxes with select statements, each one of them is opening a connection. As I recall, lookups in your tables could do that as well. Access was NOT meant for WAN use, and to make it even marginally reliable in that context, you have to rewrite the UI to eliminate any unnecessary connections to the back end and use a JIT approach to populating lists, forms, subforms, etc. There have been previous discussions on this in the list, so you might take a stroll through the archives and see what you find. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darryl Collins Sent: Tuesday, March 04, 2008 4:23 PM To: Access Developers discussion and problem solving Subject: [AccessD] Error 3048 Cannot open any more databases Hey folks, Sorry to bug you with this, Having a lot of, ummm, 'fun' with this database I am building. Stand alone, it works great, with 5 or so users it works great, over a WAN with multi users it gets very wobbly and corrupts easily. Decided that it has to be split into FE and BE, which I have done manually and linked up the tables. When the DB opens it populates a listbox with choices for the user as before fine. However when the users selects an option which opens the data-entry form (and associated subforms) I get this lovely error "Error 3048 Cannot open any more databases" on this line sSQL = "SELECT * FROM tbl_FYP_APLID WHERE (((FYPID)=" & lFYPID & ") AND ((tbl_FYP_APLID.APLID)=" & lAPLID & "));" [Forms]![frm_FYP_APLID].RecordSource = sSQL Now I know clearly that I must have too "many databases open", but exactly what the hell does that mean? how did it happen and how can I either 1: increase the amount of DB's I can have open, or close down some of the offending databases? The only clue I have found online is if you don't SET your delcared CurrentDB to NOTHING when you are done with it, But the code in this workbook doesn't work like that at all and the modules that do use SET current DB, does set them to nothing when finished. Most confusing. Can anyone shed some light on this. Sorry about all the questions - working under lot of pressure and learning on the fly. Educational for sure, but I am getting through more and more scotch in the evening!! :) Darryl. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Darryl.Collins at coles.com.au Tue Mar 4 21:31:45 2008 From: Darryl.Collins at coles.com.au (Darryl Collins) Date: Wed, 5 Mar 2008 14:31:45 +1100 Subject: [AccessD] Error 3048 Cannot open any more databases Message-ID: <49DFE57FB126044B8A8B934E7AEA09ED0B27022D@WPEXCH05.colesmyer.ad.cmltd.net.au> aaaah, just to make things exciting this place currently uses Office 2000, so I am not sure if your suggestion is meaningful or not ("using Access XP or above" would suggest it is not going to help :-/). Today the network has been fast and the tool has worked without error (so far), yesterday network was sluggy and it got corrupt a couple of times. I think the sooner I get the back end ported to SQL Server the better. Thanks once again for the responses. always appreciated. regards Darryl -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of jwcolby Sent: Wednesday, 5 March 2008 2:20 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Error 3048 Cannot open any more databases Yup! If you are using Access XP or above, look at binding all combos and lists to disconnected ADO recordsets. That will help immensely all by itself. After that you will probably need to dive into the dark arts of ADO disconnected recordsets for the form as well. As Charlotte said, WANS are considered a no-no for bound forms in Access. 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: Tuesday, March 04, 2008 8:08 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Error 3048 Cannot open any more databases Darryl, This is a highly misleading message, because it really means you have too many connections open. If you are doing things like populating combo boxes with select statements, each one of them is opening a connection. As I recall, lookups in your tables could do that as well. Access was NOT meant for WAN use, and to make it even marginally reliable in that context, you have to rewrite the UI to eliminate any unnecessary connections to the back end and use a JIT approach to populating lists, forms, subforms, etc. There have been previous discussions on this in the list, so you might take a stroll through the archives and see what you find. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darryl Collins Sent: Tuesday, March 04, 2008 4:23 PM To: Access Developers discussion and problem solving Subject: [AccessD] Error 3048 Cannot open any more databases Hey folks, Sorry to bug you with this, Having a lot of, ummm, 'fun' with this database I am building. Stand alone, it works great, with 5 or so users it works great, over a WAN with multi users it gets very wobbly and corrupts easily. Decided that it has to be split into FE and BE, which I have done manually and linked up the tables. When the DB opens it populates a listbox with choices for the user as before fine. However when the users selects an option which opens the data-entry form (and associated subforms) I get this lovely error "Error 3048 Cannot open any more databases" on this line sSQL = "SELECT * FROM tbl_FYP_APLID WHERE (((FYPID)=" & lFYPID & ") AND ((tbl_FYP_APLID.APLID)=" & lAPLID & "));" [Forms]![frm_FYP_APLID].RecordSource = sSQL Now I know clearly that I must have too "many databases open", but exactly what the hell does that mean? how did it happen and how can I either 1: increase the amount of DB's I can have open, or close down some of the offending databases? The only clue I have found online is if you don't SET your delcared CurrentDB to NOTHING when you are done with it, But the code in this workbook doesn't work like that at all and the modules that do use SET current DB, does set them to nothing when finished. Most confusing. Can anyone shed some light on this. Sorry about all the questions - working under lot of pressure and learning on the fly. Educational for sure, but I am getting through more and more scotch in the evening!! :) Darryl. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This email and any attachments may contain privileged and confidential information and are intended for the named addressee only. If you have received this e-mail in error, please notify the sender and delete this e-mail immediately. Any confidentiality, privilege or copyright is not waived or lost because this e-mail has been sent to you in error. It is your responsibility to check this e-mail and any attachments for viruses. No warranty is made that this material is free from computer virus or any other defect or error. Any loss/damage incurred by using this material is not the sender's responsibility. The sender's entire liability will be limited to resupplying the material. From jwcolby at colbyconsulting.com Tue Mar 4 21:51:09 2008 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 4 Mar 2008 22:51:09 -0500 Subject: [AccessD] Error 3048 Cannot open any more databases In-Reply-To: <49DFE57FB126044B8A8B934E7AEA09ED0B27022D@WPEXCH05.colesmyer.ad.cmltd.net.au> References: <49DFE57FB126044B8A8B934E7AEA09ED0B27022D@WPEXCH05.colesmyer.ad.cmltd.net.au> Message-ID: <00e001c87e74$26583440$0201a8c0@M90> Access 2000 cannot bind to updateable ADO recordsets. 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 Darryl Collins Sent: Tuesday, March 04, 2008 10:32 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Error 3048 Cannot open any more databases aaaah, just to make things exciting this place currently uses Office 2000, so I am not sure if your suggestion is meaningful or not ("using Access XP or above" would suggest it is not going to help :-/). Today the network has been fast and the tool has worked without error (so far), yesterday network was sluggy and it got corrupt a couple of times. I think the sooner I get the back end ported to SQL Server the better. Thanks once again for the responses. always appreciated. regards Darryl -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of jwcolby Sent: Wednesday, 5 March 2008 2:20 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Error 3048 Cannot open any more databases Yup! If you are using Access XP or above, look at binding all combos and lists to disconnected ADO recordsets. That will help immensely all by itself. After that you will probably need to dive into the dark arts of ADO disconnected recordsets for the form as well. As Charlotte said, WANS are considered a no-no for bound forms in Access. 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: Tuesday, March 04, 2008 8:08 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Error 3048 Cannot open any more databases Darryl, This is a highly misleading message, because it really means you have too many connections open. If you are doing things like populating combo boxes with select statements, each one of them is opening a connection. As I recall, lookups in your tables could do that as well. Access was NOT meant for WAN use, and to make it even marginally reliable in that context, you have to rewrite the UI to eliminate any unnecessary connections to the back end and use a JIT approach to populating lists, forms, subforms, etc. There have been previous discussions on this in the list, so you might take a stroll through the archives and see what you find. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darryl Collins Sent: Tuesday, March 04, 2008 4:23 PM To: Access Developers discussion and problem solving Subject: [AccessD] Error 3048 Cannot open any more databases Hey folks, Sorry to bug you with this, Having a lot of, ummm, 'fun' with this database I am building. Stand alone, it works great, with 5 or so users it works great, over a WAN with multi users it gets very wobbly and corrupts easily. Decided that it has to be split into FE and BE, which I have done manually and linked up the tables. When the DB opens it populates a listbox with choices for the user as before fine. However when the users selects an option which opens the data-entry form (and associated subforms) I get this lovely error "Error 3048 Cannot open any more databases" on this line sSQL = "SELECT * FROM tbl_FYP_APLID WHERE (((FYPID)=" & lFYPID & ") AND ((tbl_FYP_APLID.APLID)=" & lAPLID & "));" [Forms]![frm_FYP_APLID].RecordSource = sSQL Now I know clearly that I must have too "many databases open", but exactly what the hell does that mean? how did it happen and how can I either 1: increase the amount of DB's I can have open, or close down some of the offending databases? The only clue I have found online is if you don't SET your delcared CurrentDB to NOTHING when you are done with it, But the code in this workbook doesn't work like that at all and the modules that do use SET current DB, does set them to nothing when finished. Most confusing. Can anyone shed some light on this. Sorry about all the questions - working under lot of pressure and learning on the fly. Educational for sure, but I am getting through more and more scotch in the evening!! :) Darryl. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This email and any attachments may contain privileged and confidential information and are intended for the named addressee only. If you have received this e-mail in error, please notify the sender and delete this e-mail immediately. Any confidentiality, privilege or copyright is not waived or lost because this e-mail has been sent to you in error. It is your responsibility to check this e-mail and any attachments for viruses. No warranty is made that this material is free from computer virus or any other defect or error. Any loss/damage incurred by using this material is not the sender's responsibility. The sender's entire liability will be limited to resupplying the material. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From marklbreen at gmail.com Wed Mar 5 03:25:38 2008 From: marklbreen at gmail.com (Mark Breen) Date: Wed, 5 Mar 2008 09:25:38 +0000 Subject: [AccessD] Cnts in sets In-Reply-To: <002201c87bbe$bdc3af20$0201a8c0@M90> References: <005601c87a49$f0c8ec80$0201a8c0@M90> <004f01c87ba0$38a8a7a0$0964a27a@personald6374f> <001601c87ba5$3e18c490$0201a8c0@M90> <005101c87bba$4096b050$887da27a@personald6374f> <002201c87bbe$bdc3af20$0201a8c0@M90> Message-ID: Hello John, Just curious whether that worked for you, 65 Million records is a lot and I have recently learned how tedious it is to wait for Order by etc. Mark On 01/03/2008, jwcolby wrote: > > Thanks AD, I will give it a try. > > > > 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 A.D.Tejpal > > Sent: Saturday, March 01, 2008 11:35 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Cnts in sets > > > Apparently, you wish to display the missing PkID's where the hole size > (consecutive missing records) is large, say >= 1000. > > Let table T_B be the table having missing PkID's. Set up table T_A > with > single field PkID and populate it with sequential numbers covering the > whole > range, without any holes. > > Sample query Q_3, as given below, should get you the desired results. > It > uses preliminary queries Q_1 & Q_2, along with function Fn_Mark() given > below. > > Note - This solution is expected to be much faster than those using > subqueries or recordsets. As stated earlier, this is based upon Access > 2003 > desktop. > > A.D.Tejpal > ------------ > > Q_3 (Final Query) > Displays missing PkID's > (Where hole size >= 1000 consecutive missing records) > =================================== > SELECT Q_2.*, T_A.PkID > FROM Q_2, T_A > WHERE (((T_A.PkID)>=[HoleStart] And (T_A.PkID)<=[HoleEnd])) ORDER BY > Q_2.HoleStart, T_A.PkID; =================================== > > Q_2 (Prelim Query - Stage 2) > =================================== > SELECT Q_1.Mark, 1+Min([PkID]) AS HoleStart, Max(Q_1.PkID) AS HoleEnd, > Max([PkID])-Min([PkID]) AS HoleSpan FROM Q_1 GROUP BY Q_1.Mark HAVING > (((Max([PkID])-Min([PkID]))>=1000)); > =================================== > > Q_1 (Prelim Query - Stage 1) > =================================== > SELECT T_A.PkID, Fn_Mark([T_B].[PkID]) AS Mark FROM T_A LEFT JOIN T_B ON > T_A.PkID = T_B.PkID; =================================== > > ' Fn_Mark() > =================================== > ' Global Variable > Public Mk As Variant > '---------------------------------------------------- > > Function Fn_Mark(PkVal As Variant) As Variant > If Len(PkVal) > 0 Then > Mk = PkVal > End If > Debug.Print Mk > > Fn_Mark = Mk > End Function > =================================== > > ----- Original Message ----- > From: jwcolby > To: 'Access Developers discussion and problem solving' > Sent: Saturday, March 01, 2008 19:35 > Subject: Re: [AccessD] Cnts in sets > > > Before I launch into that you should understand that missing values are > OK. > Of the original 64 million records, roughly 13 million are missing, thus > there are missing PKs throughout the data, but they are just "one here > and > there", in fact on average one every 8 records. It is only "large > holes" > (I > understand that is a rather nebulous term) that I care about. > > 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 A.D.Tejpal > Sent: Saturday, March 01, 2008 8:26 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Cnts in sets > > John, > > You might like to have a look at my sample db named > TrackMissingAndDuplicates and see whether it could help. It is available > at > Rogers Access Library (other developers library). Link - > http://www.rogersaccesslibrary.com/OtherLibraries.asp#Tejpal,A.D. > > Gist of holes (missing sequential values) is displayed, giving the > start > and end values of each hole. In the situation explained by you, before > testing for holes, the source data can first be filtered so as to > eliminate > Null values. > > Note - This sample is for Access 2000 / 2003 desktop and the > execution > speed has not been tested in the context of huge tables of the size > mentioned by you. However, if the underlying principle is found > applicable, > suitable adaptation could be considered, say by testing smaller chunks > at > a > time in such a manner that there are always some common records between > adjacent chunks (i.e the last record of a given sub-table is also the > first > record of next sub-table). > > Best wishes, > A.D.Tejpal > ------------ > > <> > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From max.wanadoo at gmail.com Wed Mar 5 03:32:52 2008 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Wed, 5 Mar 2008 09:32:52 -0000 Subject: [AccessD] Error 3048 Cannot open any more databases In-Reply-To: <00df01c87e6f$c78e4ac0$0201a8c0@M90> References: <49DFE57FB126044B8A8B934E7AEA09ED0B27022C@WPEXCH05.colesmyer.ad.cmltd.net.au> <00df01c87e6f$c78e4ac0$0201a8c0@M90> Message-ID: <005101c87ea3$e398f380$8119fea9@LTVM> John, What do you mean by "disconnected" recordsets? Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, March 05, 2008 3:20 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Error 3048 Cannot open any more databases Yup! If you are using Access XP or above, look at binding all combos and lists to disconnected ADO recordsets. That will help immensely all by itself. After that you will probably need to dive into the dark arts of ADO disconnected recordsets for the form as well. As Charlotte said, WANS are considered a no-no for bound forms in Access. 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: Tuesday, March 04, 2008 8:08 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Error 3048 Cannot open any more databases Darryl, This is a highly misleading message, because it really means you have too many connections open. If you are doing things like populating combo boxes with select statements, each one of them is opening a connection. As I recall, lookups in your tables could do that as well. Access was NOT meant for WAN use, and to make it even marginally reliable in that context, you have to rewrite the UI to eliminate any unnecessary connections to the back end and use a JIT approach to populating lists, forms, subforms, etc. There have been previous discussions on this in the list, so you might take a stroll through the archives and see what you find. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darryl Collins Sent: Tuesday, March 04, 2008 4:23 PM To: Access Developers discussion and problem solving Subject: [AccessD] Error 3048 Cannot open any more databases Hey folks, Sorry to bug you with this, Having a lot of, ummm, 'fun' with this database I am building. Stand alone, it works great, with 5 or so users it works great, over a WAN with multi users it gets very wobbly and corrupts easily. Decided that it has to be split into FE and BE, which I have done manually and linked up the tables. When the DB opens it populates a listbox with choices for the user as before fine. However when the users selects an option which opens the data-entry form (and associated subforms) I get this lovely error "Error 3048 Cannot open any more databases" on this line sSQL = "SELECT * FROM tbl_FYP_APLID WHERE (((FYPID)=" & lFYPID & ") AND ((tbl_FYP_APLID.APLID)=" & lAPLID & "));" [Forms]![frm_FYP_APLID].RecordSource = sSQL Now I know clearly that I must have too "many databases open", but exactly what the hell does that mean? how did it happen and how can I either 1: increase the amount of DB's I can have open, or close down some of the offending databases? The only clue I have found online is if you don't SET your delcared CurrentDB to NOTHING when you are done with it, But the code in this workbook doesn't work like that at all and the modules that do use SET current DB, does set them to nothing when finished. Most confusing. Can anyone shed some light on this. Sorry about all the questions - working under lot of pressure and learning on the fly. Educational for sure, but I am getting through more and more scotch in the evening!! :) Darryl. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Wed Mar 5 06:15:10 2008 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 5 Mar 2008 07:15:10 -0500 Subject: [AccessD] Error 3048 Cannot open any more databases In-Reply-To: <005101c87ea3$e398f380$8119fea9@LTVM> References: <49DFE57FB126044B8A8B934E7AEA09ED0B27022C@WPEXCH05.colesmyer.ad.cmltd.net.au><00df01c87e6f$c78e4ac0$0201a8c0@M90> <005101c87ea3$e398f380$8119fea9@LTVM> Message-ID: <00e701c87eba$8fa08e20$0201a8c0@M90> Max, When you run a normal query in a combo or list or form etc. that is handled by JET as a normal DAO recordset. There is a fixed number of such recordsets available to your application, the number being up somewhere around 2000, which sounds like a lot but... At any rate, in later versions of Access, access allows you to manually create ADO recordsets and bind things like combos, lists and forms to those recordsets. ADO can disconnect once it has pulled the data, whereas DAO (to my knowledge) does not have that capability. IOW ADO can actually close its connection to the database after pulling its data. For combos this is not an issue, but for forms it creates issues where you have to make sure that the data that you pulled from has not changed if you are going to write your own changes back. 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 Max Wanadoo Sent: Wednesday, March 05, 2008 4:33 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Error 3048 Cannot open any more databases John, What do you mean by "disconnected" recordsets? Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, March 05, 2008 3:20 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Error 3048 Cannot open any more databases Yup! If you are using Access XP or above, look at binding all combos and lists to disconnected ADO recordsets. That will help immensely all by itself. After that you will probably need to dive into the dark arts of ADO disconnected recordsets for the form as well. As Charlotte said, WANS are considered a no-no for bound forms in Access. 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: Tuesday, March 04, 2008 8:08 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Error 3048 Cannot open any more databases Darryl, This is a highly misleading message, because it really means you have too many connections open. If you are doing things like populating combo boxes with select statements, each one of them is opening a connection. As I recall, lookups in your tables could do that as well. Access was NOT meant for WAN use, and to make it even marginally reliable in that context, you have to rewrite the UI to eliminate any unnecessary connections to the back end and use a JIT approach to populating lists, forms, subforms, etc. There have been previous discussions on this in the list, so you might take a stroll through the archives and see what you find. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darryl Collins Sent: Tuesday, March 04, 2008 4:23 PM To: Access Developers discussion and problem solving Subject: [AccessD] Error 3048 Cannot open any more databases Hey folks, Sorry to bug you with this, Having a lot of, ummm, 'fun' with this database I am building. Stand alone, it works great, with 5 or so users it works great, over a WAN with multi users it gets very wobbly and corrupts easily. Decided that it has to be split into FE and BE, which I have done manually and linked up the tables. When the DB opens it populates a listbox with choices for the user as before fine. However when the users selects an option which opens the data-entry form (and associated subforms) I get this lovely error "Error 3048 Cannot open any more databases" on this line sSQL = "SELECT * FROM tbl_FYP_APLID WHERE (((FYPID)=" & lFYPID & ") AND ((tbl_FYP_APLID.APLID)=" & lAPLID & "));" [Forms]![frm_FYP_APLID].RecordSource = sSQL Now I know clearly that I must have too "many databases open", but exactly what the hell does that mean? how did it happen and how can I either 1: increase the amount of DB's I can have open, or close down some of the offending databases? The only clue I have found online is if you don't SET your delcared CurrentDB to NOTHING when you are done with it, But the code in this workbook doesn't work like that at all and the modules that do use SET current DB, does set them to nothing when finished. Most confusing. Can anyone shed some light on this. Sorry about all the questions - working under lot of pressure and learning on the fly. Educational for sure, but I am getting through more and more scotch in the evening!! :) Darryl. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Wed Mar 5 07:00:26 2008 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Wed, 5 Mar 2008 13:00:26 -0000 Subject: [AccessD] Error 3048 Cannot open any more databases In-Reply-To: <00e701c87eba$8fa08e20$0201a8c0@M90> References: <49DFE57FB126044B8A8B934E7AEA09ED0B27022C@WPEXCH05.colesmyer.ad.cmltd.net.au><00df01c87e6f$c78e4ac0$0201a8c0@M90><005101c87ea3$e398f380$8119fea9@LTVM> <00e701c87eba$8fa08e20$0201a8c0@M90> Message-ID: <012801c87ec0$e2788930$8119fea9@LTVM> Well, I never knew that. Learn something every day. Do you have to tell ADO to disconnect or does it do it automatically. If auto, then do you assume it is closed in all cases and re-open it to do something with it or do you test it (somehow) to see if it is disconnected? Thanks Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, March 05, 2008 12:15 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Error 3048 Cannot open any more databases Max, When you run a normal query in a combo or list or form etc. that is handled by JET as a normal DAO recordset. There is a fixed number of such recordsets available to your application, the number being up somewhere around 2000, which sounds like a lot but... At any rate, in later versions of Access, access allows you to manually create ADO recordsets and bind things like combos, lists and forms to those recordsets. ADO can disconnect once it has pulled the data, whereas DAO (to my knowledge) does not have that capability. IOW ADO can actually close its connection to the database after pulling its data. For combos this is not an issue, but for forms it creates issues where you have to make sure that the data that you pulled from has not changed if you are going to write your own changes back. 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 Max Wanadoo Sent: Wednesday, March 05, 2008 4:33 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Error 3048 Cannot open any more databases John, What do you mean by "disconnected" recordsets? Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, March 05, 2008 3:20 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Error 3048 Cannot open any more databases Yup! If you are using Access XP or above, look at binding all combos and lists to disconnected ADO recordsets. That will help immensely all by itself. After that you will probably need to dive into the dark arts of ADO disconnected recordsets for the form as well. As Charlotte said, WANS are considered a no-no for bound forms in Access. 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: Tuesday, March 04, 2008 8:08 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Error 3048 Cannot open any more databases Darryl, This is a highly misleading message, because it really means you have too many connections open. If you are doing things like populating combo boxes with select statements, each one of them is opening a connection. As I recall, lookups in your tables could do that as well. Access was NOT meant for WAN use, and to make it even marginally reliable in that context, you have to rewrite the UI to eliminate any unnecessary connections to the back end and use a JIT approach to populating lists, forms, subforms, etc. There have been previous discussions on this in the list, so you might take a stroll through the archives and see what you find. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darryl Collins Sent: Tuesday, March 04, 2008 4:23 PM To: Access Developers discussion and problem solving Subject: [AccessD] Error 3048 Cannot open any more databases Hey folks, Sorry to bug you with this, Having a lot of, ummm, 'fun' with this database I am building. Stand alone, it works great, with 5 or so users it works great, over a WAN with multi users it gets very wobbly and corrupts easily. Decided that it has to be split into FE and BE, which I have done manually and linked up the tables. When the DB opens it populates a listbox with choices for the user as before fine. However when the users selects an option which opens the data-entry form (and associated subforms) I get this lovely error "Error 3048 Cannot open any more databases" on this line sSQL = "SELECT * FROM tbl_FYP_APLID WHERE (((FYPID)=" & lFYPID & ") AND ((tbl_FYP_APLID.APLID)=" & lAPLID & "));" [Forms]![frm_FYP_APLID].RecordSource = sSQL Now I know clearly that I must have too "many databases open", but exactly what the hell does that mean? how did it happen and how can I either 1: increase the amount of DB's I can have open, or close down some of the offending databases? The only clue I have found online is if you don't SET your delcared CurrentDB to NOTHING when you are done with it, But the code in this workbook doesn't work like that at all and the modules that do use SET current DB, does set them to nothing when finished. Most confusing. Can anyone shed some light on this. Sorry about all the questions - working under lot of pressure and learning on the fly. Educational for sure, but I am getting through more and more scotch in the evening!! :) Darryl. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Wed Mar 5 07:32:52 2008 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 5 Mar 2008 08:32:52 -0500 Subject: [AccessD] Error 3048 Cannot open any more databases In-Reply-To: <012801c87ec0$e2788930$8119fea9@LTVM> References: <49DFE57FB126044B8A8B934E7AEA09ED0B27022C@WPEXCH05.colesmyer.ad.cmltd.net.au><00df01c87e6f$c78e4ac0$0201a8c0@M90><005101c87ea3$e398f380$8119fea9@LTVM><00e701c87eba$8fa08e20$0201a8c0@M90> <012801c87ec0$e2788930$8119fea9@LTVM> Message-ID: <00e801c87ec5$6a3cb680$0201a8c0@M90> Max, To be honest I am not the one to be answering these questions since none of my clients have required this feature, and in fact several of my clients are still running access 2000 or a mix with 2000 included which disallows general use of this feature - Access 2000 can't bind a form to an EDITABLE ADO recordset. It would be interesting to discover whether using ADO would speed up a database application as the number of users rise. If you think about it, Access has to go through all of the connections discovering whether they might need to update data. At one client, I work "offline" much of the time, mapping local directories to a drive letter for testing, then mapping network shares to that same drive letter for live access to data. When I am offline I get immediate opening of very complex forms. When working live it can require seconds to open the same form. If there are a hundred active connections per user (combos, lists, forms, subforms etc), times 40 users that is a lot of connections for Jet to wade through. Imagine just making all of the combos bound to disconnected ADO recordsets. That would drop the active connections at least by half, probably more like 80%. I have a billing database here at my office that I will spend some time this morning playing with this stuff and see what I see. However I believe there are others on the list who already do this and could help us figure out how it is done. 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 Max Wanadoo Sent: Wednesday, March 05, 2008 8:00 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Error 3048 Cannot open any more databases Well, I never knew that. Learn something every day. Do you have to tell ADO to disconnect or does it do it automatically. If auto, then do you assume it is closed in all cases and re-open it to do something with it or do you test it (somehow) to see if it is disconnected? Thanks Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, March 05, 2008 12:15 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Error 3048 Cannot open any more databases Max, When you run a normal query in a combo or list or form etc. that is handled by JET as a normal DAO recordset. There is a fixed number of such recordsets available to your application, the number being up somewhere around 2000, which sounds like a lot but... At any rate, in later versions of Access, access allows you to manually create ADO recordsets and bind things like combos, lists and forms to those recordsets. ADO can disconnect once it has pulled the data, whereas DAO (to my knowledge) does not have that capability. IOW ADO can actually close its connection to the database after pulling its data. For combos this is not an issue, but for forms it creates issues where you have to make sure that the data that you pulled from has not changed if you are going to write your own changes back. 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 Max Wanadoo Sent: Wednesday, March 05, 2008 4:33 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Error 3048 Cannot open any more databases John, What do you mean by "disconnected" recordsets? Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, March 05, 2008 3:20 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Error 3048 Cannot open any more databases Yup! If you are using Access XP or above, look at binding all combos and lists to disconnected ADO recordsets. That will help immensely all by itself. After that you will probably need to dive into the dark arts of ADO disconnected recordsets for the form as well. As Charlotte said, WANS are considered a no-no for bound forms in Access. 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: Tuesday, March 04, 2008 8:08 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Error 3048 Cannot open any more databases Darryl, This is a highly misleading message, because it really means you have too many connections open. If you are doing things like populating combo boxes with select statements, each one of them is opening a connection. As I recall, lookups in your tables could do that as well. Access was NOT meant for WAN use, and to make it even marginally reliable in that context, you have to rewrite the UI to eliminate any unnecessary connections to the back end and use a JIT approach to populating lists, forms, subforms, etc. There have been previous discussions on this in the list, so you might take a stroll through the archives and see what you find. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darryl Collins Sent: Tuesday, March 04, 2008 4:23 PM To: Access Developers discussion and problem solving Subject: [AccessD] Error 3048 Cannot open any more databases Hey folks, Sorry to bug you with this, Having a lot of, ummm, 'fun' with this database I am building. Stand alone, it works great, with 5 or so users it works great, over a WAN with multi users it gets very wobbly and corrupts easily. Decided that it has to be split into FE and BE, which I have done manually and linked up the tables. When the DB opens it populates a listbox with choices for the user as before fine. However when the users selects an option which opens the data-entry form (and associated subforms) I get this lovely error "Error 3048 Cannot open any more databases" on this line sSQL = "SELECT * FROM tbl_FYP_APLID WHERE (((FYPID)=" & lFYPID & ") AND ((tbl_FYP_APLID.APLID)=" & lAPLID & "));" [Forms]![frm_FYP_APLID].RecordSource = sSQL Now I know clearly that I must have too "many databases open", but exactly what the hell does that mean? how did it happen and how can I either 1: increase the amount of DB's I can have open, or close down some of the offending databases? The only clue I have found online is if you don't SET your delcared CurrentDB to NOTHING when you are done with it, But the code in this workbook doesn't work like that at all and the modules that do use SET current DB, does set them to nothing when finished. Most confusing. Can anyone shed some light on this. Sorry about all the questions - working under lot of pressure and learning on the fly. Educational for sure, but I am getting through more and more scotch in the evening!! :) Darryl. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jimdettman at verizon.net Wed Mar 5 07:52:45 2008 From: jimdettman at verizon.net (Jim Dettman) Date: Wed, 05 Mar 2008 08:52:45 -0500 Subject: [AccessD] Error 3048 Cannot open any more databases In-Reply-To: <49DFE57FB126044B8A8B934E7AEA09ED0B27022C@WPEXCH05.colesmyer.ad.cmltd.net.au> References: <49DFE57FB126044B8A8B934E7AEA09ED0B27022C@WPEXCH05.colesmyer.ad.cmltd.net.au> Message-ID: <01cc01c87ec8$31465130$8abea8c0@XPS> Darryl, <> If this is a JET backend, then your just asking for trouble. JET was never designed to run over a WAN and should not be. <> Access/JET has an internal limit of the number of table references it can have open. Along with the table reference is a database reference of course and that's where the error message comes from. What's mis-leading though with this error message is that every field you reference, be it in a combo, text box, or whatever, each carries a table reference. So the bottom line is your in some way shape or form (a combination of fields, tables and databases you might open in code), you using a little over 2000 of them and hitting the internal limit. There's no "fix" for it other then to reduce the scope of operations that your doing. I'd start by double checking on combo's and list boxes that you reference only the fields you need for the bound column and drop down. One technique many use is to pull into the combo/list box all the fields they need in the form (they just don't display them for the drop down) so they don't have to write the code to pull the data separately. This technique lets you bump into the internal limit real fast if you use a lot of combos/list boxes. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darryl Collins Sent: Tuesday, March 04, 2008 7:23 PM To: Access Developers discussion and problem solving Subject: [AccessD] Error 3048 Cannot open any more databases Hey folks, Sorry to bug you with this, Having a lot of, ummm, 'fun' with this database I am building. Stand alone, it works great, with 5 or so users it works great, over a WAN with multi users it gets very wobbly and corrupts easily. Decided that it has to be split into FE and BE, which I have done manually and linked up the tables. When the DB opens it populates a listbox with choices for the user as before fine. However when the users selects an option which opens the data-entry form (and associated subforms) I get this lovely error "Error 3048 Cannot open any more databases" on this line sSQL = "SELECT * FROM tbl_FYP_APLID WHERE (((FYPID)=" & lFYPID & ") AND ((tbl_FYP_APLID.APLID)=" & lAPLID & "));" [Forms]![frm_FYP_APLID].RecordSource = sSQL Now I know clearly that I must have too "many databases open", but exactly what the hell does that mean? how did it happen and how can I either 1: increase the amount of DB's I can have open, or close down some of the offending databases? The only clue I have found online is if you don't SET your delcared CurrentDB to NOTHING when you are done with it, But the code in this workbook doesn't work like that at all and the modules that do use SET current DB, does set them to nothing when finished. Most confusing. Can anyone shed some light on this. Sorry about all the questions - working under lot of pressure and learning on the fly. Educational for sure, but I am getting through more and more scotch in the evening!! :) Darryl. This email and any attachments may contain privileged and confidential information and are intended for the named addressee only. If you have received this e-mail in error, please notify the sender and delete this e-mail immediately. Any confidentiality, privilege or copyright is not waived or lost because this e-mail has been sent to you in error. It is your responsibility to check this e-mail and any attachments for viruses. No warranty is made that this material is free from computer virus or any other defect or error. Any loss/damage incurred by using this material is not the sender's responsibility. The sender's entire liability will be limited to resupplying the material. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Wed Mar 5 08:23:22 2008 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 5 Mar 2008 09:23:22 -0500 Subject: [AccessD] using ADO to populate combos - was RE: Error 3048 Cannot open any more databases In-Reply-To: <01cc01c87ec8$31465130$8abea8c0@XPS> References: <49DFE57FB126044B8A8B934E7AEA09ED0B27022C@WPEXCH05.colesmyer.ad.cmltd.net.au> <01cc01c87ec8$31465130$8abea8c0@XPS> Message-ID: <00e901c87ecc$7830a060$0201a8c0@M90> I was under the perhaps naive belief that with Access 2000 and greater, a combo could be populated by an ADO recordset, i.e. it's rowsource property could be an ado recordset. When I go out and look, I am running into methods that build up a string and the row source type is set to value list. That is a rather useless solution in the majority of cases since the max limit of characters in the list is around 2000. Is it in fact possible to make the rowsource an ADO recordset or am I delusional? If possible, how is it done? Example code would be nice. John W. Colby Colby Consulting www.ColbyConsulting.com From ssharkins at gmail.com Wed Mar 5 08:35:33 2008 From: ssharkins at gmail.com (Susan Harkins) Date: Wed, 5 Mar 2008 09:35:33 -0500 Subject: [AccessD] using ADO to populate combos - was RE: Error 3048 Cannotopen any more databases References: <49DFE57FB126044B8A8B934E7AEA09ED0B27022C@WPEXCH05.colesmyer.ad.cmltd.net.au><01cc01c87ec8$31465130$8abea8c0@XPS> <00e901c87ecc$7830a060$0201a8c0@M90> Message-ID: <033f01c87ece$2d5d2160$4b3a8343@SusanOne> John, I think the control has a property named Recordset -- look for Set ctl.Recordset = rst I think you have to do this programmatically -- don't think there's a manual choice. I might be wrong about this, I know you can do this with forms. Susan H. > Is it in fact possible to make the rowsource an ADO recordset or am I > delusional? If possible, how is it done? Example code would be nice. From mwp.reid at qub.ac.uk Wed Mar 5 08:47:16 2008 From: mwp.reid at qub.ac.uk (Martin W Reid) Date: Wed, 5 Mar 2008 14:47:16 +0000 Subject: [AccessD] using ADO to populate combos - was RE: Error 3048 Cannotopen any more databases In-Reply-To: <033f01c87ece$2d5d2160$4b3a8343@SusanOne> References: <49DFE57FB126044B8A8B934E7AEA09ED0B27022C@WPEXCH05.colesmyer.ad.cmltd.net.au><01cc01c87ec8$31465130$8abea8c0@XPS> <00e901c87ecc$7830a060$0201a8c0@M90>, <033f01c87ece$2d5d2160$4b3a8343@SusanOne> Message-ID: Out of the archives if g_oConnection = OpenConenction then Dim oRes As ADODB.Recordset Dim sListText As String Set oRes = New ADODB.Recordset Me.cboMyList.ColumnCount = 2 Me.cboMyList.BoundColumn = 1 Me.cboMyList.ColumnHeads = False Me.cboMyList.ColumnWidths = "0;1" Me.cboMyList.RowSourceType = "Value List" Me.cboMyList.DefaultValue = 0 oRes.Open "select * from tbMyTable order by label", g_oConnection, adOpenDynamic, adLockOptimistic sListText = "0;'';" While oRes.EOF = False sListText = sListText & oRes("ID").Value & ";" & oRes("Label").Value & ";" oRes.MoveNext Wend oRes.Close Me.cboMyList.RowSource = sListText Set oRes = Nothing CloseConnection end if Martin WP Reid Information Services Queen's University Riddel Hall 185 Stranmillis Road Belfast BT9 5EE Tel : 02890974465 Email : mwp.reid at qub.ac.uk ________________________________________ From: accessd-bounces at databaseadvisors.com [accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins [ssharkins at gmail.com] Sent: 05 March 2008 14:35 To: Access Developers discussion and problem solving Subject: Re: [AccessD] using ADO to populate combos - was RE: Error 3048 Cannotopen any more databases John, I think the control has a property named Recordset -- look for Set ctl.Recordset = rst I think you have to do this programmatically -- don't think there's a manual choice. I might be wrong about this, I know you can do this with forms. Susan H. > Is it in fact possible to make the rowsource an ADO recordset or am I > delusional? If possible, how is it done? Example code would be nice. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From fuller.artful at gmail.com Wed Mar 5 08:53:47 2008 From: fuller.artful at gmail.com (Arthur Fuller) Date: Wed, 5 Mar 2008 09:53:47 -0500 Subject: [AccessD] CommandBarControl Message-ID: <29f585dd0803050653v5193ad46h569f1bba37d1a1c9@mail.gmail.com> I have some code that Dims a variable as a CommandBarControl. It won't compile because I'm missing a reference. Anybody know what reference I need to make this work? TIA, Arthur From jwcolby at colbyconsulting.com Wed Mar 5 08:57:50 2008 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 5 Mar 2008 09:57:50 -0500 Subject: [AccessD] using ADO to populate combos - was RE: Error3048 Cannotopen any more databases In-Reply-To: References: <49DFE57FB126044B8A8B934E7AEA09ED0B27022C@WPEXCH05.colesmyer.ad.cmltd.net.au><01cc01c87ec8$31465130$8abea8c0@XPS><00e901c87ecc$7830a060$0201a8c0@M90>, <033f01c87ece$2d5d2160$4b3a8343@SusanOne> Message-ID: <00f001c87ed1$490e55c0$0201a8c0@M90> Yea, but this is a value list. I rarely if ever use value lists because of the 2000 character limitation. 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 W Reid Sent: Wednesday, March 05, 2008 9:47 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] using ADO to populate combos - was RE: Error3048 Cannotopen any more databases Out of the archives if g_oConnection = OpenConenction then Dim oRes As ADODB.Recordset Dim sListText As String Set oRes = New ADODB.Recordset Me.cboMyList.ColumnCount = 2 Me.cboMyList.BoundColumn = 1 Me.cboMyList.ColumnHeads = False Me.cboMyList.ColumnWidths = "0;1" Me.cboMyList.RowSourceType = "Value List" Me.cboMyList.DefaultValue = 0 oRes.Open "select * from tbMyTable order by label", g_oConnection, adOpenDynamic, adLockOptimistic sListText = "0;'';" While oRes.EOF = False sListText = sListText & oRes("ID").Value & ";" & oRes("Label").Value & ";" oRes.MoveNext Wend oRes.Close Me.cboMyList.RowSource = sListText Set oRes = Nothing CloseConnection end if Martin WP Reid Information Services Queen's University Riddel Hall 185 Stranmillis Road Belfast BT9 5EE Tel : 02890974465 Email : mwp.reid at qub.ac.uk ________________________________________ From: accessd-bounces at databaseadvisors.com [accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins [ssharkins at gmail.com] Sent: 05 March 2008 14:35 To: Access Developers discussion and problem solving Subject: Re: [AccessD] using ADO to populate combos - was RE: Error 3048 Cannotopen any more databases John, I think the control has a property named Recordset -- look for Set ctl.Recordset = rst I think you have to do this programmatically -- don't think there's a manual choice. I might be wrong about this, I know you can do this with forms. Susan H. > Is it in fact possible to make the rowsource an ADO recordset or am I > delusional? If possible, how is it done? Example code would be nice. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at Marlow.com Wed Mar 5 09:05:59 2008 From: DWUTKA at Marlow.com (Drew Wutka) Date: Wed, 5 Mar 2008 09:05:59 -0600 Subject: [AccessD] using ADO to populate combos - was RE: Error 3048 Cannotopen any more databases In-Reply-To: <00e901c87ecc$7830a060$0201a8c0@M90> References: <49DFE57FB126044B8A8B934E7AEA09ED0B27022C@WPEXCH05.colesmyer.ad.cmltd.net.au><01cc01c87ec8$31465130$8abea8c0@XPS> <00e901c87ecc$7830a060$0201a8c0@M90> Message-ID: Use a callback function. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, March 05, 2008 8:23 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] using ADO to populate combos - was RE: Error 3048 Cannotopen any more databases I was under the perhaps naive belief that with Access 2000 and greater, a combo could be populated by an ADO recordset, i.e. it's rowsource property could be an ado recordset. When I go out and look, I am running into methods that build up a string and the row source type is set to value list. That is a rather useless solution in the majority of cases since the max limit of characters in the list is around 2000. Is it in fact possible to make the rowsource an ADO recordset or am I delusional? If possible, how is it done? Example code would be nice. 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 The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From ssharkins at gmail.com Wed Mar 5 09:12:34 2008 From: ssharkins at gmail.com (Susan Harkins) Date: Wed, 5 Mar 2008 10:12:34 -0500 Subject: [AccessD] CommandBarControl References: <29f585dd0803050653v5193ad46h569f1bba37d1a1c9@mail.gmail.com> Message-ID: <037801c87ed3$76eb9910$4b3a8343@SusanOne> Not sure at all Arthur, but the first one I'd try is Office Components. Susan H. >I have some code that Dims a variable as a CommandBarControl. It won't > compile because I'm missing a reference. Anybody know what reference I > need > to make this work? From jwcolby at colbyconsulting.com Wed Mar 5 09:17:17 2008 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 5 Mar 2008 10:17:17 -0500 Subject: [AccessD] using ADO to populate combos - was RE: Error 3048Cannotopen any more databases In-Reply-To: References: <49DFE57FB126044B8A8B934E7AEA09ED0B27022C@WPEXCH05.colesmyer.ad.cmltd.net.au><01cc01c87ec8$31465130$8abea8c0@XPS><00e901c87ecc$7830a060$0201a8c0@M90> Message-ID: <00f101c87ed4$001c7290$0201a8c0@M90> Long ago I tried using call back functions and the only way I could figure out to do it was write a callback for each object. That just doesn't work when you want to implement this easily and automatically system wide - five hundred different combos. 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 Drew Wutka Sent: Wednesday, March 05, 2008 10:06 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] using ADO to populate combos - was RE: Error 3048Cannotopen any more databases Use a callback function. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, March 05, 2008 8:23 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] using ADO to populate combos - was RE: Error 3048 Cannotopen any more databases I was under the perhaps naive belief that with Access 2000 and greater, a combo could be populated by an ADO recordset, i.e. it's rowsource property could be an ado recordset. When I go out and look, I am running into methods that build up a string and the row source type is set to value list. That is a rather useless solution in the majority of cases since the max limit of characters in the list is around 2000. Is it in fact possible to make the rowsource an ADO recordset or am I delusional? If possible, how is it done? Example code would be nice. 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 The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- 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 Mar 5 09:24:18 2008 From: mwp.reid at qub.ac.uk (Martin W Reid) Date: Wed, 5 Mar 2008 15:24:18 +0000 Subject: [AccessD] using ADO to populate combos - was RE: Error3048 Cannotopen any more databases In-Reply-To: <00f001c87ed1$490e55c0$0201a8c0@M90> References: <49DFE57FB126044B8A8B934E7AEA09ED0B27022C@WPEXCH05.colesmyer.ad.cmltd.net.au><01cc01c87ec8$31465130$8abea8c0@XPS><00e901c87ecc$7830a060$0201a8c0@M90>, <033f01c87ece$2d5d2160$4b3a8343@SusanOne> , <00f001c87ed1$490e55c0$0201a8c0@M90> Message-ID: John You know I think we had this same conversation in 2003 (<: Martin Martin WP Reid Information Services Queen's University Riddel Hall 185 Stranmillis Road Belfast BT9 5EE Tel : 02890974465 Email : mwp.reid at qub.ac.uk ________________________________________ From: accessd-bounces at databaseadvisors.com [accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby [jwcolby at colbyconsulting.com] Sent: 05 March 2008 14:57 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] using ADO to populate combos - was RE: Error3048 Cannotopen any more databases Yea, but this is a value list. I rarely if ever use value lists because of the 2000 character limitation. 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 W Reid Sent: Wednesday, March 05, 2008 9:47 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] using ADO to populate combos - was RE: Error3048 Cannotopen any more databases Out of the archives if g_oConnection = OpenConenction then Dim oRes As ADODB.Recordset Dim sListText As String Set oRes = New ADODB.Recordset Me.cboMyList.ColumnCount = 2 Me.cboMyList.BoundColumn = 1 Me.cboMyList.ColumnHeads = False Me.cboMyList.ColumnWidths = "0;1" Me.cboMyList.RowSourceType = "Value List" Me.cboMyList.DefaultValue = 0 oRes.Open "select * from tbMyTable order by label", g_oConnection, adOpenDynamic, adLockOptimistic sListText = "0;'';" While oRes.EOF = False sListText = sListText & oRes("ID").Value & ";" & oRes("Label").Value & ";" oRes.MoveNext Wend oRes.Close Me.cboMyList.RowSource = sListText Set oRes = Nothing CloseConnection end if Martin WP Reid Information Services Queen's University Riddel Hall 185 Stranmillis Road Belfast BT9 5EE Tel : 02890974465 Email : mwp.reid at qub.ac.uk ________________________________________ From: accessd-bounces at databaseadvisors.com [accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins [ssharkins at gmail.com] Sent: 05 March 2008 14:35 To: Access Developers discussion and problem solving Subject: Re: [AccessD] using ADO to populate combos - was RE: Error 3048 Cannotopen any more databases John, I think the control has a property named Recordset -- look for Set ctl.Recordset = rst I think you have to do this programmatically -- don't think there's a manual choice. I might be wrong about this, I know you can do this with forms. Susan H. > Is it in fact possible to make the rowsource an ADO recordset or am I > delusional? If possible, how is it done? Example code would be nice. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From fuller.artful at gmail.com Wed Mar 5 09:44:15 2008 From: fuller.artful at gmail.com (Arthur Fuller) Date: Wed, 5 Mar 2008 10:44:15 -0500 Subject: [AccessD] CommandBarControl In-Reply-To: <037801c87ed3$76eb9910$4b3a8343@SusanOne> References: <29f585dd0803050653v5193ad46h569f1bba37d1a1c9@mail.gmail.com> <037801c87ed3$76eb9910$4b3a8343@SusanOne> Message-ID: <29f585dd0803050744i344ffb25nba7df5aa0b65c156@mail.gmail.com> Thanks. I'll try that. On 3/5/08, Susan Harkins wrote: > > Not sure at all Arthur, but the first one I'd try is Office Components. > > Susan H. > > From cfoust at infostatsystems.com Wed Mar 5 10:01:54 2008 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 5 Mar 2008 08:01:54 -0800 Subject: [AccessD] Error 3048 Cannot open any more databases In-Reply-To: <012801c87ec0$e2788930$8119fea9@LTVM> References: <49DFE57FB126044B8A8B934E7AEA09ED0B27022C@WPEXCH05.colesmyer.ad.cmltd.net.au><00df01c87e6f$c78e4ac0$0201a8c0@M90><005101c87ea3$e398f380$8119fea9@LTVM><00e701c87eba$8fa08e20$0201a8c0@M90> <012801c87ec0$e2788930$8119fea9@LTVM> Message-ID: You tell it to disconnect after you fill the recordset. Then you work with the disconnected recordset until you are ready to throw it away or reconnect and write it back to the table. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Wednesday, March 05, 2008 5:00 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Error 3048 Cannot open any more databases Well, I never knew that. Learn something every day. Do you have to tell ADO to disconnect or does it do it automatically. If auto, then do you assume it is closed in all cases and re-open it to do something with it or do you test it (somehow) to see if it is disconnected? Thanks Max From cfoust at infostatsystems.com Wed Mar 5 10:10:13 2008 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 5 Mar 2008 08:10:13 -0800 Subject: [AccessD] using ADO to populate combos - was RE: Error3048Cannotopen any more databases In-Reply-To: <00f101c87ed4$001c7290$0201a8c0@M90> References: <49DFE57FB126044B8A8B934E7AEA09ED0B27022C@WPEXCH05.colesmyer.ad.cmltd.net.au><01cc01c87ec8$31465130$8abea8c0@XPS><00e901c87ecc$7830a060$0201a8c0@M90> <00f101c87ed4$001c7290$0201a8c0@M90> Message-ID: My NoTables sample at http://www.rogersaccesslibrary.com/OtherLibraries.asp# uses ADO disconnected recordsets and also populates a combobox with a callback, in case anyone wants to play with it. This was built in and for Access 2000, which is why everything is unbound. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, March 05, 2008 7:17 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] using ADO to populate combos - was RE: Error3048Cannotopen any more databases Long ago I tried using call back functions and the only way I could figure out to do it was write a callback for each object. That just doesn't work when you want to implement this easily and automatically system wide - five hundred different combos. 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 Drew Wutka Sent: Wednesday, March 05, 2008 10:06 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] using ADO to populate combos - was RE: Error 3048Cannotopen any more databases Use a callback function. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, March 05, 2008 8:23 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] using ADO to populate combos - was RE: Error 3048 Cannotopen any more databases I was under the perhaps naive belief that with Access 2000 and greater, a combo could be populated by an ADO recordset, i.e. it's rowsource property could be an ado recordset. When I go out and look, I am running into methods that build up a string and the row source type is set to value list. That is a rather useless solution in the majority of cases since the max limit of characters in the list is around 2000. Is it in fact possible to make the rowsource an ADO recordset or am I delusional? If possible, how is it done? Example code would be nice. 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 The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at Marlow.com Wed Mar 5 10:11:55 2008 From: DWUTKA at Marlow.com (Drew Wutka) Date: Wed, 5 Mar 2008 10:11:55 -0600 Subject: [AccessD] using ADO to populate combos - was RE: Error3048Cannotopen any more databases In-Reply-To: <00f101c87ed4$001c7290$0201a8c0@M90> Message-ID: That's not necessary, to write a function for each control. One of the arguments of that control is the control itself. So you could create one function, in a module, that would be your 'global' callback function. What I would recommend would be to create a class that would handle recordset objects, and in your callback function pull the appropriate recordset from that class based on the control argument that is passed to the callback function. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, March 05, 2008 9:17 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] using ADO to populate combos - was RE: Error3048Cannotopen any more databases Long ago I tried using call back functions and the only way I could figure out to do it was write a callback for each object. That just doesn't work when you want to implement this easily and automatically system wide - five hundred different combos. 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 Drew Wutka Sent: Wednesday, March 05, 2008 10:06 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] using ADO to populate combos - was RE: Error 3048Cannotopen any more databases Use a callback function. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, March 05, 2008 8:23 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] using ADO to populate combos - was RE: Error 3048 Cannotopen any more databases I was under the perhaps naive belief that with Access 2000 and greater, a combo could be populated by an ADO recordset, i.e. it's rowsource property could be an ado recordset. When I go out and look, I am running into methods that build up a string and the row source type is set to value list. That is a rather useless solution in the majority of cases since the max limit of characters in the list is around 2000. Is it in fact possible to make the rowsource an ADO recordset or am I delusional? If possible, how is it done? Example code would be nice. 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 The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From jwcolby at colbyconsulting.com Wed Mar 5 10:19:38 2008 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 5 Mar 2008 11:19:38 -0500 Subject: [AccessD] using ADO to populate combos - was RE:Error3048Cannotopen any more databases In-Reply-To: References: <49DFE57FB126044B8A8B934E7AEA09ED0B27022C@WPEXCH05.colesmyer.ad.cmltd.net.au><01cc01c87ec8$31465130$8abea8c0@XPS><00e901c87ecc$7830a060$0201a8c0@M90><00f101c87ed4$001c7290$0201a8c0@M90> Message-ID: <00f201c87edc$b61dcb90$0201a8c0@M90> What are you saying Charlotte? Is it no longer required to write a new callback for every combo. 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, March 05, 2008 11:10 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] using ADO to populate combos - was RE:Error3048Cannotopen any more databases My NoTables sample at http://www.rogersaccesslibrary.com/OtherLibraries.asp# uses ADO disconnected recordsets and also populates a combobox with a callback, in case anyone wants to play with it. This was built in and for Access 2000, which is why everything is unbound. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, March 05, 2008 7:17 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] using ADO to populate combos - was RE: Error3048Cannotopen any more databases Long ago I tried using call back functions and the only way I could figure out to do it was write a callback for each object. That just doesn't work when you want to implement this easily and automatically system wide - five hundred different combos. 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 Drew Wutka Sent: Wednesday, March 05, 2008 10:06 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] using ADO to populate combos - was RE: Error 3048Cannotopen any more databases Use a callback function. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, March 05, 2008 8:23 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] using ADO to populate combos - was RE: Error 3048 Cannotopen any more databases I was under the perhaps naive belief that with Access 2000 and greater, a combo could be populated by an ADO recordset, i.e. it's rowsource property could be an ado recordset. When I go out and look, I am running into methods that build up a string and the row source type is set to value list. That is a rather useless solution in the majority of cases since the max limit of characters in the list is around 2000. Is it in fact possible to make the rowsource an ADO recordset or am I delusional? If possible, how is it done? Example code would be nice. 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 The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Wed Mar 5 10:28:56 2008 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 5 Mar 2008 11:28:56 -0500 Subject: [AccessD] using ADO to populate combos - was RE:Error3048Cannotopen any more databases In-Reply-To: References: <00f101c87ed4$001c7290$0201a8c0@M90> Message-ID: <00f301c87ede$027c9e20$0201a8c0@M90> Have you ever done this? Inside of the call back function was a static array where the data for that specific control was placed. Thus each callback was specific to the control passed in. I tried doing this and failed. Do you have code demonstrating what you are thinking about? 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 Drew Wutka Sent: Wednesday, March 05, 2008 11:12 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] using ADO to populate combos - was RE:Error3048Cannotopen any more databases That's not necessary, to write a function for each control. One of the arguments of that control is the control itself. So you could create one function, in a module, that would be your 'global' callback function. What I would recommend would be to create a class that would handle recordset objects, and in your callback function pull the appropriate recordset from that class based on the control argument that is passed to the callback function. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, March 05, 2008 9:17 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] using ADO to populate combos - was RE: Error3048Cannotopen any more databases Long ago I tried using call back functions and the only way I could figure out to do it was write a callback for each object. That just doesn't work when you want to implement this easily and automatically system wide - five hundred different combos. 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 Drew Wutka Sent: Wednesday, March 05, 2008 10:06 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] using ADO to populate combos - was RE: Error 3048Cannotopen any more databases Use a callback function. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, March 05, 2008 8:23 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] using ADO to populate combos - was RE: Error 3048 Cannotopen any more databases I was under the perhaps naive belief that with Access 2000 and greater, a combo could be populated by an ADO recordset, i.e. it's rowsource property could be an ado recordset. When I go out and look, I am running into methods that build up a string and the row source type is set to value list. That is a rather useless solution in the majority of cases since the max limit of characters in the list is around 2000. Is it in fact possible to make the rowsource an ADO recordset or am I delusional? If possible, how is it done? Example code would be nice. 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 The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Wed Mar 5 10:50:47 2008 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 05 Mar 2008 08:50:47 -0800 Subject: [AccessD] Error 3048 Cannot open any more databases In-Reply-To: <00e801c87ec5$6a3cb680$0201a8c0@M90> References: <49DFE57FB126044B8A8B934E7AEA09ED0B27022C@WPEXCH05.colesmyer.ad.cmltd.net.au> <00df01c87e6f$c78e4ac0$0201a8c0@M90> <005101c87ea3$e398f380$8119fea9@LTVM> <00e701c87eba$8fa08e20$0201a8c0@M90> <012801c87ec0$e2788930$8119fea9@LTVM> <00e801c87ec5$6a3cb680$0201a8c0@M90> Message-ID: Hi Max: Most ADO recordsets are not tied to the database where the data is retrieved. That is not a disconnected recordset just one that is not dynamically linked. To dynamically connect a ADO recordset to the database would have use something like: ' By using the operand adOpenDynamic the recordset ' below remains linked to the dataset this process has retrieved ' and if any data changes take place during the use this recordset ' those changes are dynamically reflected in recordset. rsMyRecordset.Open objCmd, , adOpenDynamic, adLockOptimistic ' Below is the most likely code to retrieve data for something like a ' combo box object which does not require a dynamic link. The ' connection to the database is terminated immediately after ' the data has been retrieved. rsMyRecordset.Open objCmd, , adOpenStatic, adLockOptimistic HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, March 05, 2008 5:33 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Error 3048 Cannot open any more databases Max, To be honest I am not the one to be answering these questions since none of my clients have required this feature, and in fact several of my clients are still running access 2000 or a mix with 2000 included which disallows general use of this feature - Access 2000 can't bind a form to an EDITABLE ADO recordset. It would be interesting to discover whether using ADO would speed up a database application as the number of users rise. If you think about it, Access has to go through all of the connections discovering whether they might need to update data. At one client, I work "offline" much of the time, mapping local directories to a drive letter for testing, then mapping network shares to that same drive letter for live access to data. When I am offline I get immediate opening of very complex forms. When working live it can require seconds to open the same form. If there are a hundred active connections per user (combos, lists, forms, subforms etc), times 40 users that is a lot of connections for Jet to wade through. Imagine just making all of the combos bound to disconnected ADO recordsets. That would drop the active connections at least by half, probably more like 80%. I have a billing database here at my office that I will spend some time this morning playing with this stuff and see what I see. However I believe there are others on the list who already do this and could help us figure out how it is done. 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 Max Wanadoo Sent: Wednesday, March 05, 2008 8:00 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Error 3048 Cannot open any more databases Well, I never knew that. Learn something every day. Do you have to tell ADO to disconnect or does it do it automatically. If auto, then do you assume it is closed in all cases and re-open it to do something with it or do you test it (somehow) to see if it is disconnected? Thanks Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, March 05, 2008 12:15 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Error 3048 Cannot open any more databases Max, When you run a normal query in a combo or list or form etc. that is handled by JET as a normal DAO recordset. There is a fixed number of such recordsets available to your application, the number being up somewhere around 2000, which sounds like a lot but... At any rate, in later versions of Access, access allows you to manually create ADO recordsets and bind things like combos, lists and forms to those recordsets. ADO can disconnect once it has pulled the data, whereas DAO (to my knowledge) does not have that capability. IOW ADO can actually close its connection to the database after pulling its data. For combos this is not an issue, but for forms it creates issues where you have to make sure that the data that you pulled from has not changed if you are going to write your own changes back. 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 Max Wanadoo Sent: Wednesday, March 05, 2008 4:33 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Error 3048 Cannot open any more databases John, What do you mean by "disconnected" recordsets? Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, March 05, 2008 3:20 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Error 3048 Cannot open any more databases Yup! If you are using Access XP or above, look at binding all combos and lists to disconnected ADO recordsets. That will help immensely all by itself. After that you will probably need to dive into the dark arts of ADO disconnected recordsets for the form as well. As Charlotte said, WANS are considered a no-no for bound forms in Access. 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: Tuesday, March 04, 2008 8:08 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Error 3048 Cannot open any more databases Darryl, This is a highly misleading message, because it really means you have too many connections open. If you are doing things like populating combo boxes with select statements, each one of them is opening a connection. As I recall, lookups in your tables could do that as well. Access was NOT meant for WAN use, and to make it even marginally reliable in that context, you have to rewrite the UI to eliminate any unnecessary connections to the back end and use a JIT approach to populating lists, forms, subforms, etc. There have been previous discussions on this in the list, so you might take a stroll through the archives and see what you find. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darryl Collins Sent: Tuesday, March 04, 2008 4:23 PM To: Access Developers discussion and problem solving Subject: [AccessD] Error 3048 Cannot open any more databases Hey folks, Sorry to bug you with this, Having a lot of, ummm, 'fun' with this database I am building. Stand alone, it works great, with 5 or so users it works great, over a WAN with multi users it gets very wobbly and corrupts easily. Decided that it has to be split into FE and BE, which I have done manually and linked up the tables. When the DB opens it populates a listbox with choices for the user as before fine. However when the users selects an option which opens the data-entry form (and associated subforms) I get this lovely error "Error 3048 Cannot open any more databases" on this line sSQL = "SELECT * FROM tbl_FYP_APLID WHERE (((FYPID)=" & lFYPID & ") AND ((tbl_FYP_APLID.APLID)=" & lAPLID & "));" [Forms]![frm_FYP_APLID].RecordSource = sSQL Now I know clearly that I must have too "many databases open", but exactly what the hell does that mean? how did it happen and how can I either 1: increase the amount of DB's I can have open, or close down some of the offending databases? The only clue I have found online is if you don't SET your delcared CurrentDB to NOTHING when you are done with it, But the code in this workbook doesn't work like that at all and the modules that do use SET current DB, does set them to nothing when finished. Most confusing. Can anyone shed some light on this. Sorry about all the questions - working under lot of pressure and learning on the fly. Educational for sure, but I am getting through more and more scotch in the evening!! :) Darryl. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Wed Mar 5 11:44:48 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 05 Mar 2008 18:44:48 +0100 Subject: [AccessD] using ADO to populate combos - was RE:Error3048Cannotopen any more databases Message-ID: Hi John I think you are right. What I have done is to make the callback function private and copy it into the module of the form - I've never had more than a couple of these for one form. But I realize that this doesn't play well with your framework. /gustav >>> jwcolby at colbyconsulting.com 05-03-2008 17:28 >>> Have you ever done this? Inside of the call back function was a static array where the data for that specific control was placed. Thus each callback was specific to the control passed in. I tried doing this and failed. Do you have code demonstrating what you are thinking about? 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 Drew Wutka Sent: Wednesday, March 05, 2008 11:12 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] using ADO to populate combos - was RE:Error3048Cannotopen any more databases That's not necessary, to write a function for each control. One of the arguments of that control is the control itself. So you could create one function, in a module, that would be your 'global' callback function. What I would recommend would be to create a class that would handle recordset objects, and in your callback function pull the appropriate recordset from that class based on the control argument that is passed to the callback function. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, March 05, 2008 9:17 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] using ADO to populate combos - was RE: Error3048Cannotopen any more databases Long ago I tried using call back functions and the only way I could figure out to do it was write a callback for each object. That just doesn't work when you want to implement this easily and automatically system wide - five hundred different combos. John W. Colby Colby Consulting www.ColbyConsulting.com From jwcolby at colbyconsulting.com Wed Mar 5 11:58:22 2008 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 5 Mar 2008 12:58:22 -0500 Subject: [AccessD] using ADO to populate combos -was RE:Error3048Cannotopen any more databases In-Reply-To: References: Message-ID: <00f401c87eea$8126cd70$0201a8c0@M90> Hmm.... A form's module is just a class. I have a class for every combo with the combo passed in. If I could place the callback inside of that class... but... I could swear that the combo had to have a public FUNCTION as the callback, IOW as the combo loaded it tried to "call" the function and the function had to be in a public module, not a class. I must admit that I never tried to do this inside of my class however. 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: Wednesday, March 05, 2008 12:45 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] using ADO to populate combos -was RE:Error3048Cannotopen any more databases Hi John I think you are right. What I have done is to make the callback function private and copy it into the module of the form - I've never had more than a couple of these for one form. But I realize that this doesn't play well with your framework. /gustav >>> jwcolby at colbyconsulting.com 05-03-2008 17:28 >>> Have you ever done this? Inside of the call back function was a static array where the data for that specific control was placed. Thus each callback was specific to the control passed in. I tried doing this and failed. Do you have code demonstrating what you are thinking about? 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 Drew Wutka Sent: Wednesday, March 05, 2008 11:12 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] using ADO to populate combos - was RE:Error3048Cannotopen any more databases That's not necessary, to write a function for each control. One of the arguments of that control is the control itself. So you could create one function, in a module, that would be your 'global' callback function. What I would recommend would be to create a class that would handle recordset objects, and in your callback function pull the appropriate recordset from that class based on the control argument that is passed to the callback function. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, March 05, 2008 9:17 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] using ADO to populate combos - was RE: Error3048Cannotopen any more databases Long ago I tried using call back functions and the only way I could figure out to do it was write a callback for each object. That just doesn't work when you want to implement this easily and automatically system wide - five hundred different combos. 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 DWUTKA at Marlow.com Wed Mar 5 12:42:30 2008 From: DWUTKA at Marlow.com (Drew Wutka) Date: Wed, 5 Mar 2008 12:42:30 -0600 Subject: [AccessD] using ADO to populate combos - wasRE:Error3048Cannotopen any more databases In-Reply-To: <00f301c87ede$027c9e20$0201a8c0@M90> Message-ID: http://www.marlow.com/ComboExample.mdb I have three tables, three forms, one module, and two class modules. Two of the tables (tblDataOne, tblDataTwo) are just one field tables (field is Data) for demoing data in the combos. The third table is tblComboboxSQL which has a Form, Control and SQL field. The module has the callback function and the global declaration for ComboRecordsets. ComboRecordsets is a class that 'holds' the recordsets used for the comboboxes. The three forms all have a combo box that runs off of the callback function. The only added code to the forms is on the unload event, the forms 'clear' their combo's recordsets from the global ComboRecordsets object. frmOne shows data from tblDataOne, frmTwo shows data from tblDataTwo, and frmThree shows data from both tables. Each has a record in the tblComboBoxSQL table. frmOne also has a button, that sets an ADODB recordset to cmbTest1. Note that the recordset it uses has two fields (just pulls both fields from both tables, but not as a union). If you open frmOne, it's combo will list One Two Three and Four. Click the button, and now that combo will have all the combinations between tblDataOne and tblDataTwo, and will now also have 2 columns. The key here is that ComboRecordsets stores a recordset keyed off of the form (actually parent, if this was a combobox on a subform). The callback function then works off the recordset stored there by feeding the parent and control name to the ComboRecordsets object from the fld Object (one of the arguments in the callback function). Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, March 05, 2008 10:29 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] using ADO to populate combos - wasRE:Error3048Cannotopen any more databases Have you ever done this? Inside of the call back function was a static array where the data for that specific control was placed. Thus each callback was specific to the control passed in. I tried doing this and failed. Do you have code demonstrating what you are thinking about? 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 Drew Wutka Sent: Wednesday, March 05, 2008 11:12 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] using ADO to populate combos - was RE:Error3048Cannotopen any more databases That's not necessary, to write a function for each control. One of the arguments of that control is the control itself. So you could create one function, in a module, that would be your 'global' callback function. What I would recommend would be to create a class that would handle recordset objects, and in your callback function pull the appropriate recordset from that class based on the control argument that is passed to the callback function. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, March 05, 2008 9:17 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] using ADO to populate combos - was RE: Error3048Cannotopen any more databases Long ago I tried using call back functions and the only way I could figure out to do it was write a callback for each object. That just doesn't work when you want to implement this easily and automatically system wide - five hundred different combos. 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 Drew Wutka Sent: Wednesday, March 05, 2008 10:06 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] using ADO to populate combos - was RE: Error 3048Cannotopen any more databases Use a callback function. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, March 05, 2008 8:23 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] using ADO to populate combos - was RE: Error 3048 Cannotopen any more databases I was under the perhaps naive belief that with Access 2000 and greater, a combo could be populated by an ADO recordset, i.e. it's rowsource property could be an ado recordset. When I go out and look, I am running into methods that build up a string and the row source type is set to value list. That is a rather useless solution in the majority of cases since the max limit of characters in the list is around 2000. Is it in fact possible to make the rowsource an ADO recordset or am I delusional? If possible, how is it done? Example code would be nice. 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 The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From cfoust at infostatsystems.com Wed Mar 5 12:52:42 2008 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 5 Mar 2008 10:52:42 -0800 Subject: [AccessD] using ADO to populate combos - wasRE:Error3048Cannotopen any more databases In-Reply-To: <00f201c87edc$b61dcb90$0201a8c0@M90> References: <49DFE57FB126044B8A8B934E7AEA09ED0B27022C@WPEXCH05.colesmyer.ad.cmltd.net.au><01cc01c87ec8$31465130$8abea8c0@XPS><00e901c87ecc$7830a060$0201a8c0@M90><00f101c87ed4$001c7290$0201a8c0@M90> <00f201c87edc$b61dcb90$0201a8c0@M90> Message-ID: No, just saying it was built in 2000, so it uses the most basic approach, disconnected recordsets. I was just pointing out that I used a callback to populate the combo. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, March 05, 2008 8:20 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] using ADO to populate combos - wasRE:Error3048Cannotopen any more databases What are you saying Charlotte? Is it no longer required to write a new callback for every combo. 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, March 05, 2008 11:10 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] using ADO to populate combos - was RE:Error3048Cannotopen any more databases My NoTables sample at http://www.rogersaccesslibrary.com/OtherLibraries.asp# uses ADO disconnected recordsets and also populates a combobox with a callback, in case anyone wants to play with it. This was built in and for Access 2000, which is why everything is unbound. Charlotte Foust From John.Clark at niagaracounty.com Wed Mar 5 13:26:27 2008 From: John.Clark at niagaracounty.com (John Clark) Date: Wed, 05 Mar 2008 14:26:27 -0500 Subject: [AccessD] Creating a Login form & check PW...how? In-Reply-To: References: <29f585dd0803031407g20c20a59j953b286deadd69ae@mail.gmail.com> Message-ID: <47CEAD90.167F.006B.0@niagaracounty.com> Easy one for y'all...(A03 by the way) I'm trying to add a login screen to a current db, so that I can divide users into three groups. Depending on your group, different buttons will be enabled/disabled. So far I've got a table (tblUsr) where I've got the individual users...txtUsrID, txtPW, txtSecLevel. I have a form w/they can type in their ID and PW, but I'm having trouble figuring out how to check that they have entered the correct PW. I figured this would be easy enough, and I thought I did it before, but I'm struggling here. Thanks! JClark PS...I haven't been out here much, because my programming duties were scant, but I've been assigned a couple more programs, so I'll probably be a pain again, until I get my wings back ;o) John W. Clark Computer Programmer Niagara County Central Data Processing From JHewson at nciinc.com Wed Mar 5 13:47:55 2008 From: JHewson at nciinc.com (Hewson, Jim ) Date: Wed, 5 Mar 2008 13:47:55 -0600 Subject: [AccessD] Creating a Login form & check PW...how? In-Reply-To: <47CEAD90.167F.006B.0@niagaracounty.com> References: <29f585dd0803031407g20c20a59j953b286deadd69ae@mail.gmail.com> <47CEAD90.167F.006B.0@niagaracounty.com> Message-ID: <74005957686E064B8C08188A298BF5D46BEE80@sanex101.nciinc.com> Instead of having the user login, you can grab the AD login name and assign security parameters to that. On the load event of the main form, grab the AD login name and match it with the access rights assigned. You'll need to have a table (and a way to modify it, through the UI), with the user's Display Name, Login Name, Access Rights, and anything else you want to control. For example, in one of my databases, I control who has the privilege of creating notes and/or who can get to some of the financial data on the forms. Jim jhewson at nciinc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Clark Sent: Wednesday, March 05, 2008 1:26 PM To: Access Developers discussion and problem solving Subject: [AccessD] Creating a Login form & check PW...how? Easy one for y'all...(A03 by the way) I'm trying to add a login screen to a current db, so that I can divide users into three groups. Depending on your group, different buttons will be enabled/disabled. So far I've got a table (tblUsr) where I've got the individual users...txtUsrID, txtPW, txtSecLevel. I have a form w/they can type in their ID and PW, but I'm having trouble figuring out how to check that they have entered the correct PW. I figured this would be easy enough, and I thought I did it before, but I'm struggling here. Thanks! JClark PS...I haven't been out here much, because my programming duties were scant, but I've been assigned a couple more programs, so I'll probably be a pain again, until I get my wings back ;o) John W. Clark Computer Programmer Niagara County Central Data Processing -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ################################################################################ This email transmission contains information from NCI Information Systems, Inc. that may be considered privileged or confidential and is intended solely for the named recipient. If you have received this message in error, please contact the sender immediately and be aware that the use, copying or dissemination of this information is prohibited. ################################################################################ From max.wanadoo at gmail.com Wed Mar 5 14:02:44 2008 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Wed, 5 Mar 2008 20:02:44 -0000 Subject: [AccessD] Error 3048 Cannot open any more databases In-Reply-To: References: <49DFE57FB126044B8A8B934E7AEA09ED0B27022C@WPEXCH05.colesmyer.ad.cmltd.net.au><00df01c87e6f$c78e4ac0$0201a8c0@M90><005101c87ea3$e398f380$8119fea9@LTVM><00e701c87eba$8fa08e20$0201a8c0@M90><012801c87ec0$e2788930$8119fea9@LTVM><00e801c87ec5$6a3cb680$0201a8c0@M90> Message-ID: <005901c87efb$e13531f0$8119fea9@LTVM> Thanks Jim, Most useful. Regards Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Wednesday, March 05, 2008 4:51 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Error 3048 Cannot open any more databases Hi Max: Most ADO recordsets are not tied to the database where the data is retrieved. That is not a disconnected recordset just one that is not dynamically linked. To dynamically connect a ADO recordset to the database would have use something like: ' By using the operand adOpenDynamic the recordset ' below remains linked to the dataset this process has retrieved ' and if any data changes take place during the use this recordset ' those changes are dynamically reflected in recordset. rsMyRecordset.Open objCmd, , adOpenDynamic, adLockOptimistic ' Below is the most likely code to retrieve data for something like a ' combo box object which does not require a dynamic link. The ' connection to the database is terminated immediately after ' the data has been retrieved. rsMyRecordset.Open objCmd, , adOpenStatic, adLockOptimistic HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, March 05, 2008 5:33 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Error 3048 Cannot open any more databases Max, To be honest I am not the one to be answering these questions since none of my clients have required this feature, and in fact several of my clients are still running access 2000 or a mix with 2000 included which disallows general use of this feature - Access 2000 can't bind a form to an EDITABLE ADO recordset. It would be interesting to discover whether using ADO would speed up a database application as the number of users rise. If you think about it, Access has to go through all of the connections discovering whether they might need to update data. At one client, I work "offline" much of the time, mapping local directories to a drive letter for testing, then mapping network shares to that same drive letter for live access to data. When I am offline I get immediate opening of very complex forms. When working live it can require seconds to open the same form. If there are a hundred active connections per user (combos, lists, forms, subforms etc), times 40 users that is a lot of connections for Jet to wade through. Imagine just making all of the combos bound to disconnected ADO recordsets. That would drop the active connections at least by half, probably more like 80%. I have a billing database here at my office that I will spend some time this morning playing with this stuff and see what I see. However I believe there are others on the list who already do this and could help us figure out how it is done. 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 Max Wanadoo Sent: Wednesday, March 05, 2008 8:00 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Error 3048 Cannot open any more databases Well, I never knew that. Learn something every day. Do you have to tell ADO to disconnect or does it do it automatically. If auto, then do you assume it is closed in all cases and re-open it to do something with it or do you test it (somehow) to see if it is disconnected? Thanks Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, March 05, 2008 12:15 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Error 3048 Cannot open any more databases Max, When you run a normal query in a combo or list or form etc. that is handled by JET as a normal DAO recordset. There is a fixed number of such recordsets available to your application, the number being up somewhere around 2000, which sounds like a lot but... At any rate, in later versions of Access, access allows you to manually create ADO recordsets and bind things like combos, lists and forms to those recordsets. ADO can disconnect once it has pulled the data, whereas DAO (to my knowledge) does not have that capability. IOW ADO can actually close its connection to the database after pulling its data. For combos this is not an issue, but for forms it creates issues where you have to make sure that the data that you pulled from has not changed if you are going to write your own changes back. 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 Max Wanadoo Sent: Wednesday, March 05, 2008 4:33 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Error 3048 Cannot open any more databases John, What do you mean by "disconnected" recordsets? Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, March 05, 2008 3:20 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Error 3048 Cannot open any more databases Yup! If you are using Access XP or above, look at binding all combos and lists to disconnected ADO recordsets. That will help immensely all by itself. After that you will probably need to dive into the dark arts of ADO disconnected recordsets for the form as well. As Charlotte said, WANS are considered a no-no for bound forms in Access. 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: Tuesday, March 04, 2008 8:08 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Error 3048 Cannot open any more databases Darryl, This is a highly misleading message, because it really means you have too many connections open. If you are doing things like populating combo boxes with select statements, each one of them is opening a connection. As I recall, lookups in your tables could do that as well. Access was NOT meant for WAN use, and to make it even marginally reliable in that context, you have to rewrite the UI to eliminate any unnecessary connections to the back end and use a JIT approach to populating lists, forms, subforms, etc. There have been previous discussions on this in the list, so you might take a stroll through the archives and see what you find. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darryl Collins Sent: Tuesday, March 04, 2008 4:23 PM To: Access Developers discussion and problem solving Subject: [AccessD] Error 3048 Cannot open any more databases Hey folks, Sorry to bug you with this, Having a lot of, ummm, 'fun' with this database I am building. Stand alone, it works great, with 5 or so users it works great, over a WAN with multi users it gets very wobbly and corrupts easily. Decided that it has to be split into FE and BE, which I have done manually and linked up the tables. When the DB opens it populates a listbox with choices for the user as before fine. However when the users selects an option which opens the data-entry form (and associated subforms) I get this lovely error "Error 3048 Cannot open any more databases" on this line sSQL = "SELECT * FROM tbl_FYP_APLID WHERE (((FYPID)=" & lFYPID & ") AND ((tbl_FYP_APLID.APLID)=" & lAPLID & "));" [Forms]![frm_FYP_APLID].RecordSource = sSQL Now I know clearly that I must have too "many databases open", but exactly what the hell does that mean? how did it happen and how can I either 1: increase the amount of DB's I can have open, or close down some of the offending databases? The only clue I have found online is if you don't SET your delcared CurrentDB to NOTHING when you are done with it, But the code in this workbook doesn't work like that at all and the modules that do use SET current DB, does set them to nothing when finished. Most confusing. Can anyone shed some light on this. Sorry about all the questions - working under lot of pressure and learning on the fly. Educational for sure, but I am getting through more and more scotch in the evening!! :) Darryl. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Wed Mar 5 14:08:25 2008 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Wed, 5 Mar 2008 20:08:25 -0000 Subject: [AccessD] Error 3048 Cannot open any more databases In-Reply-To: <00e801c87ec5$6a3cb680$0201a8c0@M90> References: <49DFE57FB126044B8A8B934E7AEA09ED0B27022C@WPEXCH05.colesmyer.ad.cmltd.net.au><00df01c87e6f$c78e4ac0$0201a8c0@M90><005101c87ea3$e398f380$8119fea9@LTVM><00e701c87eba$8fa08e20$0201a8c0@M90><012801c87ec0$e2788930$8119fea9@LTVM> <00e801c87ec5$6a3cb680$0201a8c0@M90> Message-ID: <005d01c87efc$ac58fab0$8119fea9@LTVM> Thanks John, I must confess that I almost exclusively use DAO because of its flexibility, but this is something to think about. Regards Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, March 05, 2008 1:33 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Error 3048 Cannot open any more databases Max, To be honest I am not the one to be answering these questions since none of my clients have required this feature, and in fact several of my clients are still running access 2000 or a mix with 2000 included which disallows general use of this feature - Access 2000 can't bind a form to an EDITABLE ADO recordset. It would be interesting to discover whether using ADO would speed up a database application as the number of users rise. If you think about it, Access has to go through all of the connections discovering whether they might need to update data. At one client, I work "offline" much of the time, mapping local directories to a drive letter for testing, then mapping network shares to that same drive letter for live access to data. When I am offline I get immediate opening of very complex forms. When working live it can require seconds to open the same form. If there are a hundred active connections per user (combos, lists, forms, subforms etc), times 40 users that is a lot of connections for Jet to wade through. Imagine just making all of the combos bound to disconnected ADO recordsets. That would drop the active connections at least by half, probably more like 80%. I have a billing database here at my office that I will spend some time this morning playing with this stuff and see what I see. However I believe there are others on the list who already do this and could help us figure out how it is done. 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 Max Wanadoo Sent: Wednesday, March 05, 2008 8:00 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Error 3048 Cannot open any more databases Well, I never knew that. Learn something every day. Do you have to tell ADO to disconnect or does it do it automatically. If auto, then do you assume it is closed in all cases and re-open it to do something with it or do you test it (somehow) to see if it is disconnected? Thanks Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, March 05, 2008 12:15 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Error 3048 Cannot open any more databases Max, When you run a normal query in a combo or list or form etc. that is handled by JET as a normal DAO recordset. There is a fixed number of such recordsets available to your application, the number being up somewhere around 2000, which sounds like a lot but... At any rate, in later versions of Access, access allows you to manually create ADO recordsets and bind things like combos, lists and forms to those recordsets. ADO can disconnect once it has pulled the data, whereas DAO (to my knowledge) does not have that capability. IOW ADO can actually close its connection to the database after pulling its data. For combos this is not an issue, but for forms it creates issues where you have to make sure that the data that you pulled from has not changed if you are going to write your own changes back. 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 Max Wanadoo Sent: Wednesday, March 05, 2008 4:33 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Error 3048 Cannot open any more databases John, What do you mean by "disconnected" recordsets? Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, March 05, 2008 3:20 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Error 3048 Cannot open any more databases Yup! If you are using Access XP or above, look at binding all combos and lists to disconnected ADO recordsets. That will help immensely all by itself. After that you will probably need to dive into the dark arts of ADO disconnected recordsets for the form as well. As Charlotte said, WANS are considered a no-no for bound forms in Access. 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: Tuesday, March 04, 2008 8:08 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Error 3048 Cannot open any more databases Darryl, This is a highly misleading message, because it really means you have too many connections open. If you are doing things like populating combo boxes with select statements, each one of them is opening a connection. As I recall, lookups in your tables could do that as well. Access was NOT meant for WAN use, and to make it even marginally reliable in that context, you have to rewrite the UI to eliminate any unnecessary connections to the back end and use a JIT approach to populating lists, forms, subforms, etc. There have been previous discussions on this in the list, so you might take a stroll through the archives and see what you find. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darryl Collins Sent: Tuesday, March 04, 2008 4:23 PM To: Access Developers discussion and problem solving Subject: [AccessD] Error 3048 Cannot open any more databases Hey folks, Sorry to bug you with this, Having a lot of, ummm, 'fun' with this database I am building. Stand alone, it works great, with 5 or so users it works great, over a WAN with multi users it gets very wobbly and corrupts easily. Decided that it has to be split into FE and BE, which I have done manually and linked up the tables. When the DB opens it populates a listbox with choices for the user as before fine. However when the users selects an option which opens the data-entry form (and associated subforms) I get this lovely error "Error 3048 Cannot open any more databases" on this line sSQL = "SELECT * FROM tbl_FYP_APLID WHERE (((FYPID)=" & lFYPID & ") AND ((tbl_FYP_APLID.APLID)=" & lAPLID & "));" [Forms]![frm_FYP_APLID].RecordSource = sSQL Now I know clearly that I must have too "many databases open", but exactly what the hell does that mean? how did it happen and how can I either 1: increase the amount of DB's I can have open, or close down some of the offending databases? The only clue I have found online is if you don't SET your delcared CurrentDB to NOTHING when you are done with it, But the code in this workbook doesn't work like that at all and the modules that do use SET current DB, does set them to nothing when finished. Most confusing. Can anyone shed some light on this. Sorry about all the questions - working under lot of pressure and learning on the fly. Educational for sure, but I am getting through more and more scotch in the evening!! :) Darryl. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at Marlow.com Wed Mar 5 14:54:27 2008 From: DWUTKA at Marlow.com (Drew Wutka) Date: Wed, 5 Mar 2008 14:54:27 -0600 Subject: [AccessD] Creating a Login form & check PW...how? In-Reply-To: <47CEAD90.167F.006B.0@niagaracounty.com> Message-ID: Just curious, why not use their NT accounts, if you are on a domain, they have already supplied their username and password. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Clark Sent: Wednesday, March 05, 2008 1:26 PM To: Access Developers discussion and problem solving Subject: [AccessD] Creating a Login form & check PW...how? Easy one for y'all...(A03 by the way) I'm trying to add a login screen to a current db, so that I can divide users into three groups. Depending on your group, different buttons will be enabled/disabled. So far I've got a table (tblUsr) where I've got the individual users...txtUsrID, txtPW, txtSecLevel. I have a form w/they can type in their ID and PW, but I'm having trouble figuring out how to check that they have entered the correct PW. I figured this would be easy enough, and I thought I did it before, but I'm struggling here. Thanks! JClark PS...I haven't been out here much, because my programming duties were scant, but I've been assigned a couple more programs, so I'll probably be a pain again, until I get my wings back ;o) John W. Clark Computer Programmer Niagara County Central Data Processing -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From fhtapia at gmail.com Wed Mar 5 15:19:17 2008 From: fhtapia at gmail.com (Francisco Tapia) Date: Wed, 5 Mar 2008 13:19:17 -0800 Subject: [AccessD] [ACCESS-L] Importing an XML file In-Reply-To: <011901c87efe$48c3e5d0$cee193d8@intel> References: <011901c87efe$48c3e5d0$cee193d8@intel> Message-ID: Gary, That was the answer. I used your XSL and imported into Access w/o any issues. I want to thank you for helping me! I am using Access2003, and was able to import directly from the XML w/ The XSL as you provided. :) -- Francisco On Wed, Mar 5, 2008 at 12:19 PM, Gary Walter wrote: > ----- Original Message ----- > From: "Francisco Tapia" > To: > Sent: Tuesday, March 04, 2008 6:31 PM > Subject: Importing an XML file > > > >I have an XML file that looks like this: > > > > > > TEST > > 5551231212 > > 300122598 > > SvcTech1 > > Yes > > Yes > > Yes > > Test > > > > > > Test21 > > 5551231212 > > 300120902 > > SvcTech2 > > Yes > > Yes > > No > > Test > > > > > > Test3 > > 5551231212 > > 300121480 > > SvcTech3 > > Yes > > Yes > > Yes > > No Comment > > > > > > > > > > I'd like to import this XML to a table in Access table that reads: > > Dealer_name > > Phone > > CallNo > > ServiceTech_Name > > Question1 > > Question2 > > Question3 > > Question4 > > > > there are so many tangents, but I will try to demonstrate > a method I have used before.. > > 1) create a transform file ("Answer2Access.xsl") > {copy following into Notepad and save to name above} > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > 2) I created a subroutine which would use transform > to create a new xml file (which will then import correctly). > > Public Sub XML_TransformFile(pXMLPath As String, _ > pXSLPath As String, _ > pNewXMLPath As String) > On Error GoTo Proc_Error > 'pXMLPath is full path to xml file, i.e., > ' "C:\Answers.xml" > ' > 'pXSLPath is full path to xsl file, i.e., > ' "C:\Answer2Access.xsl" > ' > 'pNewXMLPath is full path to tranformed xml file, i.e., > ' "C:\NewAnswers.xml" > ' > 'so, in Immediate Window, an example call might be > ' > 'XML_TransformFile "C:\Answers.xml", "C:\Answer2Access.xsl", > "C:\NewAnswers.xml" > ' > Dim oXMLDoc As MSXML2.DOMDocument30 > Dim oXSLT As MSXML2.DOMDocument30 > > Dim strXML As String > Dim hFile As Long > > > Set oXMLDoc = New MSXML2.DOMDocument30 > Set oXSLT = New MSXML2.DOMDocument30 > > oXMLDoc.async = False > oXSLT.async = False > > > 'Open the xml document > If oXMLDoc.Load(pXMLPath) = False Then > MsgBox "Could not load '" & pXMLPath & ".'" > GoTo Proc_Exit > End If > > 'Open the xsl document > If oXSLT.Load(pXSLPath) = False Then > MsgBox "Could not load '" & pXSLPath & ".'" > GoTo Proc_Exit > End If > > strXML = oXMLDoc.transformNode(oXSLT) > strXML = Replace(strXML, "utf-16", "utf-8", 1, -1, vbTextCompare) > > 'save to file > > 'Get a new file handle > hFile = FreeFile > > 'Open the pNewXMLPath file to write the transformed xml > Open pNewXMLPath For Binary Access Write As #hFile > > 'write collected lines to file > Put #hFile, 1, strXML > > ' done so close file. > Close #hFile > > MsgBox "Successfully converted xml file." > > Proc_Exit: > Reset > Exit Sub > > Proc_Error: > MsgBox Err.Description > Resume Proc_Exit > End Sub > > 3) now just import your new xml file > > File/Get External Data/Import... > > NOTE: I know SO LITTLE about all this! > This is just about all I know -- this was the > way I did this for a situation like you have. > There may be (probably are) better way(s). > > This will not work in Win2K/Access2K. Does work > in WinXP/AccessXP though (and I assume later versions). > > good luck, > > gary > > -------------------------------------------------------------------------- > The ACCESS-L list is hosted on a Windows(R) 2000 Server running L-Soft > international's LISTSERV(R) software. For subscription/signoff info > and archives, see http://peach.ease.lsoft.com/archives/access-l.html . > COPYRIGHT INFO: > http://peach.ease.lsoft.com/scripts/wa.exe?SHOWTPL=COPYRIGHT&L=ACCESS-L > > -- -Francisco http://sqlthis.blogspot.com | Tsql and More... From markamatte at hotmail.com Wed Mar 5 15:22:41 2008 From: markamatte at hotmail.com (Mark A Matte) Date: Wed, 5 Mar 2008 21:22:41 +0000 Subject: [AccessD] Creating a Login form & check PW...how? In-Reply-To: <47CEAD90.167F.006B.0@niagaracounty.com> References: <29f585dd0803031407g20c20a59j953b286deadd69ae@mail.gmail.com> <47CEAD90.167F.006B.0@niagaracounty.com> Message-ID: John, Some of my current DBs don't even prompt for Username and PW anymore. I maintain a table that has Username/DisplayName/Permissions...when someone opens the db...I grab their windows username...check against the table...and grant necessary permissions. If their ID is not in the table...the DB just closes. BUT...be carefull...first time I used this configuration...I forgot to create my own account with 'admin' permissions...and locked myself out. Good Luck, Mark A. Matte > Date: Wed, 5 Mar 2008 14:26:27 -0500 > From: John.Clark at niagaracounty.com > To: accessd at databaseadvisors.com > Subject: [AccessD] Creating a Login form & check PW...how? > > Easy one for y'all...(A03 by the way) > > I'm trying to add a login screen to a current db, so that I can divide users into three groups. Depending on your group, different buttons will be enabled/disabled. > > So far I've got a table (tblUsr) where I've got the individual users...txtUsrID, txtPW, txtSecLevel. I have a form w/they can type in their ID and PW, but I'm having trouble figuring out how to check that they have entered the correct PW. > > I figured this would be easy enough, and I thought I did it before, but I'm struggling here. > > Thanks! > JClark > > PS...I haven't been out here much, because my programming duties were scant, but I've been assigned a couple more programs, so I'll probably be a pain again, until I get my wings back ;o) > > > > > John W. Clark > Computer Programmer > Niagara County > Central Data Processing > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com _________________________________________________________________ Need to know the score, the latest news, or you need your Hotmail?-get your "fix". http://www.msnmobilefix.com/Default.aspx From Darryl.Collins at coles.com.au Wed Mar 5 17:07:11 2008 From: Darryl.Collins at coles.com.au (Darryl Collins) Date: Thu, 6 Mar 2008 10:07:11 +1100 Subject: [AccessD] Error 3048 Cannot open any more databases Message-ID: <49DFE57FB126044B8A8B934E7AEA09ED09FD7027@WPEXCH05.colesmyer.ad.cmltd.net.au> Thanks to everyone for their feedback and input on this. I love this list and how sometimes a really interesting and suprising thread can pop up. I have learnt more from you folks in the past couple of days that I would in a week in some corporate provided course. Great stuff! Regards Darryl. This email and any attachments may contain privileged and confidential information and are intended for the named addressee only. If you have received this e-mail in error, please notify the sender and delete this e-mail immediately. Any confidentiality, privilege or copyright is not waived or lost because this e-mail has been sent to you in error. It is your responsibility to check this e-mail and any attachments for viruses. No warranty is made that this material is free from computer virus or any other defect or error. Any loss/damage incurred by using this material is not the sender's responsibility. The sender's entire liability will be limited to resupplying the material. From newsgrps at dalyn.co.nz Wed Mar 5 20:44:55 2008 From: newsgrps at dalyn.co.nz (David Emerson) Date: Thu, 06 Mar 2008 15:44:55 +1300 Subject: [AccessD] CrossTab Form Message-ID: <20080306024419.GKVO17371.fep04.xtra.co.nz@Dalyn.dalyn.co.nz> I have an Access XP form (from a legacy database) that is based on a crosstab query. Across the top are a list of products. Down the first column are a list of headings: Opening Balance, Stock In, Total Stock, Stock Out, Stock Out Percentage, Closing Balance etc (there are 25 rows in total). The data is gathered from a number of other tables and queries which are linked only by the product code and are in different formats, and then placed in a temporary table for the crosstab. The number of fields is consistent - there will always be the same products, and the same headings (therefore the use of a cross tab is not for flexibility of changing products, but to get the data into the required format). There are 16 products and 25 headings, therefore 400 fields of data. Most of the rows are standard numbers but some are percentages. The problem is that all rows are formatted the same way with no decimal places. This means that the percentage rows only show whole percentages (the numbers are calculated so that 2.75% is stored as 2.75 and shows as 3). What I am looking for is a simple solution where I can format each row of data on the continuous form to suit the type of data. The sledgehammer way is to create a table with one row and a text box for all 400 fields. This would then be used on a form which is set out in a row format. I suggested that the form be turned around so that the products are down the side and the headings across the top (in standard Access fashion) but this is not the format the client wants. Is there any easy way around this? Regards David Emerson Dalyn Software Ltd Wellington, New Zealand From keith at williamson5.name Wed Mar 5 20:53:47 2008 From: keith at williamson5.name (Keith Williamson) Date: Wed, 5 Mar 2008 21:53:47 -0500 Subject: [AccessD] DAO350.dll error In-Reply-To: Message-ID: <003801c87f35$4fd91480$c401a8c0@KeithHome> Hey guys, After years of using this application, suddenly I am getting an error: "Your project contains a missing or broken reference to the file DAO350.dll" Any ideas on what gives?? Thanks, Keith Williamson From Darryl.Collins at coles.com.au Wed Mar 5 21:11:17 2008 From: Darryl.Collins at coles.com.au (Darryl Collins) Date: Thu, 6 Mar 2008 14:11:17 +1100 Subject: [AccessD] DAO350.dll error Message-ID: <49DFE57FB126044B8A8B934E7AEA09ED09FD7031@WPEXCH05.colesmyer.ad.cmltd.net.au> Hey Keith, That damn file was the bane of my life a couple of weeks back. If you can get into the registry try this '------------------------------------------------------------------------------------ 1. Click Start, and then click Run. 2. In the Open box, type regsvr.exe. 3. Re-register DAO350.dll. NOTE: You can obtain a copy of DAO350.dll at the following FTP address: ftp://ftp.microsoft.com/softlib/mslfiles/ To register DAO350.dll, follow these steps: a. Click Start, and then click Run. b. In the Open box, type Regsvr32.exe C:\progra~1\common~1\micros~1\dao\dao350.dll c. Click OK. ' ---------------------------------------------------------------------------- If like me you cannot get access to the registry I found the code below that worked around this for me. Actually, I am still grateful for this bit of code - really did save my butt! (watch for wrap out of the email). '----------------------------------------------------------------------------------------------------------------------- Option Compare Database Option Explicit 'http://www.trigeminal.com/usenet/usenet026.asp 'http://www.trigeminal.com/code/RegisterDao.bas Private Const HKEY_LOCAL_MACHINE = &H80000002 Public Const KEY_QUERY_VALUE = &H1 Public Const ERROR_SUCCESS = 0& Public Const MAX_PATH = 260 Public Const S_OK = &H0 Private Declare Function RegCloseKey Lib "advapi32.dll" (ByVal hKey As Long) As Long Private Declare Function RegOpenKeyEx Lib "advapi32.dll" Alias "RegOpenKeyExA" (ByVal hKey As Long, ByVal lpSubKey As String, ByVal ulOptions As Long, ByVal samDesired As Long, phkResult As Long) As Long Private Declare Function RegQueryValueEx Lib "advapi32.dll" Alias "RegQueryValueExA" (ByVal hKey As Long, ByVal lpValueName As String, ByVal lpReserved As Long, lpType As Long, lpData As Any, lpcbData As Long) As Long Private Declare Function LoadLibrary Lib "kernel32" Alias "LoadLibraryA" (ByVal lpLibFileName As String) As Long Private Declare Function FreeLibrary Lib "kernel32" (ByVal hLibModule As Long) As Long Private Declare Function RegDaoDll Lib "dao360.dll" Alias "DllRegisterServer" () As Long Private Const REGKEY As String = "SOFTWARE\Microsoft\Windows\CurrentVersion" Private Const REGVAL As String = "CommonFilesDir" Private Const DLLLOCATION As String = "\Microsoft Shared\DAO\dao360.dll" Public Function DaoReg() As Boolean Dim hKey As Long Dim stName As String Dim cb As Long Dim hMod As Long ' First, find DAO. Ordinarily we could call the shell32/shfolder ' functions to find the location of the "Common Files" folder, ' but this will not work on Windows 95. So, go right to the ' registry to find: ' $(PROGRAM FILES)\$(COMMON FILES)\Microsoft Shared\DAO If (ERROR_SUCCESS = RegOpenKeyEx(HKEY_LOCAL_MACHINE, REGKEY, 0, KEY_QUERY_VALUE, hKey)) Then cb = MAX_PATH stName = String$(cb, vbNullChar) If (ERROR_SUCCESS = RegQueryValueEx(hKey, REGVAL, 0&, ByVal 0&, ByVal stName, cb)) Then ' Ok, now build the full DLL path stName = StFromSz(stName) & DLLLOCATION ' Load DAO so we can try to register it hMod = LoadLibrary(stName) If hMod Then ' Find out if the registration works DaoReg = (RegDaoDll() = S_OK) Call FreeLibrary(hMod) End If End If Call RegCloseKey(hKey) End If End Function '------------------------------------------------------------ ' StFromSz ' ' Find the first vbNullChar in a string, and return ' everything prior to that character. Extremely ' useful when combined with the Windows API function calls. '------------------------------------------------------------ Public Function StFromSz(ByVal sz As String) As String Dim ich As Integer ich = InStr(sz, vbNullChar) Select Case ich ' It's best to put the most likely case first. Case Is > 1 ' Found in the string, so return the portion ' up to the null character. StFromSz = Left$(sz, ich - 1) Case 0 ' Not found at all, so just ' return the original value. StFromSz = sz Case 1 ' Found at the first position, so return an empty string. StFromSz = vbNullString End Select End Function '----------------------------------------------------------------------------------------------------------- -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Keith Williamson Sent: Thursday, 6 March 2008 1:54 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] DAO350.dll error Hey guys, After years of using this application, suddenly I am getting an error: "Your project contains a missing or broken reference to the file DAO350.dll" Any ideas on what gives?? Thanks, Keith Williamson -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This email and any attachments may contain privileged and confidential information and are intended for the named addressee only. If you have received this e-mail in error, please notify the sender and delete this e-mail immediately. Any confidentiality, privilege or copyright is not waived or lost because this e-mail has been sent to you in error. It is your responsibility to check this e-mail and any attachments for viruses. No warranty is made that this material is free from computer virus or any other defect or error. Any loss/damage incurred by using this material is not the sender's responsibility. The sender's entire liability will be limited to resupplying the material. From Darryl.Collins at coles.com.au Wed Mar 5 21:13:52 2008 From: Darryl.Collins at coles.com.au (Darryl Collins) Date: Thu, 6 Mar 2008 14:13:52 +1100 Subject: [AccessD] CrossTab Form Message-ID: <49DFE57FB126044B8A8B934E7AEA09ED09FD7032@WPEXCH05.colesmyer.ad.cmltd.net.au> This is probably not the answer you are looking for, but if are willing to use Excel for Pivot table work you will get a much better result. However that may not suit your, or your client's useability requirements. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of David Emerson Sent: Thursday, 6 March 2008 1:45 PM To: accessd at databaseadvisors.com Subject: [AccessD] CrossTab Form I have an Access XP form (from a legacy database) that is based on a crosstab query. Across the top are a list of products. Down the first column are a list of headings: Opening Balance, Stock In, Total Stock, Stock Out, Stock Out Percentage, Closing Balance etc (there are 25 rows in total). The data is gathered from a number of other tables and queries which are linked only by the product code and are in different formats, and then placed in a temporary table for the crosstab. The number of fields is consistent - there will always be the same products, and the same headings (therefore the use of a cross tab is not for flexibility of changing products, but to get the data into the required format). There are 16 products and 25 headings, therefore 400 fields of data. Most of the rows are standard numbers but some are percentages. The problem is that all rows are formatted the same way with no decimal places. This means that the percentage rows only show whole percentages (the numbers are calculated so that 2.75% is stored as 2.75 and shows as 3). What I am looking for is a simple solution where I can format each row of data on the continuous form to suit the type of data. The sledgehammer way is to create a table with one row and a text box for all 400 fields. This would then be used on a form which is set out in a row format. I suggested that the form be turned around so that the products are down the side and the headings across the top (in standard Access fashion) but this is not the format the client wants. Is there any easy way around this? Regards David Emerson Dalyn Software Ltd Wellington, New Zealand -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This email and any attachments may contain privileged and confidential information and are intended for the named addressee only. If you have received this e-mail in error, please notify the sender and delete this e-mail immediately. Any confidentiality, privilege or copyright is not waived or lost because this e-mail has been sent to you in error. It is your responsibility to check this e-mail and any attachments for viruses. No warranty is made that this material is free from computer virus or any other defect or error. Any loss/damage incurred by using this material is not the sender's responsibility. The sender's entire liability will be limited to resupplying the material. From newsgrps at dalyn.co.nz Wed Mar 5 21:20:10 2008 From: newsgrps at dalyn.co.nz (David Emerson) Date: Thu, 06 Mar 2008 16:20:10 +1300 Subject: [AccessD] DAO350.dll error In-Reply-To: <003801c87f35$4fd91480$c401a8c0@KeithHome> References: <003801c87f35$4fd91480$c401a8c0@KeithHome> Message-ID: <20080306031947.JCBD17371.fep04.xtra.co.nz@Dalyn.dalyn.co.nz> Keith, Have you checked the references in VBA? Regards David At 6/03/2008, you wrote: >Hey guys, > >After years of using this application, suddenly I am getting an error: > >"Your project contains a missing or broken reference to the file DAO350.dll" > >Any ideas on what gives?? > >Thanks, > >Keith Williamson > > > > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From joe at anamericanjoe.us Wed Mar 5 21:26:07 2008 From: joe at anamericanjoe.us (Joe Hecht) Date: Wed, 5 Mar 2008 19:26:07 -0800 Subject: [AccessD] Code Help Please Message-ID: <000001c87f39$d2b01e40$6401a8c0@ACER2G> The following code is supposed to make sure there is an invoice number in the text box before previewing report. When I run it I get an application error msg box saying object required. What have I forgotten now, On Error GoTo Err_cmdPreviewPackList_Click Dim cancel As Boolean Dim lngRetval As Long If Me.txtQBInvoice Is Null Then lngRetval = MsgBox( _ "Please Select a Quick Books Invoice Number" & vbCrLf & "Before Running Report.", _ vbOKOnly + vbExclamation + vbDefaultButton2, _ "No QB Invoice Number Listed") Select Case lngRetval Case vbOK cancel = True End Select End If TIA Joe Hecht Joe at anamericanjoe.us From newsgrps at dalyn.co.nz Wed Mar 5 21:31:07 2008 From: newsgrps at dalyn.co.nz (David Emerson) Date: Thu, 06 Mar 2008 16:31:07 +1300 Subject: [AccessD] CrossTab Form In-Reply-To: <49DFE57FB126044B8A8B934E7AEA09ED09FD7032@WPEXCH05.colesmye r.ad.cmltd.net.au> References: <49DFE57FB126044B8A8B934E7AEA09ED09FD7032@WPEXCH05.colesmyer.ad.cmltd.net.au> Message-ID: <20080306033045.ZCPF9910.fep05.xtra.co.nz@Dalyn.dalyn.co.nz> Thanks for the suggestion, but the client is moving away from Excel for these reports. David At 6/03/2008, you wrote: >This is probably not the answer you are looking for, but if are >willing to use Excel for Pivot table work you will get a much better >result. However that may not suit your, or your client's useability >requirements. > > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of David Emerson >Sent: Thursday, 6 March 2008 1:45 PM >To: accessd at databaseadvisors.com >Subject: [AccessD] CrossTab Form > > >I have an Access XP form (from a legacy database) that is based on a >crosstab query. Across the top are a list of products. Down the >first column are a list of headings: Opening Balance, Stock In, Total >Stock, Stock Out, Stock Out Percentage, Closing Balance etc (there >are 25 rows in total). The data is gathered from a number of other >tables and queries which are linked only by the product code and are >in different formats, and then placed in a temporary table for the >crosstab. The number of fields is consistent - there will always be >the same products, and the same headings (therefore the use of a >cross tab is not for flexibility of changing products, but to get the >data into the required format). There are 16 products and 25 >headings, therefore 400 fields of data. > >Most of the rows are standard numbers but some are percentages. The >problem is that all rows are formatted the same way with no decimal >places. This means that the percentage rows only show whole >percentages (the numbers are calculated so that 2.75% is stored as >2.75 and shows as 3). What I am looking for is a simple solution >where I can format each row of data on the continuous form to suit >the type of data. > >The sledgehammer way is to create a table with one row and a text box >for all 400 fields. This would then be used on a form which is set >out in a row format. > >I suggested that the form be turned around so that the products are >down the side and the headings across the top (in standard Access >fashion) but this is not the format the client wants. > >Is there any easy way around this? > >Regards > >David Emerson >Dalyn Software Ltd >Wellington, New Zealand > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >This email and any attachments may contain privileged and >confidential information and are intended for the named addressee >only. If you have received this e-mail in error, please notify the >sender and delete this e-mail immediately. Any confidentiality, >privilege or copyright is not waived or lost because this e-mail has >been sent to you in error. It is your responsibility to check this >e-mail and any attachments for viruses. No warranty is made that >this material is free from computer virus or any other defect or >error. Any loss/damage incurred by using this material is not the >sender's responsibility. The sender's entire liability will be >limited to resupplying the material. > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From newsgrps at dalyn.co.nz Wed Mar 5 21:46:22 2008 From: newsgrps at dalyn.co.nz (David Emerson) Date: Thu, 06 Mar 2008 16:46:22 +1300 Subject: [AccessD] Code Help Please In-Reply-To: <000001c87f39$d2b01e40$6401a8c0@ACER2G> References: <000001c87f39$d2b01e40$6401a8c0@ACER2G> Message-ID: <20080306034614.JOZN18083.fep03.xtra.co.nz@Dalyn.dalyn.co.nz> Joe, Try replacing the Me.txtQBInvoice with Me!txtQBInvoice Regards David At 6/03/2008, you wrote: >The following code is supposed to make sure there is an invoice number in >the text box before previewing report. > > > >When I run it I get an application error msg box saying object required. > > > >What have I forgotten now, > > > >On Error GoTo Err_cmdPreviewPackList_Click > > Dim cancel As Boolean > > Dim lngRetval As Long > > > > > > > > If Me.txtQBInvoice Is Null Then > > lngRetval = MsgBox( _ > > "Please Select a Quick Books Invoice Number" & vbCrLf & "Before >Running Report.", _ > > vbOKOnly + vbExclamation + vbDefaultButton2, _ > > "No QB Invoice Number Listed") > > > > > > > > Select Case lngRetval > > Case vbOK > > cancel = True > > > > > > End Select > > End If > > > >TIA > > > >Joe Hecht > >Joe at anamericanjoe.us > > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From joe at anamericanjoe.us Wed Mar 5 21:50:07 2008 From: joe at anamericanjoe.us (Joe Hecht) Date: Wed, 5 Mar 2008 19:50:07 -0800 Subject: [AccessD] Code Help Please In-Reply-To: <20080306034614.JOZN18083.fep03.xtra.co.nz@Dalyn.dalyn.co.nz> References: <000001c87f39$d2b01e40$6401a8c0@ACER2G> <20080306034614.JOZN18083.fep03.xtra.co.nz@Dalyn.dalyn.co.nz> Message-ID: <000501c87f3d$2bc40b60$6401a8c0@ACER2G> Thanks David but that did not do it. Joe Hecht Joe at anamericanjoe.us -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David Emerson Sent: Wednesday, March 05, 2008 7:46 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Code Help Please Joe, Try replacing the Me.txtQBInvoice with Me!txtQBInvoice Regards David Website: http://www.databaseadvisors.com From newsgrps at dalyn.co.nz Wed Mar 5 22:20:41 2008 From: newsgrps at dalyn.co.nz (David Emerson) Date: Thu, 06 Mar 2008 17:20:41 +1300 Subject: [AccessD] Code Help Please In-Reply-To: <000501c87f3d$2bc40b60$6401a8c0@ACER2G> References: <000001c87f39$d2b01e40$6401a8c0@ACER2G> <20080306034614.JOZN18083.fep03.xtra.co.nz@Dalyn.dalyn.co.nz> <000501c87f3d$2bc40b60$6401a8c0@ACER2G> Message-ID: <20080306042010.LQLC18083.fep03.xtra.co.nz@Dalyn.dalyn.co.nz> Have you found out which line is causing the problem? If not put a breakpoint on the "If Me.txtQBInvoice Is Null Then" line, then use F8 to step into each line until you find the problem. David At 6/03/2008, you wrote: >Thanks David but that did not do it. > >Joe Hecht >Joe at anamericanjoe.us >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David Emerson >Sent: Wednesday, March 05, 2008 7:46 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Code Help Please > >Joe, > >Try replacing the Me.txtQBInvoice with Me!txtQBInvoice > >Regards > >David > >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From darren at activebilling.com.au Wed Mar 5 22:23:46 2008 From: darren at activebilling.com.au (Darren D) Date: Thu, 6 Mar 2008 15:23:46 +1100 Subject: [AccessD] Code Help Please In-Reply-To: <000001c87f39$d2b01e40$6401a8c0@ACER2G> Message-ID: <200803060423.m264NfBi001214@databaseadvisors.com> Hi joe When I trap for Null I usually use something like.. If isnull(Me.txtQBInvoice) then blah blah DD -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Thursday, 6 March 2008 2:26 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Code Help Please The following code is supposed to make sure there is an invoice number in the text box before previewing report. When I run it I get an application error msg box saying object required. What have I forgotten now, On Error GoTo Err_cmdPreviewPackList_Click Dim cancel As Boolean Dim lngRetval As Long If Me.txtQBInvoice Is Null Then lngRetval = MsgBox( _ "Please Select a Quick Books Invoice Number" & vbCrLf & "Before Running Report.", _ vbOKOnly + vbExclamation + vbDefaultButton2, _ "No QB Invoice Number Listed") Select Case lngRetval Case vbOK cancel = True End Select End If TIA Joe Hecht Joe at anamericanjoe.us -- 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.5.516 / Virus Database: 269.21.4/1310 - Release Date: 04/03/2008 8:35 AM No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.21.4/1310 - Release Date: 04/03/2008 8:35 AM From max.wanadoo at gmail.com Thu Mar 6 02:35:51 2008 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Thu, 6 Mar 2008 08:35:51 -0000 Subject: [AccessD] Code Help Please In-Reply-To: <000001c87f39$d2b01e40$6401a8c0@ACER2G> References: <000001c87f39$d2b01e40$6401a8c0@ACER2G> Message-ID: <001a01c87f65$165bab70$8119fea9@LTVM> Hi Joe, You currently are using the dot notation (me.txtQBInvoice). This relates to an object eg: a property object. To refer to a control value, use the pling (!) notation as per examples below. Your code seems to indicate that selection of a QB Invoice is done via a combo or list box. If this is the case, then your are probably using a numbered key. If so, then the test should be for zero and not for null. If it is a value which is keyed in then you need to decide if it is set up for a number or a string and act accordingly. In any case, I would change the code to something like this. if nz(me!txtQBInvoice,0) = 0 then. or if nz(me!txtQBInvoice,"")="" then depending on if you are expecting a number or string. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Thursday, March 06, 2008 3:26 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Code Help Please The following code is supposed to make sure there is an invoice number in the text box before previewing report. When I run it I get an application error msg box saying object required. What have I forgotten now, On Error GoTo Err_cmdPreviewPackList_Click Dim cancel As Boolean Dim lngRetval As Long If Me.txtQBInvoice Is Null Then lngRetval = MsgBox( _ "Please Select a Quick Books Invoice Number" & vbCrLf & "Before Running Report.", _ vbOKOnly + vbExclamation + vbDefaultButton2, _ "No QB Invoice Number Listed") Select Case lngRetval Case vbOK cancel = True End Select End If TIA Joe Hecht Joe at anamericanjoe.us -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From joe at anamericanjoe.us Thu Mar 6 08:59:00 2008 From: joe at anamericanjoe.us (Joe Hecht) Date: Thu, 6 Mar 2008 06:59:00 -0800 Subject: [AccessD] Code Help Please In-Reply-To: <001a01c87f65$165bab70$8119fea9@LTVM> References: <000001c87f39$d2b01e40$6401a8c0@ACER2G> <001a01c87f65$165bab70$8119fea9@LTVM> Message-ID: <000601c87f9a$9d4d2930$6401a8c0@ACER2G> Thanks Max, It was the string NZ that worked Joe Hecht Joe at anamericanjoe.us -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Thursday, March 06, 2008 12:36 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Code Help Please Hi Joe, You currently are using the dot notation (me.txtQBInvoice). This relates to an object eg: a property object. To refer to a control value, use the pling (!) notation as per examples below. Your code seems to indicate that selection of a QB Invoice is done via a combo or list box. If this is the case, then your are probably using a numbered key. If so, then the test should be for zero and not for null. If it is a value which is keyed in then you need to decide if it is set up for a number or a string and act accordingly. In any case, I would change the code to something like this. if nz(me!txtQBInvoice,0) = 0 then. or if nz(me!txtQBInvoice,"")="" then depending on if you are expecting a number or string. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Thursday, March 06, 2008 3:26 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Code Help Please The following code is supposed to make sure there is an invoice number in the text box before previewing report. When I run it I get an application error msg box saying object required. What have I forgotten now, On Error GoTo Err_cmdPreviewPackList_Click Dim cancel As Boolean Dim lngRetval As Long If Me.txtQBInvoice Is Null Then lngRetval = MsgBox( _ "Please Select a Quick Books Invoice Number" & vbCrLf & "Before Running Report.", _ vbOKOnly + vbExclamation + vbDefaultButton2, _ "No QB Invoice Number Listed") Select Case lngRetval Case vbOK cancel = True End Select End If TIA Joe Hecht Joe at anamericanjoe.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 Patricia.O'Connor at otda.state.ny.us Thu Mar 6 08:56:04 2008 From: Patricia.O'Connor at otda.state.ny.us (O'Connor, Patricia (OTDA)) Date: Thu, 6 Mar 2008 09:56:04 -0500 Subject: [AccessD] Code Help Please In-Reply-To: <000001c87f39$d2b01e40$6401a8c0@ACER2G> References: <000001c87f39$d2b01e40$6401a8c0@ACER2G> Message-ID: <01DBAB52E30A9A4AB3D94EF8029EDBE8021BB2B2@EXCNYSM0A1AI.nysemail.nyenet> I would make sure the TXT box on the form has a different name than the CONTROL SOURCE So if txtQBInvoice is the CONTROL SOURCE Then change the txt box to txtQBInvoiceNbr And change If Me.txtQBInvoice Is Null Then TO If Me.txtQBInvoiceNBR Is Null Then The only other thing I would think of trying is create the txt msg in a string variable and see if it changes things Good luck > On Error GoTo Err_cmdPreviewPackList_Click > > Dim cancel As Boolean > > Dim lngRetval As Long DIM txtMSG as string > > > If Me.txtQBInvoiceNBR Is Null Then txtMSG = "Please Select a Quick Books Invoice Number" & vbCRLF txtMSG = txtMSG & "Before Running Report." > lngRetval = MsgBox(txtMSG, vbOKOnly + vbExclamation + vbDefaultButton2, "No QB Invoice Number Listed") > > > > ************************************************** * 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 Joe Hecht > Sent: Wednesday, March 05, 2008 10:26 PM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Code Help Please > > The following code is supposed to make sure there is an > invoice number in the text box before previewing report. > > > > When I run it I get an application error msg box saying > object required. > > > > What have I forgotten now, > > > > On Error GoTo Err_cmdPreviewPackList_Click > > Dim cancel As Boolean > > Dim lngRetval As Long > > > > > > > > If Me.txtQBInvoice Is Null Then > > lngRetval = MsgBox( _ > > "Please Select a Quick Books Invoice Number" & vbCrLf & > "Before Running Report.", _ > > vbOKOnly + vbExclamation + vbDefaultButton2, _ > > "No QB Invoice Number Listed") > > > > > > > > Select Case lngRetval > > Case vbOK > > cancel = True > > > > > > End Select > > End If > > > > TIA > > > > Joe Hecht > > Joe at anamericanjoe.us > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From max.wanadoo at gmail.com Thu Mar 6 09:26:21 2008 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Thu, 6 Mar 2008 15:26:21 -0000 Subject: [AccessD] Code Help Please In-Reply-To: <01DBAB52E30A9A4AB3D94EF8029EDBE8021BB2B2@EXCNYSM0A1AI.nysemail.nyenet> References: <000001c87f39$d2b01e40$6401a8c0@ACER2G> <01DBAB52E30A9A4AB3D94EF8029EDBE8021BB2B2@EXCNYSM0A1AI.nysemail.nyenet> Message-ID: <003001c87f9e$6f029660$8119fea9@LTVM> Hi Patricia, >>I would make sure the TXT box on the form has a different name than the CONTROL SOURCE Why would you want to do that? I know you can, but there is absolutely no point that I can see. I actually make sure that all my bound controls have the SAME NAME as the datasource so that I actually KNOW what is being updated when I read my code. Am I missing something here? Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of O'Connor, Patricia (OTDA) Sent: Thursday, March 06, 2008 2:56 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Code Help Please I would make sure the TXT box on the form has a different name than the CONTROL SOURCE So if txtQBInvoice is the CONTROL SOURCE Then change the txt box to txtQBInvoiceNbr And change If Me.txtQBInvoice Is Null Then TO If Me.txtQBInvoiceNBR Is Null Then The only other thing I would think of trying is create the txt msg in a string variable and see if it changes things Good luck > On Error GoTo Err_cmdPreviewPackList_Click > > Dim cancel As Boolean > > Dim lngRetval As Long DIM txtMSG as string > > > If Me.txtQBInvoiceNBR Is Null Then txtMSG = "Please Select a Quick Books Invoice Number" & vbCRLF txtMSG = txtMSG & "Before Running Report." > lngRetval = MsgBox(txtMSG, vbOKOnly + vbExclamation + vbDefaultButton2, "No QB Invoice Number Listed") > > > > ************************************************** * 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 Joe Hecht > Sent: Wednesday, March 05, 2008 10:26 PM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Code Help Please > > The following code is supposed to make sure there is an invoice number > in the text box before previewing report. > > > > When I run it I get an application error msg box saying object > required. > > > > What have I forgotten now, > > > > On Error GoTo Err_cmdPreviewPackList_Click > > Dim cancel As Boolean > > Dim lngRetval As Long > > > > > > > > If Me.txtQBInvoice Is Null Then > > lngRetval = MsgBox( _ > > "Please Select a Quick Books Invoice Number" & vbCrLf & "Before > Running Report.", _ > > vbOKOnly + vbExclamation + vbDefaultButton2, _ > > "No QB Invoice Number Listed") > > > > > > > > Select Case lngRetval > > Case vbOK > > cancel = True > > > > > > End Select > > End If > > > > TIA > > > > Joe Hecht > > Joe at anamericanjoe.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 adtp at airtelmail.in Thu Mar 6 09:35:37 2008 From: adtp at airtelmail.in (A.D.Tejpal) Date: Thu, 6 Mar 2008 21:05:37 +0530 Subject: [AccessD] CrossTab Form References: <20080306024419.GKVO17371.fep04.xtra.co.nz@Dalyn.dalyn.co.nz> Message-ID: <004a01c87f9f$ebc0d530$8f7ca27a@personald6374f> David, Apparently, record source of the form is based upon a crosstab table, with 16 columns representing products and 25 rows representing various stages of data. While most of the rows display routine numbers, some rows display percentages. These rows (showing percentages) are not in a separate block but sandwiched amongst normal rows displaying numbers. While using only one text box per column on a bound continuous form, you are seeking to display values in these rows in proper percent format, without disturbing normal display of numbers in other rows. If the presumptions outlined in previous para hold good, action could be considered on the following lines: 1 - For sake of illustration, let T_Crosstab be the name of table having fields RowHdg (text type) for row heading and P_1, P_2, P_3 (number type) for products. 2 - Add two fields named RowNum (number type) and RowType (text type). 3 - Populate the RowNum column with sequential numbers, in the order in which various rows are required to be finally displayed. 4 - Identify percentage type rows by entering a character (say P) in RowType column. For all other rows, leave this column blank (Null). 5 - Use sample query Q_CustomFormat, as given below, as record source for the form. Note - If you are in a position to ensure that incoming values, as appended to table T_Crosstab, are suitably formatted strings, the work-around suggested above would no longer be needed. In that case, all the product fields (P_1, P_2, -- etc) would be of text type. Best wishes, A.D.Tejpal ------------ Q_CustomFormat (Sample query) ================================= SELECT RowHdg, RowNum, P_1, P_2, P_3 FROM T_Crosstab WHERE RowType Is Null UNION ALL SELECT RowHdg, RowNum, Format(P_1, "Percent"), Format(P_2, "Percent"), Format(P_3, "Percent") FROM T_Crosstab WHERE RowType Is Not Null ORDER BY RowNum; ================================= ----- Original Message ----- From: David Emerson To: accessd at databaseadvisors.com Sent: Thursday, March 06, 2008 08:14 Subject: [AccessD] CrossTab Form I have an Access XP form (from a legacy database) that is based on a crosstab query. Across the top are a list of products. Down the first column are a list of headings: Opening Balance, Stock In, Total Stock, Stock Out, Stock Out Percentage, Closing Balance etc (there are 25 rows in total). The data is gathered from a number of other tables and queries which are linked only by the product code and are in different formats, and then placed in a temporary table for the crosstab. The number of fields is consistent - there will always be the same products, and the same headings (therefore the use of a cross tab is not for flexibility of changing products, but to get the data into the required format). There are 16 products and 25 headings, therefore 400 fields of data. Most of the rows are standard numbers but some are percentages. The problem is that all rows are formatted the same way with no decimal places. This means that the percentage rows only show whole percentages (the numbers are calculated so that 2.75% is stored as 2.75 and shows as 3). What I am looking for is a simple solution where I can format each row of data on the continuous form to suit the type of data. The sledgehammer way is to create a table with one row and a text box for all 400 fields. This would then be used on a form which is set out in a row format. I suggested that the form be turned around so that the products are down the side and the headings across the top (in standard Access fashion) but this is not the format the client wants. Is there any easy way around this? Regards David Emerson Dalyn Software Ltd Wellington, New Zealand From fuller.artful at gmail.com Thu Mar 6 09:39:08 2008 From: fuller.artful at gmail.com (Arthur Fuller) Date: Thu, 6 Mar 2008 10:39:08 -0500 Subject: [AccessD] Two questions Message-ID: <29f585dd0803060739ue4dc04fs8d077c16e43fa2fc@mail.gmail.com> 1. How can I set the default size and font for controls I create on a form? I want Arial 10pt and Access keeps offering me Tahoma 8pt. 2. How can I set the text on a tab control Bold? (I know I've done this before but cannot remember how.) TIA, Arthur From John.Clark at niagaracounty.com Thu Mar 6 09:39:01 2008 From: John.Clark at niagaracounty.com (John Clark) Date: Thu, 06 Mar 2008 10:39:01 -0500 Subject: [AccessD] Creating a Login form & check PW...how? In-Reply-To: References: <47CEAD90.167F.006B.0@niagaracounty.com> Message-ID: <47CFC9C3.167F.006B.0@niagaracounty.com> Well, for me, I am on a Novell network. But this actually something I'm working on, for a friend of mine...and I'll probably slip it into mine later...and I really don't know what his plans are. John W. Clark Computer Programmer Niagara County Central Data Processing >>> "Drew Wutka" 3/5/2008 3:54 PM >>> Just curious, why not use their NT accounts, if you are on a domain, they have already supplied their username and password. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Clark Sent: Wednesday, March 05, 2008 1:26 PM To: Access Developers discussion and problem solving Subject: [AccessD] Creating a Login form & check PW...how? Easy one for y'all...(A03 by the way) I'm trying to add a login screen to a current db, so that I can divide users into three groups. Depending on your group, different buttons will be enabled/disabled. So far I've got a table (tblUsr) where I've got the individual users...txtUsrID, txtPW, txtSecLevel. I have a form w/they can type in their ID and PW, but I'm having trouble figuring out how to check that they have entered the correct PW. I figured this would be easy enough, and I thought I did it before, but I'm struggling here. Thanks! JClark PS...I haven't been out here much, because my programming duties were scant, but I've been assigned a couple more programs, so I'll probably be a pain again, until I get my wings back ;o) John W. Clark Computer Programmer Niagara County Central Data Processing -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From joe at anamericanjoe.us Thu Mar 6 09:44:07 2008 From: joe at anamericanjoe.us (Joe Hecht) Date: Thu, 6 Mar 2008 07:44:07 -0800 Subject: [AccessD] Code Help Please In-Reply-To: <003001c87f9e$6f029660$8119fea9@LTVM> References: <000001c87f39$d2b01e40$6401a8c0@ACER2G><01DBAB52E30A9A4AB3D94EF8029EDBE8021BB2B2@EXCNYSM0A1AI.nysemail.nyenet> <003001c87f9e$6f029660$8119fea9@LTVM> Message-ID: <000001c87fa0$eb4f5940$6401a8c0@ACER2G> I think they need to be different names so there is not a circular refrence. I am of to my day job. Thanks all Joe Hecht Joe at anamericanjoe.us -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Thursday, March 06, 2008 7:26 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Code Help Please Hi Patricia, >>I would make sure the TXT box on the form has a different name than the CONTROL SOURCE Why would you want to do that? I know you can, but there is absolutely no point that I can see. I actually make sure that all my bound controls have the SAME NAME as the datasource so that I actually KNOW what is being updated when I read my code. Am I missing something here? Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of O'Connor, Patricia (OTDA) Sent: Thursday, March 06, 2008 2:56 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Code Help Please I would make sure the TXT box on the form has a different name than the CONTROL SOURCE So if txtQBInvoice is the CONTROL SOURCE Then change the txt box to txtQBInvoiceNbr And change If Me.txtQBInvoice Is Null Then TO If Me.txtQBInvoiceNBR Is Null Then The only other thing I would think of trying is create the txt msg in a string variable and see if it changes things Good luck > On Error GoTo Err_cmdPreviewPackList_Click > > Dim cancel As Boolean > > Dim lngRetval As Long DIM txtMSG as string > > > If Me.txtQBInvoiceNBR Is Null Then txtMSG = "Please Select a Quick Books Invoice Number" & vbCRLF txtMSG = txtMSG & "Before Running Report." > lngRetval = MsgBox(txtMSG, vbOKOnly + vbExclamation + vbDefaultButton2, "No QB Invoice Number Listed") > > > > ************************************************** * 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 Joe Hecht > Sent: Wednesday, March 05, 2008 10:26 PM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Code Help Please > > The following code is supposed to make sure there is an invoice number > in the text box before previewing report. > > > > When I run it I get an application error msg box saying object > required. > > > > What have I forgotten now, > > > > On Error GoTo Err_cmdPreviewPackList_Click > > Dim cancel As Boolean > > Dim lngRetval As Long > > > > > > > > If Me.txtQBInvoice Is Null Then > > lngRetval = MsgBox( _ > > "Please Select a Quick Books Invoice Number" & vbCrLf & "Before > Running Report.", _ > > vbOKOnly + vbExclamation + vbDefaultButton2, _ > > "No QB Invoice Number Listed") > > > > > > > > Select Case lngRetval > > Case vbOK > > cancel = True > > > > > > End Select > > End If > > > > TIA > > > > Joe Hecht > > Joe at anamericanjoe.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 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From fuller.artful at gmail.com Thu Mar 6 09:40:45 2008 From: fuller.artful at gmail.com (Arthur Fuller) Date: Thu, 6 Mar 2008 10:40:45 -0500 Subject: [AccessD] Nanosecond Message-ID: <29f585dd0803060740q2c5e40dfn27a13d571e0fa5d6@mail.gmail.com> On the Bold tab text, I found it right after clicking Send. A. From cfoust at infostatsystems.com Thu Mar 6 10:27:26 2008 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 6 Mar 2008 08:27:26 -0800 Subject: [AccessD] Two questions In-Reply-To: <29f585dd0803060739ue4dc04fs8d077c16e43fa2fc@mail.gmail.com> References: <29f585dd0803060739ue4dc04fs8d077c16e43fa2fc@mail.gmail.com> Message-ID: Are you using 2007? In that case, I'm clueless. In earlier versions you could create a template form named Normal and the objects on it would have the properties used as defaults for new forms. Alternatively, you could take an existing form and make it the template by entering it in the Forms/Reports tab of the Options dialog. You can also set control defaults from the menu by selecting the control and then selecting Set Control Defaults from the Format menu. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Thursday, March 06, 2008 7:39 AM To: Access Developers discussion and problem solving Subject: [AccessD] Two questions 1. How can I set the default size and font for controls I create on a form? I want Arial 10pt and Access keeps offering me Tahoma 8pt. 2. How can I set the text on a tab control Bold? (I know I've done this before but cannot remember how.) TIA, Arthur -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From JHewson at nciinc.com Thu Mar 6 10:32:48 2008 From: JHewson at nciinc.com (Hewson, Jim ) Date: Thu, 6 Mar 2008 10:32:48 -0600 Subject: [AccessD] Two questions In-Reply-To: <29f585dd0803060739ue4dc04fs8d077c16e43fa2fc@mail.gmail.com> References: <29f585dd0803060739ue4dc04fs8d077c16e43fa2fc@mail.gmail.com> Message-ID: <7E02B06E41E5404589EDDDA2BAA1C5A8C483@sanex101.nciinc.com> 1. To change the default font you'll need to change the Form Template "normal" OR you can create your own template. To create a template for the current file, the easiest way is to create a new blank form, click on the Text Box on the Tools menu, then change the font. Save the form such as TemplateLocal or something like that. Go to Tools -> Options -> Forms/Reports Tab and change the name of the Form Template. 2. Right click the control, show properties, and format Font Weight. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Thursday, March 06, 2008 9:39 AM To: Access Developers discussion and problem solving Subject: [AccessD] Two questions 1. How can I set the default size and font for controls I create on a form? I want Arial 10pt and Access keeps offering me Tahoma 8pt. 2. How can I set the text on a tab control Bold? (I know I've done this before but cannot remember how.) TIA, Arthur -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ################################################################################ This email transmission contains information from NCI Information Systems, Inc. that may be considered privileged or confidential and is intended solely for the named recipient. If you have received this message in error, please contact the sender immediately and be aware that the use, copying or dissemination of this information is prohibited. ################################################################################ From JHewson at nciinc.com Thu Mar 6 10:38:38 2008 From: JHewson at nciinc.com (Hewson, Jim ) Date: Thu, 6 Mar 2008 10:38:38 -0600 Subject: [AccessD] Two questions In-Reply-To: References: <29f585dd0803060739ue4dc04fs8d077c16e43fa2fc@mail.gmail.com> Message-ID: <7E02B06E41E5404589EDDDA2BAA1C5A8C485@sanex101.nciinc.com> "You can also set control defaults from the menu by selecting the control and then selecting Set Control Defaults from the Format menu." Thanks, Charlotte, I didn't know you could do that! Jim jhewson at nciinc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, March 06, 2008 10:27 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Two questions Are you using 2007? In that case, I'm clueless. In earlier versions you could create a template form named Normal and the objects on it would have the properties used as defaults for new forms. Alternatively, you could take an existing form and make it the template by entering it in the Forms/Reports tab of the Options dialog. You can also set control defaults from the menu by selecting the control and then selecting Set Control Defaults from the Format menu. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Thursday, March 06, 2008 7:39 AM To: Access Developers discussion and problem solving Subject: [AccessD] Two questions 1. How can I set the default size and font for controls I create on a form? I want Arial 10pt and Access keeps offering me Tahoma 8pt. 2. How can I set the text on a tab control Bold? (I know I've done this before but cannot remember how.) TIA, Arthur -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ################################################################################ This email transmission contains information from NCI Information Systems, Inc. that may be considered privileged or confidential and is intended solely for the named recipient. If you have received this message in error, please contact the sender immediately and be aware that the use, copying or dissemination of this information is prohibited. ################################################################################ From DWUTKA at Marlow.com Thu Mar 6 10:54:11 2008 From: DWUTKA at Marlow.com (Drew Wutka) Date: Thu, 6 Mar 2008 10:54:11 -0600 Subject: [AccessD] using ADO to populate combos - wasRE:Error3048Cannotopen any more databases In-Reply-To: <00f301c87ede$027c9e20$0201a8c0@M90> Message-ID: Hey John, did you take a look at my demo? Just curious if it'll work for what you are trying to do. Drew The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From newsgrps at dalyn.co.nz Thu Mar 6 11:59:40 2008 From: newsgrps at dalyn.co.nz (David Emerson) Date: Fri, 07 Mar 2008 06:59:40 +1300 Subject: [AccessD] CrossTab Form In-Reply-To: <004a01c87f9f$ebc0d530$8f7ca27a@personald6374f> References: <20080306024419.GKVO17371.fep04.xtra.co.nz@Dalyn.dalyn.co.nz> <004a01c87f9f$ebc0d530$8f7ca27a@personald6374f> Message-ID: <20080306175947.QTXI17371.fep04.xtra.co.nz@Dalyn.dalyn.co.nz> Thanks AD. Your suggestion about formatting the data as strings will do the trick. Much appreciated. David At 7/03/2008, you wrote: >David, > > Apparently, record source of the form is based upon a crosstab > table, with 16 columns representing products and 25 rows > representing various stages of data. While most of the rows display > routine numbers, some rows display percentages. These rows (showing > percentages) are not in a separate block but sandwiched amongst > normal rows displaying numbers. While using only one text box per > column on a bound continuous form, you are seeking to display > values in these rows in proper percent format, without disturbing > normal display of numbers in other rows. > > If the presumptions outlined in previous para hold good, action > could be considered on the following lines: > > 1 - For sake of illustration, let T_Crosstab be the name of > table having fields RowHdg (text type) for row heading and P_1, > P_2, P_3 (number type) for products. > > 2 - Add two fields named RowNum (number type) and RowType (text type). > > 3 - Populate the RowNum column with sequential numbers, in the > order in which various rows are required to be finally displayed. > > 4 - Identify percentage type rows by entering a character (say > P) in RowType column. For all other rows, leave this column blank (Null). > > 5 - Use sample query Q_CustomFormat, as given below, as record > source for the form. > > Note - If you are in a position to ensure that incoming values, > as appended to table T_Crosstab, are suitably formatted strings, > the work-around suggested above would no longer be needed. In that > case, all the product fields (P_1, P_2, -- etc) would be of text type. > >Best wishes, >A.D.Tejpal >------------ > >Q_CustomFormat (Sample query) >================================= >SELECT RowHdg, RowNum, P_1, P_2, P_3 >FROM T_Crosstab >WHERE RowType Is Null >UNION ALL SELECT RowHdg, RowNum, Format(P_1, "Percent"), Format(P_2, >"Percent"), Format(P_3, "Percent") >FROM T_Crosstab >WHERE RowType Is Not Null >ORDER BY RowNum; >================================= > > ----- Original Message ----- > From: David Emerson > To: accessd at databaseadvisors.com > Sent: Thursday, March 06, 2008 08:14 > Subject: [AccessD] CrossTab Form > > > I have an Access XP form (from a legacy database) that is based on a > crosstab query. Across the top are a list of products. Down the > first column are a list of headings: Opening Balance, Stock In, Total > Stock, Stock Out, Stock Out Percentage, Closing Balance etc (there > are 25 rows in total). The data is gathered from a number of other > tables and queries which are linked only by the product code and are > in different formats, and then placed in a temporary table for the > crosstab. The number of fields is consistent - there will always be > the same products, and the same headings (therefore the use of a > cross tab is not for flexibility of changing products, but to get the > data into the required format). There are 16 products and 25 > headings, therefore 400 fields of data. > > Most of the rows are standard numbers but some are percentages. The > problem is that all rows are formatted the same way with no decimal > places. This means that the percentage rows only show whole > percentages (the numbers are calculated so that 2.75% is stored as > 2.75 and shows as 3). What I am looking for is a simple solution > where I can format each row of data on the continuous form to suit > the type of data. > > The sledgehammer way is to create a table with one row and a text box > for all 400 fields. This would then be used on a form which is set > out in a row format. > > I suggested that the form be turned around so that the products are > down the side and the headings across the top (in standard Access > fashion) but this is not the format the client wants. > > Is there any easy way around this? > > Regards > > David Emerson > Dalyn Software Ltd > Wellington, New Zealand >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Thu Mar 6 12:17:43 2008 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 6 Mar 2008 13:17:43 -0500 Subject: [AccessD] using ADO to populate combos -wasRE:Error3048Cannotopen any more databases In-Reply-To: References: <00f301c87ede$027c9e20$0201a8c0@M90> Message-ID: <010501c87fb6$5f7f68e0$0201a8c0@M90> I think it will work. Of course I had to delete all the comments cause they were getting in the way of my understanding how it worked. ;-) 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 Drew Wutka Sent: Thursday, March 06, 2008 11:54 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] using ADO to populate combos -wasRE:Error3048Cannotopen any more databases Hey John, did you take a look at my demo? Just curious if it'll work for what you are trying to do. Drew The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Thu Mar 6 12:22:05 2008 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 6 Mar 2008 13:22:05 -0500 Subject: [AccessD] Creating a Login form & check PW...how? In-Reply-To: <47CEAD90.167F.006B.0@niagaracounty.com> References: <29f585dd0803031407g20c20a59j953b286deadd69ae@mail.gmail.com> <47CEAD90.167F.006B.0@niagaracounty.com> Message-ID: <010901c87fb6$fbba11b0$0201a8c0@M90> John, I highly recommend that you go one step further and do a full on group / user / groupuser system. tblUser USR_ID USR_Initials USR_Name tblGroup GRP_ID GRP_Name tblGroupUser GU_ID GU_IDGRP GU_IDUSR Now you can create groups at will, and users at will, then assign users to groups. All basically just like in Windows itself. However I find it useful to have database groups separate and distinct from groups at the windows level. I decided to write a demo of how to do this and am almost finished. I will make it available tomorrow when I am done. I have what I call my LightWeight Security system embedded in my framework but like many things, I was not happy with my first pass. The version I am just now finishing looks much more polished and easier to comprehend and use. Anyone want to be a beta tester? 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 Clark Sent: Wednesday, March 05, 2008 2:26 PM To: Access Developers discussion and problem solving Subject: [AccessD] Creating a Login form & check PW...how? Easy one for y'all...(A03 by the way) I'm trying to add a login screen to a current db, so that I can divide users into three groups. Depending on your group, different buttons will be enabled/disabled. So far I've got a table (tblUsr) where I've got the individual users...txtUsrID, txtPW, txtSecLevel. I have a form w/they can type in their ID and PW, but I'm having trouble figuring out how to check that they have entered the correct PW. I figured this would be easy enough, and I thought I did it before, but I'm struggling here. Thanks! JClark PS...I haven't been out here much, because my programming duties were scant, but I've been assigned a couple more programs, so I'll probably be a pain again, until I get my wings back ;o) John W. Clark Computer Programmer Niagara County Central Data Processing -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at Marlow.com Thu Mar 6 12:23:28 2008 From: DWUTKA at Marlow.com (Drew Wutka) Date: Thu, 6 Mar 2008 12:23:28 -0600 Subject: [AccessD] using ADO to populate combos-wasRE:Error3048Cannotopen any more databases In-Reply-To: <010501c87fb6$5f7f68e0$0201a8c0@M90> Message-ID: LOL. Sorry, was trying to get an example to you while putting out fires here at work, didn't have the time to put in comments. ;) Besides, I figured you just needed a point in the right direction! On a serious note, do you have anything in specific that you don't understand how it's working? Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, March 06, 2008 12:18 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] using ADO to populate combos-wasRE:Error3048Cannotopen any more databases I think it will work. Of course I had to delete all the comments cause they were getting in the way of my understanding how it worked. ;-) 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 Drew Wutka Sent: Thursday, March 06, 2008 11:54 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] using ADO to populate combos -wasRE:Error3048Cannotopen any more databases Hey John, did you take a look at my demo? Just curious if it'll work for what you are trying to do. Drew The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From Patricia.O'Connor at otda.state.ny.us Thu Mar 6 12:49:30 2008 From: Patricia.O'Connor at otda.state.ny.us (O'Connor, Patricia (OTDA)) Date: Thu, 6 Mar 2008 13:49:30 -0500 Subject: [AccessD] Code Help Please In-Reply-To: <003001c87f9e$6f029660$8119fea9@LTVM> References: <000001c87f39$d2b01e40$6401a8c0@ACER2G><01DBAB52E30A9A4AB3D94EF8029EDBE8021BB2B2@EXCNYSM0A1AI.nysemail.nyenet> <003001c87f9e$6f029660$8119fea9@LTVM> Message-ID: <01DBAB52E30A9A4AB3D94EF8029EDBE8021BB2B4@EXCNYSM0A1AI.nysemail.nyenet> I link to databases other than access. Years ago I had problems and by making the names slightly different 1) allowed better problem solving 2) circular references did not popup 3) if the database names changed it made updates a bit easier not all the code needed changing My opinion after 15+ years ************************************************** * 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 Max Wanadoo > Sent: Thursday, March 06, 2008 10:26 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Code Help Please > > Hi Patricia, > > >>I would make sure the TXT box on the form has a different name than > >>the > CONTROL SOURCE > > Why would you want to do that? I know you can, but there is > absolutely no point that I can see. I actually make sure > that all my bound controls have the SAME NAME as the > datasource so that I actually KNOW what is being updated when > I read my code. Am I missing something here? > > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > O'Connor, Patricia (OTDA) > Sent: Thursday, March 06, 2008 2:56 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Code Help Please > > I would make sure the TXT box on the form has a different > name than the CONTROL SOURCE So if txtQBInvoice is the > CONTROL SOURCE Then change the txt box to txtQBInvoiceNbr > And change If Me.txtQBInvoice Is Null Then TO If > Me.txtQBInvoiceNBR > Is Null Then > > The only other thing I would think of trying is create the > txt msg in a string variable and see if it changes things > > Good luck > > > On Error GoTo Err_cmdPreviewPackList_Click > > > > Dim cancel As Boolean > > > > Dim lngRetval As Long > DIM txtMSG as string > > > > > > If Me.txtQBInvoiceNBR Is Null Then > txtMSG = "Please Select a Quick Books Invoice > Number" & vbCRLF > txtMSG = txtMSG & "Before Running Report." > > > lngRetval = MsgBox(txtMSG, vbOKOnly + vbExclamation + > vbDefaultButton2, "No QB Invoice Number Listed") > > > > > > > > > ************************************************** > * 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 Joe Hecht > > Sent: Wednesday, March 05, 2008 10:26 PM > > To: 'Access Developers discussion and problem solving' > > Subject: [AccessD] Code Help Please > > > > The following code is supposed to make sure there is an > invoice number > > in the text box before previewing report. > > > > > > > > When I run it I get an application error msg box saying object > > required. > > > > > > > > What have I forgotten now, > > > > > > > > On Error GoTo Err_cmdPreviewPackList_Click > > > > Dim cancel As Boolean > > > > Dim lngRetval As Long > > > > > > > > > > > > > > > > If Me.txtQBInvoice Is Null Then > > > > lngRetval = MsgBox( _ > > > > "Please Select a Quick Books Invoice Number" & vbCrLf > & "Before > > Running Report.", _ > > > > vbOKOnly + vbExclamation + vbDefaultButton2, _ > > > > "No QB Invoice Number Listed") > > > > > > > > > > > > > > > > Select Case lngRetval > > > > Case vbOK > > > > cancel = True > > > > > > > > > > > > End Select > > > > End If > > > > > > > > TIA > > > > > > > > Joe Hecht > > > > Joe at anamericanjoe.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 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From max.wanadoo at gmail.com Thu Mar 6 13:04:08 2008 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Thu, 6 Mar 2008 19:04:08 -0000 Subject: [AccessD] Code Help Please In-Reply-To: <01DBAB52E30A9A4AB3D94EF8029EDBE8021BB2B4@EXCNYSM0A1AI.nysemail.nyenet> References: <000001c87f39$d2b01e40$6401a8c0@ACER2G><01DBAB52E30A9A4AB3D94EF8029EDBE8021BB2B2@EXCNYSM0A1AI.nysemail.nyenet><003001c87f9e$6f029660$8119fea9@LTVM> <01DBAB52E30A9A4AB3D94EF8029EDBE8021BB2B4@EXCNYSM0A1AI.nysemail.nyenet> Message-ID: <001801c87fbc$dcb1d400$8119fea9@LTVM> Thanks, I don't really understand that but then I have not had the experiences you clearly have had. I have personally not needed to do this but thanks for the explanation. Regards Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of O'Connor, Patricia (OTDA) Sent: Thursday, March 06, 2008 6:50 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Code Help Please I link to databases other than access. Years ago I had problems and by making the names slightly different 1) allowed better problem solving 2) circular references did not popup 3) if the database names changed it made updates a bit easier not all the code needed changing My opinion after 15+ years ************************************************** * 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 Max Wanadoo > Sent: Thursday, March 06, 2008 10:26 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Code Help Please > > Hi Patricia, > > >>I would make sure the TXT box on the form has a different name than > >>the > CONTROL SOURCE > > Why would you want to do that? I know you can, but there is > absolutely no point that I can see. I actually make sure that all my > bound controls have the SAME NAME as the datasource so that I actually > KNOW what is being updated when I read my code. Am I missing > something here? > > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of O'Connor, > Patricia (OTDA) > Sent: Thursday, March 06, 2008 2:56 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Code Help Please > > I would make sure the TXT box on the form has a different name than > the CONTROL SOURCE So if txtQBInvoice is the CONTROL SOURCE Then > change the txt box to txtQBInvoiceNbr > And change If Me.txtQBInvoice Is Null Then TO If > Me.txtQBInvoiceNBR > Is Null Then > > The only other thing I would think of trying is create the txt msg in > a string variable and see if it changes things > > Good luck > > > On Error GoTo Err_cmdPreviewPackList_Click > > > > Dim cancel As Boolean > > > > Dim lngRetval As Long > DIM txtMSG as string > > > > > > If Me.txtQBInvoiceNBR Is Null Then > txtMSG = "Please Select a Quick Books Invoice Number" & > vbCRLF > txtMSG = txtMSG & "Before Running Report." > > > lngRetval = MsgBox(txtMSG, vbOKOnly + vbExclamation + > vbDefaultButton2, "No QB Invoice Number Listed") > > > > > > > > > ************************************************** > * 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 Joe Hecht > > Sent: Wednesday, March 05, 2008 10:26 PM > > To: 'Access Developers discussion and problem solving' > > Subject: [AccessD] Code Help Please > > > > The following code is supposed to make sure there is an > invoice number > > in the text box before previewing report. > > > > > > > > When I run it I get an application error msg box saying object > > required. > > > > > > > > What have I forgotten now, > > > > > > > > On Error GoTo Err_cmdPreviewPackList_Click > > > > Dim cancel As Boolean > > > > Dim lngRetval As Long > > > > > > > > > > > > > > > > If Me.txtQBInvoice Is Null Then > > > > lngRetval = MsgBox( _ > > > > "Please Select a Quick Books Invoice Number" & vbCrLf > & "Before > > Running Report.", _ > > > > vbOKOnly + vbExclamation + vbDefaultButton2, _ > > > > "No QB Invoice Number Listed") > > > > > > > > > > > > > > > > Select Case lngRetval > > > > Case vbOK > > > > cancel = True > > > > > > > > > > > > End Select > > > > End If > > > > > > > > TIA > > > > > > > > Joe Hecht > > > > Joe at anamericanjoe.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 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From adtp at airtelmail.in Thu Mar 6 13:21:20 2008 From: adtp at airtelmail.in (A.D.Tejpal) Date: Fri, 7 Mar 2008 00:51:20 +0530 Subject: [AccessD] CrossTab Form References: <20080306024419.GKVO17371.fep04.xtra.co.nz@Dalyn.dalyn.co.nz><004a01c87f9f$ebc0d530$8f7ca27a@personald6374f> <20080306175947.QTXI17371.fep04.xtra.co.nz@Dalyn.dalyn.co.nz> Message-ID: <008501c87fbf$ab7fa710$84b4a37a@personald6374f> You are most welcome David! A.D.Tejpal ------------ ----- Original Message ----- From: David Emerson To: Access Developers discussion and problem solving Sent: Thursday, March 06, 2008 23:29 Subject: Re: [AccessD] CrossTab Form Thanks AD. Your suggestion about formatting the data as strings will do the trick. Much appreciated. David <> From jwcolby at colbyconsulting.com Thu Mar 6 13:30:21 2008 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 6 Mar 2008 14:30:21 -0500 Subject: [AccessD] using ADO to populatecombos-wasRE:Error3048Cannotopen any more databases In-Reply-To: References: <010501c87fb6$5f7f68e0$0201a8c0@M90> Message-ID: <011501c87fc0$8526f3b0$0201a8c0@M90> Drew, >On a serious note, do you have anything in specific that you don't understand how it's working? No. It is just complex enough that I had to dig in to what you are doing. The multiple levels of indirection with the sql statement (the table) took a little while to dig through. I wouldn't do it that way but I see what you are doing. I like to use saved queries where the name of the query is the controlname-form name. This allows me to build the queries as normal and then my control class loads the control's query. I can do some nice stuff that way like "only if there is nothing in the rowsource" and "if not found that way look for just the control name". qcboGroup-frmGroupUser qcboUser-frmGroupUser qcboState Things like that allow me flexibility at design time of the FE to load something like a state combo with the same generic query but load a group combo with a query specific to a form etc. and if the combo already has a query in the rowsource don't (re)load any query at all. I think I can still work that kind of logic into what you are doing. Thanks for taking the time to work that demo up. 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 Drew Wutka Sent: Thursday, March 06, 2008 1:23 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] using ADO to populatecombos-wasRE:Error3048Cannotopen any more databases LOL. Sorry, was trying to get an example to you while putting out fires here at work, didn't have the time to put in comments. ;) Besides, I figured you just needed a point in the right direction! On a serious note, do you have anything in specific that you don't understand how it's working? Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, March 06, 2008 12:18 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] using ADO to populate combos-wasRE:Error3048Cannotopen any more databases I think it will work. Of course I had to delete all the comments cause they were getting in the way of my understanding how it worked. ;-) 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 Drew Wutka Sent: Thursday, March 06, 2008 11:54 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] using ADO to populate combos -wasRE:Error3048Cannotopen any more databases Hey John, did you take a look at my demo? Just curious if it'll work for what you are trying to do. Drew The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Thu Mar 6 13:35:22 2008 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 6 Mar 2008 14:35:22 -0500 Subject: [AccessD] Code Help Please In-Reply-To: <001801c87fbc$dcb1d400$8119fea9@LTVM> References: <000001c87f39$d2b01e40$6401a8c0@ACER2G><01DBAB52E30A9A4AB3D94EF8029EDBE8021BB2B2@EXCNYSM0A1AI.nysemail.nyenet><003001c87f9e$6f029660$8119fea9@LTVM><01DBAB52E30A9A4AB3D94EF8029EDBE8021BB2B4@EXCNYSM0A1AI.nysemail.nyenet> <001801c87fbc$dcb1d400$8119fea9@LTVM> Message-ID: <011601c87fc1$383c7100$0201a8c0@M90> Max, I also often rename the controls to not be the same as the control source, though I am certainly not religious about it. I like naming conventions and I like knowing that a control is a txt or a cbo or a lst etc. It just makes reading the code easier. I do so mostly when I am actually referencing the control in code, at that time I will rename the control. It also makes any search and replace operations easier to wade through since if you are looking for the object you can find it whereas if you are looking for the field you can find that. I must admit I do not spend time on it until I need to reference a control in code. 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 Max Wanadoo Sent: Thursday, March 06, 2008 2:04 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Code Help Please Thanks, I don't really understand that but then I have not had the experiences you clearly have had. I have personally not needed to do this but thanks for the explanation. Regards Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of O'Connor, Patricia (OTDA) Sent: Thursday, March 06, 2008 6:50 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Code Help Please I link to databases other than access. Years ago I had problems and by making the names slightly different 1) allowed better problem solving 2) circular references did not popup 3) if the database names changed it made updates a bit easier not all the code needed changing My opinion after 15+ years ************************************************** * 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 Max Wanadoo > Sent: Thursday, March 06, 2008 10:26 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Code Help Please > > Hi Patricia, > > >>I would make sure the TXT box on the form has a different name than > >>the > CONTROL SOURCE > > Why would you want to do that? I know you can, but there is > absolutely no point that I can see. I actually make sure that all my > bound controls have the SAME NAME as the datasource so that I actually > KNOW what is being updated when I read my code. Am I missing > something here? > > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of O'Connor, > Patricia (OTDA) > Sent: Thursday, March 06, 2008 2:56 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Code Help Please > > I would make sure the TXT box on the form has a different name than > the CONTROL SOURCE So if txtQBInvoice is the CONTROL SOURCE Then > change the txt box to txtQBInvoiceNbr > And change If Me.txtQBInvoice Is Null Then TO If > Me.txtQBInvoiceNBR > Is Null Then > > The only other thing I would think of trying is create the txt msg in > a string variable and see if it changes things > > Good luck > > > On Error GoTo Err_cmdPreviewPackList_Click > > > > Dim cancel As Boolean > > > > Dim lngRetval As Long > DIM txtMSG as string > > > > > > If Me.txtQBInvoiceNBR Is Null Then > txtMSG = "Please Select a Quick Books Invoice Number" & > vbCRLF > txtMSG = txtMSG & "Before Running Report." > > > lngRetval = MsgBox(txtMSG, vbOKOnly + vbExclamation + > vbDefaultButton2, "No QB Invoice Number Listed") > > > > > > > > > ************************************************** > * 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 Joe Hecht > > Sent: Wednesday, March 05, 2008 10:26 PM > > To: 'Access Developers discussion and problem solving' > > Subject: [AccessD] Code Help Please > > > > The following code is supposed to make sure there is an > invoice number > > in the text box before previewing report. > > > > > > > > When I run it I get an application error msg box saying object > > required. > > > > > > > > What have I forgotten now, > > > > > > > > On Error GoTo Err_cmdPreviewPackList_Click > > > > Dim cancel As Boolean > > > > Dim lngRetval As Long > > > > > > > > > > > > > > > > If Me.txtQBInvoice Is Null Then > > > > lngRetval = MsgBox( _ > > > > "Please Select a Quick Books Invoice Number" & vbCrLf > & "Before > > Running Report.", _ > > > > vbOKOnly + vbExclamation + vbDefaultButton2, _ > > > > "No QB Invoice Number Listed") > > > > > > > > > > > > > > > > Select Case lngRetval > > > > Case vbOK > > > > cancel = True > > > > > > > > > > > > End Select > > > > End If > > > > > > > > TIA > > > > > > > > Joe Hecht > > > > Joe at anamericanjoe.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 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Thu Mar 6 14:30:32 2008 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Thu, 6 Mar 2008 20:30:32 -0000 Subject: [AccessD] Code Help Please In-Reply-To: <011601c87fc1$383c7100$0201a8c0@M90> References: <000001c87f39$d2b01e40$6401a8c0@ACER2G><01DBAB52E30A9A4AB3D94EF8029EDBE8021BB2B2@EXCNYSM0A1AI.nysemail.nyenet><003001c87f9e$6f029660$8119fea9@LTVM><01DBAB52E30A9A4AB3D94EF8029EDBE8021BB2B4@EXCNYSM0A1AI.nysemail.nyenet><001801c87fbc$dcb1d400$8119fea9@LTVM> <011601c87fc1$383c7100$0201a8c0@M90> Message-ID: <001201c87fc8$ee8b1c20$8119fea9@LTVM> Hi John, Yes, I can see that and I often do the same (but not religiously). I was more interested in why Patricia was saying the she recommended that ALL controls were ALWAYS renamed. I thought I was missing something essential but it really boils down to user's preferences on how they like to work and what problems they have experienced that they try to overcome/minimise. Also I have sometimes named the Field Name (Source) to identify the Type, eg datCreated, strCreatedBy but again not everytime. Depends on whether there is an R in the month ;-> Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, March 06, 2008 7:35 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Code Help Please Max, I also often rename the controls to not be the same as the control source, though I am certainly not religious about it. I like naming conventions and I like knowing that a control is a txt or a cbo or a lst etc. It just makes reading the code easier. I do so mostly when I am actually referencing the control in code, at that time I will rename the control. It also makes any search and replace operations easier to wade through since if you are looking for the object you can find it whereas if you are looking for the field you can find that. I must admit I do not spend time on it until I need to reference a control in code. 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 Max Wanadoo Sent: Thursday, March 06, 2008 2:04 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Code Help Please Thanks, I don't really understand that but then I have not had the experiences you clearly have had. I have personally not needed to do this but thanks for the explanation. Regards Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of O'Connor, Patricia (OTDA) Sent: Thursday, March 06, 2008 6:50 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Code Help Please I link to databases other than access. Years ago I had problems and by making the names slightly different 1) allowed better problem solving 2) circular references did not popup 3) if the database names changed it made updates a bit easier not all the code needed changing My opinion after 15+ years ************************************************** * 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 Max Wanadoo > Sent: Thursday, March 06, 2008 10:26 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Code Help Please > > Hi Patricia, > > >>I would make sure the TXT box on the form has a different name than > >>the > CONTROL SOURCE > > Why would you want to do that? I know you can, but there is > absolutely no point that I can see. I actually make sure that all my > bound controls have the SAME NAME as the datasource so that I actually > KNOW what is being updated when I read my code. Am I missing > something here? > > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of O'Connor, > Patricia (OTDA) > Sent: Thursday, March 06, 2008 2:56 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Code Help Please > > I would make sure the TXT box on the form has a different name than > the CONTROL SOURCE So if txtQBInvoice is the CONTROL SOURCE Then > change the txt box to txtQBInvoiceNbr > And change If Me.txtQBInvoice Is Null Then TO If > Me.txtQBInvoiceNBR > Is Null Then > > The only other thing I would think of trying is create the txt msg in > a string variable and see if it changes things > > Good luck > > > On Error GoTo Err_cmdPreviewPackList_Click > > > > Dim cancel As Boolean > > > > Dim lngRetval As Long > DIM txtMSG as string > > > > > > If Me.txtQBInvoiceNBR Is Null Then > txtMSG = "Please Select a Quick Books Invoice Number" & > vbCRLF > txtMSG = txtMSG & "Before Running Report." > > > lngRetval = MsgBox(txtMSG, vbOKOnly + vbExclamation + > vbDefaultButton2, "No QB Invoice Number Listed") > > > > > > > > > ************************************************** > * 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 Joe Hecht > > Sent: Wednesday, March 05, 2008 10:26 PM > > To: 'Access Developers discussion and problem solving' > > Subject: [AccessD] Code Help Please > > > > The following code is supposed to make sure there is an > invoice number > > in the text box before previewing report. > > > > > > > > When I run it I get an application error msg box saying object > > required. > > > > > > > > What have I forgotten now, > > > > > > > > On Error GoTo Err_cmdPreviewPackList_Click > > > > Dim cancel As Boolean > > > > Dim lngRetval As Long > > > > > > > > > > > > > > > > If Me.txtQBInvoice Is Null Then > > > > lngRetval = MsgBox( _ > > > > "Please Select a Quick Books Invoice Number" & vbCrLf > & "Before > > Running Report.", _ > > > > vbOKOnly + vbExclamation + vbDefaultButton2, _ > > > > "No QB Invoice Number Listed") > > > > > > > > > > > > > > > > Select Case lngRetval > > > > Case vbOK > > > > cancel = True > > > > > > > > > > > > End Select > > > > End If > > > > > > > > TIA > > > > > > > > Joe Hecht > > > > Joe at anamericanjoe.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 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Thu Mar 6 15:04:44 2008 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 6 Mar 2008 13:04:44 -0800 Subject: [AccessD] Code Help Please In-Reply-To: <001201c87fc8$ee8b1c20$8119fea9@LTVM> References: <000001c87f39$d2b01e40$6401a8c0@ACER2G><01DBAB52E30A9A4AB3D94EF8029EDBE8021BB2B2@EXCNYSM0A1AI.nysemail.nyenet><003001c87f9e$6f029660$8119fea9@LTVM><01DBAB52E30A9A4AB3D94EF8029EDBE8021BB2B4@EXCNYSM0A1AI.nysemail.nyenet><001801c87fbc$dcb1d400$8119fea9@LTVM><011601c87fc1$383c7100$0201a8c0@M90> <001201c87fc8$ee8b1c20$8119fea9@LTVM> Message-ID: I'm with Patricia, even in dotNet. I may be the only one in my shop who renames religiously, but I do it. There's little I hate as much as switching back and forth between design view and the code window trying to figure out which control I'm addressing when just a minor amount of time at the start lets me know exactly which control I need to address without all that effort. Plus circular references can pop up unexpectedly in places where they're harder to track down, so I buy insurance. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Thursday, March 06, 2008 12:31 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Code Help Please Hi John, Yes, I can see that and I often do the same (but not religiously). I was more interested in why Patricia was saying the she recommended that ALL controls were ALWAYS renamed. I thought I was missing something essential but it really boils down to user's preferences on how they like to work and what problems they have experienced that they try to overcome/minimise. Also I have sometimes named the Field Name (Source) to identify the Type, eg datCreated, strCreatedBy but again not everytime. Depends on whether there is an R in the month ;-> Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, March 06, 2008 7:35 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Code Help Please Max, I also often rename the controls to not be the same as the control source, though I am certainly not religious about it. I like naming conventions and I like knowing that a control is a txt or a cbo or a lst etc. It just makes reading the code easier. I do so mostly when I am actually referencing the control in code, at that time I will rename the control. It also makes any search and replace operations easier to wade through since if you are looking for the object you can find it whereas if you are looking for the field you can find that. I must admit I do not spend time on it until I need to reference a control in code. 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 Max Wanadoo Sent: Thursday, March 06, 2008 2:04 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Code Help Please Thanks, I don't really understand that but then I have not had the experiences you clearly have had. I have personally not needed to do this but thanks for the explanation. Regards Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of O'Connor, Patricia (OTDA) Sent: Thursday, March 06, 2008 6:50 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Code Help Please I link to databases other than access. Years ago I had problems and by making the names slightly different 1) allowed better problem solving 2) circular references did not popup 3) if the database names changed it made updates a bit easier not all the code needed changing My opinion after 15+ years ************************************************** * 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 Max Wanadoo > Sent: Thursday, March 06, 2008 10:26 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Code Help Please > > Hi Patricia, > > >>I would make sure the TXT box on the form has a different name than > >>the > CONTROL SOURCE > > Why would you want to do that? I know you can, but there is > absolutely no point that I can see. I actually make sure that all my > bound controls have the SAME NAME as the datasource so that I actually > KNOW what is being updated when I read my code. Am I missing > something here? > > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of O'Connor, > Patricia (OTDA) > Sent: Thursday, March 06, 2008 2:56 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Code Help Please > > I would make sure the TXT box on the form has a different name than > the CONTROL SOURCE So if txtQBInvoice is the CONTROL SOURCE Then > change the txt box to txtQBInvoiceNbr > And change If Me.txtQBInvoice Is Null Then TO If > Me.txtQBInvoiceNBR > Is Null Then > > The only other thing I would think of trying is create the txt msg in > a string variable and see if it changes things > > Good luck > > > On Error GoTo Err_cmdPreviewPackList_Click > > > > Dim cancel As Boolean > > > > Dim lngRetval As Long > DIM txtMSG as string > > > > > > If Me.txtQBInvoiceNBR Is Null Then > txtMSG = "Please Select a Quick Books Invoice Number" & > vbCRLF > txtMSG = txtMSG & "Before Running Report." > > > lngRetval = MsgBox(txtMSG, vbOKOnly + vbExclamation + > vbDefaultButton2, "No QB Invoice Number Listed") > > > > > > > > > ************************************************** > * 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 Joe Hecht > > Sent: Wednesday, March 05, 2008 10:26 PM > > To: 'Access Developers discussion and problem solving' > > Subject: [AccessD] Code Help Please > > > > The following code is supposed to make sure there is an > invoice number > > in the text box before previewing report. > > > > > > > > When I run it I get an application error msg box saying object > > required. > > > > > > > > What have I forgotten now, > > > > > > > > On Error GoTo Err_cmdPreviewPackList_Click > > > > Dim cancel As Boolean > > > > Dim lngRetval As Long > > > > > > > > > > > > > > > > If Me.txtQBInvoice Is Null Then > > > > lngRetval = MsgBox( _ > > > > "Please Select a Quick Books Invoice Number" & vbCrLf > & "Before > > Running Report.", _ > > > > vbOKOnly + vbExclamation + vbDefaultButton2, _ > > > > "No QB Invoice Number Listed") > > > > > > > > > > > > > > > > Select Case lngRetval > > > > Case vbOK > > > > cancel = True > > > > > > > > > > > > End Select > > > > End If > > > > > > > > TIA > > > > > > > > Joe Hecht > > > > Joe at anamericanjoe.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 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Thu Mar 6 15:10:52 2008 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Thu, 6 Mar 2008 21:10:52 -0000 Subject: [AccessD] Code Help Please In-Reply-To: References: <000001c87f39$d2b01e40$6401a8c0@ACER2G><01DBAB52E30A9A4AB3D94EF8029EDBE8021BB2B2@EXCNYSM0A1AI.nysemail.nyenet><003001c87f9e$6f029660$8119fea9@LTVM><01DBAB52E30A9A4AB3D94EF8029EDBE8021BB2B4@EXCNYSM0A1AI.nysemail.nyenet><001801c87fbc$dcb1d400$8119fea9@LTVM><011601c87fc1$383c7100$0201a8c0@M90><001201c87fc8$ee8b1c20$8119fea9@LTVM> Message-ID: <001301c87fce$904bb3d0$8119fea9@LTVM> Sounds like a good disciple then. I will start to adopt it. Thanks all Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, March 06, 2008 9:05 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Code Help Please I'm with Patricia, even in dotNet. I may be the only one in my shop who renames religiously, but I do it. There's little I hate as much as switching back and forth between design view and the code window trying to figure out which control I'm addressing when just a minor amount of time at the start lets me know exactly which control I need to address without all that effort. Plus circular references can pop up unexpectedly in places where they're harder to track down, so I buy insurance. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Thursday, March 06, 2008 12:31 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Code Help Please Hi John, Yes, I can see that and I often do the same (but not religiously). I was more interested in why Patricia was saying the she recommended that ALL controls were ALWAYS renamed. I thought I was missing something essential but it really boils down to user's preferences on how they like to work and what problems they have experienced that they try to overcome/minimise. Also I have sometimes named the Field Name (Source) to identify the Type, eg datCreated, strCreatedBy but again not everytime. Depends on whether there is an R in the month ;-> Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, March 06, 2008 7:35 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Code Help Please Max, I also often rename the controls to not be the same as the control source, though I am certainly not religious about it. I like naming conventions and I like knowing that a control is a txt or a cbo or a lst etc. It just makes reading the code easier. I do so mostly when I am actually referencing the control in code, at that time I will rename the control. It also makes any search and replace operations easier to wade through since if you are looking for the object you can find it whereas if you are looking for the field you can find that. I must admit I do not spend time on it until I need to reference a control in code. 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 Max Wanadoo Sent: Thursday, March 06, 2008 2:04 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Code Help Please Thanks, I don't really understand that but then I have not had the experiences you clearly have had. I have personally not needed to do this but thanks for the explanation. Regards Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of O'Connor, Patricia (OTDA) Sent: Thursday, March 06, 2008 6:50 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Code Help Please I link to databases other than access. Years ago I had problems and by making the names slightly different 1) allowed better problem solving 2) circular references did not popup 3) if the database names changed it made updates a bit easier not all the code needed changing My opinion after 15+ years ************************************************** * 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 Max Wanadoo > Sent: Thursday, March 06, 2008 10:26 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Code Help Please > > Hi Patricia, > > >>I would make sure the TXT box on the form has a different name than > >>the > CONTROL SOURCE > > Why would you want to do that? I know you can, but there is > absolutely no point that I can see. I actually make sure that all my > bound controls have the SAME NAME as the datasource so that I actually > KNOW what is being updated when I read my code. Am I missing > something here? > > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of O'Connor, > Patricia (OTDA) > Sent: Thursday, March 06, 2008 2:56 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Code Help Please > > I would make sure the TXT box on the form has a different name than > the CONTROL SOURCE So if txtQBInvoice is the CONTROL SOURCE Then > change the txt box to txtQBInvoiceNbr > And change If Me.txtQBInvoice Is Null Then TO If > Me.txtQBInvoiceNBR > Is Null Then > > The only other thing I would think of trying is create the txt msg in > a string variable and see if it changes things > > Good luck > > > On Error GoTo Err_cmdPreviewPackList_Click > > > > Dim cancel As Boolean > > > > Dim lngRetval As Long > DIM txtMSG as string > > > > > > If Me.txtQBInvoiceNBR Is Null Then > txtMSG = "Please Select a Quick Books Invoice Number" & > vbCRLF > txtMSG = txtMSG & "Before Running Report." > > > lngRetval = MsgBox(txtMSG, vbOKOnly + vbExclamation + > vbDefaultButton2, "No QB Invoice Number Listed") > > > > > > > > > ************************************************** > * 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 Joe Hecht > > Sent: Wednesday, March 05, 2008 10:26 PM > > To: 'Access Developers discussion and problem solving' > > Subject: [AccessD] Code Help Please > > > > The following code is supposed to make sure there is an > invoice number > > in the text box before previewing report. > > > > > > > > When I run it I get an application error msg box saying object > > required. > > > > > > > > What have I forgotten now, > > > > > > > > On Error GoTo Err_cmdPreviewPackList_Click > > > > Dim cancel As Boolean > > > > Dim lngRetval As Long > > > > > > > > > > > > > > > > If Me.txtQBInvoice Is Null Then > > > > lngRetval = MsgBox( _ > > > > "Please Select a Quick Books Invoice Number" & vbCrLf > & "Before > > Running Report.", _ > > > > vbOKOnly + vbExclamation + vbDefaultButton2, _ > > > > "No QB Invoice Number Listed") > > > > > > > > > > > > > > > > Select Case lngRetval > > > > Case vbOK > > > > cancel = True > > > > > > > > > > > > End Select > > > > End If > > > > > > > > TIA > > > > > > > > Joe Hecht > > > > Joe at anamericanjoe.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 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at Marlow.com Thu Mar 6 15:18:26 2008 From: DWUTKA at Marlow.com (Drew Wutka) Date: Thu, 6 Mar 2008 15:18:26 -0600 Subject: [AccessD] using ADO to populatecombos-wasRE:Error3048Cannotopenany more databases In-Reply-To: <011501c87fc0$8526f3b0$0201a8c0@M90> Message-ID: Hey, glad to help. Stored queries work faster too, so you'll get better performance the way you plan to go. The method in which I was loading the recordset was just something I whipped up. Honestly, I would very rarely ever build something like this for projects I work on. With most of my systems, I build classes built around data functionality. Because of that, if I had a combo that would list the 50 states, it wouldn't display off of a recordset (directly), it would display off of a Class and collection class (state and states), so it's faster to put a single callback function behind that form, for that class. You mentioned that the form's module is a class, and a callback on the form's class module works, I wonder if you could incorporate the callback function into a global class....hmmmmm.... if you get around to trying that, let me know. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, March 06, 2008 1:30 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] using ADO to populatecombos-wasRE:Error3048Cannotopenany more databases Drew, >On a serious note, do you have anything in specific that you don't understand how it's working? No. It is just complex enough that I had to dig in to what you are doing. The multiple levels of indirection with the sql statement (the table) took a little while to dig through. I wouldn't do it that way but I see what you are doing. I like to use saved queries where the name of the query is the controlname-form name. This allows me to build the queries as normal and then my control class loads the control's query. I can do some nice stuff that way like "only if there is nothing in the rowsource" and "if not found that way look for just the control name". qcboGroup-frmGroupUser qcboUser-frmGroupUser qcboState Things like that allow me flexibility at design time of the FE to load something like a state combo with the same generic query but load a group combo with a query specific to a form etc. and if the combo already has a query in the rowsource don't (re)load any query at all. I think I can still work that kind of logic into what you are doing. Thanks for taking the time to work that demo up. 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 Drew Wutka Sent: Thursday, March 06, 2008 1:23 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] using ADO to populatecombos-wasRE:Error3048Cannotopen any more databases LOL. Sorry, was trying to get an example to you while putting out fires here at work, didn't have the time to put in comments. ;) Besides, I figured you just needed a point in the right direction! On a serious note, do you have anything in specific that you don't understand how it's working? Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, March 06, 2008 12:18 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] using ADO to populate combos-wasRE:Error3048Cannotopen any more databases I think it will work. Of course I had to delete all the comments cause they were getting in the way of my understanding how it worked. ;-) 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 Drew Wutka Sent: Thursday, March 06, 2008 11:54 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] using ADO to populate combos -wasRE:Error3048Cannotopen any more databases Hey John, did you take a look at my demo? Just curious if it'll work for what you are trying to do. Drew The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From DWUTKA at Marlow.com Thu Mar 6 15:21:54 2008 From: DWUTKA at Marlow.com (Drew Wutka) Date: Thu, 6 Mar 2008 15:21:54 -0600 Subject: [AccessD] Code Help Please In-Reply-To: <01DBAB52E30A9A4AB3D94EF8029EDBE8021BB2B4@EXCNYSM0A1AI.nysemail.nyenet> Message-ID: I concur. I use a 'common sense' name for field names (ie, FirstName, instead of a prefixed name, such as strFirstName), because I use variable types for my variables (strFirstName), and control types for my controls (txtFirstName). Though I do deviate from that method when it comes to my class objects. If I create a Person Object, it would have a FirstName property, not a strFirstName property. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of O'Connor, Patricia (OTDA) Sent: Thursday, March 06, 2008 12:50 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Code Help Please I link to databases other than access. Years ago I had problems and by making the names slightly different 1) allowed better problem solving 2) circular references did not popup 3) if the database names changed it made updates a bit easier not all the code needed changing My opinion after 15+ years ************************************************** * 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 Max Wanadoo > Sent: Thursday, March 06, 2008 10:26 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Code Help Please > > Hi Patricia, > > >>I would make sure the TXT box on the form has a different name than > >>the > CONTROL SOURCE > > Why would you want to do that? I know you can, but there is > absolutely no point that I can see. I actually make sure > that all my bound controls have the SAME NAME as the > datasource so that I actually KNOW what is being updated when > I read my code. Am I missing something here? > > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > O'Connor, Patricia (OTDA) > Sent: Thursday, March 06, 2008 2:56 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Code Help Please > > I would make sure the TXT box on the form has a different > name than the CONTROL SOURCE So if txtQBInvoice is the > CONTROL SOURCE Then change the txt box to txtQBInvoiceNbr > And change If Me.txtQBInvoice Is Null Then TO If > Me.txtQBInvoiceNBR > Is Null Then > > The only other thing I would think of trying is create the > txt msg in a string variable and see if it changes things > > Good luck > > > On Error GoTo Err_cmdPreviewPackList_Click > > > > Dim cancel As Boolean > > > > Dim lngRetval As Long > DIM txtMSG as string > > > > > > If Me.txtQBInvoiceNBR Is Null Then > txtMSG = "Please Select a Quick Books Invoice > Number" & vbCRLF > txtMSG = txtMSG & "Before Running Report." > > > lngRetval = MsgBox(txtMSG, vbOKOnly + vbExclamation + > vbDefaultButton2, "No QB Invoice Number Listed") > > > > > > > > > ************************************************** > * 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 Joe Hecht > > Sent: Wednesday, March 05, 2008 10:26 PM > > To: 'Access Developers discussion and problem solving' > > Subject: [AccessD] Code Help Please > > > > The following code is supposed to make sure there is an > invoice number > > in the text box before previewing report. > > > > > > > > When I run it I get an application error msg box saying object > > required. > > > > > > > > What have I forgotten now, > > > > > > > > On Error GoTo Err_cmdPreviewPackList_Click > > > > Dim cancel As Boolean > > > > Dim lngRetval As Long > > > > > > > > > > > > > > > > If Me.txtQBInvoice Is Null Then > > > > lngRetval = MsgBox( _ > > > > "Please Select a Quick Books Invoice Number" & vbCrLf > & "Before > > Running Report.", _ > > > > vbOKOnly + vbExclamation + vbDefaultButton2, _ > > > > "No QB Invoice Number Listed") > > > > > > > > > > > > > > > > Select Case lngRetval > > > > Case vbOK > > > > cancel = True > > > > > > > > > > > > End Select > > > > End If > > > > > > > > TIA > > > > > > > > Joe Hecht > > > > Joe at anamericanjoe.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 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From cfoust at infostatsystems.com Thu Mar 6 16:36:17 2008 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 6 Mar 2008 14:36:17 -0800 Subject: [AccessD] Code Help Please In-Reply-To: References: <01DBAB52E30A9A4AB3D94EF8029EDBE8021BB2B4@EXCNYSM0A1AI.nysemail.nyenet> Message-ID: Field names are the one place where I most emphatically do NOT use naming conventions. It has always seem unnecessary to me, since it does nothing for your code, the place that naming conventions come into their own. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Thursday, March 06, 2008 1:22 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Code Help Please I concur. I use a 'common sense' name for field names (ie, FirstName, instead of a prefixed name, such as strFirstName), because I use variable types for my variables (strFirstName), and control types for my controls (txtFirstName). Though I do deviate from that method when it comes to my class objects. If I create a Person Object, it would have a FirstName property, not a strFirstName property. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of O'Connor, Patricia (OTDA) Sent: Thursday, March 06, 2008 12:50 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Code Help Please I link to databases other than access. Years ago I had problems and by making the names slightly different 1) allowed better problem solving 2) circular references did not popup 3) if the database names changed it made updates a bit easier not all the code needed changing My opinion after 15+ years ************************************************** * 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 Max Wanadoo > Sent: Thursday, March 06, 2008 10:26 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Code Help Please > > Hi Patricia, > > >>I would make sure the TXT box on the form has a different name than > >>the > CONTROL SOURCE > > Why would you want to do that? I know you can, but there is > absolutely no point that I can see. I actually make sure that all my > bound controls have the SAME NAME as the datasource so that I actually > KNOW what is being updated when I read my code. Am I missing > something here? > > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of O'Connor, > Patricia (OTDA) > Sent: Thursday, March 06, 2008 2:56 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Code Help Please > > I would make sure the TXT box on the form has a different name than > the CONTROL SOURCE So if txtQBInvoice is the CONTROL SOURCE Then > change the txt box to txtQBInvoiceNbr > And change If Me.txtQBInvoice Is Null Then TO If > Me.txtQBInvoiceNBR > Is Null Then > > The only other thing I would think of trying is create the txt msg in > a string variable and see if it changes things > > Good luck > > > On Error GoTo Err_cmdPreviewPackList_Click > > > > Dim cancel As Boolean > > > > Dim lngRetval As Long > DIM txtMSG as string > > > > > > If Me.txtQBInvoiceNBR Is Null Then > txtMSG = "Please Select a Quick Books Invoice Number" & > vbCRLF > txtMSG = txtMSG & "Before Running Report." > > > lngRetval = MsgBox(txtMSG, vbOKOnly + vbExclamation + > vbDefaultButton2, "No QB Invoice Number Listed") > > > > > > > > > ************************************************** > * 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 Joe Hecht > > Sent: Wednesday, March 05, 2008 10:26 PM > > To: 'Access Developers discussion and problem solving' > > Subject: [AccessD] Code Help Please > > > > The following code is supposed to make sure there is an > invoice number > > in the text box before previewing report. > > > > > > > > When I run it I get an application error msg box saying object > > required. > > > > > > > > What have I forgotten now, > > > > > > > > On Error GoTo Err_cmdPreviewPackList_Click > > > > Dim cancel As Boolean > > > > Dim lngRetval As Long > > > > > > > > > > > > > > > > If Me.txtQBInvoice Is Null Then > > > > lngRetval = MsgBox( _ > > > > "Please Select a Quick Books Invoice Number" & vbCrLf > & "Before > > Running Report.", _ > > > > vbOKOnly + vbExclamation + vbDefaultButton2, _ > > > > "No QB Invoice Number Listed") > > > > > > > > > > > > > > > > Select Case lngRetval > > > > Case vbOK > > > > cancel = True > > > > > > > > > > > > End Select > > > > End If > > > > > > > > TIA > > > > > > > > Joe Hecht > > > > Joe at anamericanjoe.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 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at Marlow.com Thu Mar 6 17:00:17 2008 From: DWUTKA at Marlow.com (Drew Wutka) Date: Thu, 6 Mar 2008 17:00:17 -0600 Subject: [AccessD] Code Help Please In-Reply-To: Message-ID: I didn't feel the earth shake!?! That usually only happens when JWC and I agree! ;) I do some side work with a fellow that had a real bad habit of creating complex field names. For instance, if he had an Incident Number in tblIncidents, he'd name it I_txt_pk_Incident_Number. And if that field was in another table, such as tblInsuranceResult, it would be I_txt_fk_Incident_Number. 'I' represents that it's in the incident table, txt for text data, pk or fk for primary key, foreign key, and then the actual field name. Seems very practical until you get to the level where you write the SQL by hand....and then it is just a complete pain in the neck! ;) Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, March 06, 2008 4:36 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Code Help Please Field names are the one place where I most emphatically do NOT use naming conventions. It has always seem unnecessary to me, since it does nothing for your code, the place that naming conventions come into their own. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Thursday, March 06, 2008 1:22 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Code Help Please I concur. I use a 'common sense' name for field names (ie, FirstName, instead of a prefixed name, such as strFirstName), because I use variable types for my variables (strFirstName), and control types for my controls (txtFirstName). Though I do deviate from that method when it comes to my class objects. If I create a Person Object, it would have a FirstName property, not a strFirstName property. Drew The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From cfoust at infostatsystems.com Thu Mar 6 17:05:06 2008 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 6 Mar 2008 15:05:06 -0800 Subject: [AccessD] Code Help Please In-Reply-To: References: Message-ID: Hmmn .... I wonder who that could be? As I recall, JC likes to create field names that identify their tables, etc. Could it be .... NAW!! Of course not. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Thursday, March 06, 2008 3:00 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Code Help Please I didn't feel the earth shake!?! That usually only happens when JWC and I agree! ;) I do some side work with a fellow that had a real bad habit of creating complex field names. For instance, if he had an Incident Number in tblIncidents, he'd name it I_txt_pk_Incident_Number. And if that field was in another table, such as tblInsuranceResult, it would be I_txt_fk_Incident_Number. 'I' represents that it's in the incident table, txt for text data, pk or fk for primary key, foreign key, and then the actual field name. Seems very practical until you get to the level where you write the SQL by hand....and then it is just a complete pain in the neck! ;) Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, March 06, 2008 4:36 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Code Help Please Field names are the one place where I most emphatically do NOT use naming conventions. It has always seem unnecessary to me, since it does nothing for your code, the place that naming conventions come into their own. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Thursday, March 06, 2008 1:22 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Code Help Please I concur. I use a 'common sense' name for field names (ie, FirstName, instead of a prefixed name, such as strFirstName), because I use variable types for my variables (strFirstName), and control types for my controls (txtFirstName). Though I do deviate from that method when it comes to my class objects. If I create a Person Object, it would have a FirstName property, not a strFirstName property. Drew The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at Marlow.com Thu Mar 6 17:30:30 2008 From: DWUTKA at Marlow.com (Drew Wutka) Date: Thu, 6 Mar 2008 17:30:30 -0600 Subject: [AccessD] Code Help Please In-Reply-To: Message-ID: LOL, no, it wasn't JWC, but I think my friend worked with him on a project one time. You should see some of the queries I had in code for his systems. One that comes to mind was a project where he wanted a button that opened IE, went to a Texas website for workers comp, then filled in the fields on the website with the data from a query. The query SQL in the code page was as long as the code to do the actual work was, and then some! Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, March 06, 2008 5:05 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Code Help Please Hmmn .... I wonder who that could be? As I recall, JC likes to create field names that identify their tables, etc. Could it be .... NAW!! Of course not. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Thursday, March 06, 2008 3:00 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Code Help Please I didn't feel the earth shake!?! That usually only happens when JWC and I agree! ;) I do some side work with a fellow that had a real bad habit of creating complex field names. For instance, if he had an Incident Number in tblIncidents, he'd name it I_txt_pk_Incident_Number. And if that field was in another table, such as tblInsuranceResult, it would be I_txt_fk_Incident_Number. 'I' represents that it's in the incident table, txt for text data, pk or fk for primary key, foreign key, and then the actual field name. Seems very practical until you get to the level where you write the SQL by hand....and then it is just a complete pain in the neck! ;) Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, March 06, 2008 4:36 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Code Help Please Field names are the one place where I most emphatically do NOT use naming conventions. It has always seem unnecessary to me, since it does nothing for your code, the place that naming conventions come into their own. Charlotte Foust The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From jwcolby at colbyconsulting.com Thu Mar 6 22:05:40 2008 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 6 Mar 2008 23:05:40 -0500 Subject: [AccessD] Code Help Please In-Reply-To: References: Message-ID: <012901c88008$82913ff0$0201a8c0@M90> LOL, I find nothing wrong with differentiating the Name field in the employee table from the Name field in the company table. Works for me. I have done too many Search and Replaces on databases where there were 47 Name fields (or even worse ID fields). Every table has an ID field named... you guessed it, ID. Which ID are we talking about here? Oh... THAT ID... Two hundred tables each of which have an ID field. Hmm..... Yep, EM_ID is different from CO_ID and EM_Name is different from CO_Name. Naming conventions are about what works for you, and what works for me is knowing which ID field I am looking at without having to spend hours examining 4768 instances of ID by hand in my Search and Replace. 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 Charlotte Foust Sent: Thursday, March 06, 2008 6:05 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Code Help Please Hmmn .... I wonder who that could be? As I recall, JC likes to create field names that identify their tables, etc. Could it be .... NAW!! Of course not. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Thursday, March 06, 2008 3:00 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Code Help Please I didn't feel the earth shake!?! That usually only happens when JWC and I agree! ;) I do some side work with a fellow that had a real bad habit of creating complex field names. For instance, if he had an Incident Number in tblIncidents, he'd name it I_txt_pk_Incident_Number. And if that field was in another table, such as tblInsuranceResult, it would be I_txt_fk_Incident_Number. 'I' represents that it's in the incident table, txt for text data, pk or fk for primary key, foreign key, and then the actual field name. Seems very practical until you get to the level where you write the SQL by hand....and then it is just a complete pain in the neck! ;) Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, March 06, 2008 4:36 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Code Help Please Field names are the one place where I most emphatically do NOT use naming conventions. It has always seem unnecessary to me, since it does nothing for your code, the place that naming conventions come into their own. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Thursday, March 06, 2008 1:22 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Code Help Please I concur. I use a 'common sense' name for field names (ie, FirstName, instead of a prefixed name, such as strFirstName), because I use variable types for my variables (strFirstName), and control types for my controls (txtFirstName). Though I do deviate from that method when it comes to my class objects. If I create a Person Object, it would have a FirstName property, not a strFirstName property. Drew The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Fri Mar 7 00:50:10 2008 From: accessd at shaw.ca (Jim Lawrence) Date: Thu, 06 Mar 2008 22:50:10 -0800 Subject: [AccessD] [dba-Tech] Good article In-Reply-To: <00e501c876f8$33261580$4b3a8343@SusanOne> References: <00e501c876f8$33261580$4b3a8343@SusanOne> Message-ID: <09F142CA44F04AD1AB07B83674900027@creativesystemdesigns.com> Hi All: Some new entries to current events have been added to the DBA web site (http://www.databaseadvisors.com). Both Arthur Fuller, Martin Reid have new articles out and even John Colby's database is now famous by reference. If you are a student or know one, the DreamSpark program from Microsoft is worthy of pursing. Jim From Gustav at cactus.dk Fri Mar 7 01:43:09 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 07 Mar 2008 08:43:09 +0100 Subject: [AccessD] using ADO to populatecombos-wasRE:Error3048Cannotopenany more databases Message-ID: Hi Drew Then it is about time you get your hands on .Net with DataSets and DataTables and DataTableAdapters! Look up the recent threads with links from Shamil. /gustav >>> DWUTKA at marlow.com 06-03-2008 22:18 >>> .. With most of my systems, I build classes built around data functionality. Because of that, if I had a combo that would list the 50 states, it wouldn't display off of a recordset (directly), it would display off of a Class and collection class (state and states), so it's faster to put a single callback function behind that form, for that class. .. From Gustav at cactus.dk Fri Mar 7 01:56:23 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 07 Mar 2008 08:56:23 +0100 Subject: [AccessD] [dba-Tech] Good article Message-ID: Hi Jim Thanks. It looks like Martin indeed is "our" SharePoint guru. I still haven't seen the light but realise that when people like Martin promotes it, it must have some potential. /gustav >>> accessd at shaw.ca 07-03-2008 07:50 >>> Hi All: Some new entries to current events have been added to the DBA web site (http://www.databaseadvisors.com). Both Arthur Fuller, Martin Reid have new articles out and even John Colby's database is now famous by reference. If you are a student or know one, the DreamSpark program from Microsoft is worthy of pursing. Jim From adtp at airtelmail.in Fri Mar 7 02:38:42 2008 From: adtp at airtelmail.in (A.D.Tejpal) Date: Fri, 7 Mar 2008 14:08:42 +0530 Subject: [AccessD] Code Help Please References: <012901c88008$82913ff0$0201a8c0@M90> Message-ID: <009001c8802e$dbc0b670$1057a27a@personald6374f> Naming of Bound Controls On Forms / Reports (Visa Vis Control Source) ================================ Max, So long as certain precautions are observed, it should be perfectly ok to name a pure bound control the same as the field serving as its control source. Done correctly, it should never cause any problem. No need to get unduly overwhelmed by advice to the contrary. 2 - This subject was examined recently (Nov-Dec 2007) in Access MVP's forum, culminating in comprehensive guidelines, placed at the end of this post. These guidelines are now displayed at Steve Schapel's web site as well (url below): http://accesstips.datamanagementsolutions.biz/controlname.htm 3 - Certain interesting findings related to controls on forms / reports are also placed below. 3.1 - Forms - If a field name in record source is referred in VBA code whether directly or with Me qualifier followed by dot, bang or parenthesis (containing field name in a string), and no control having this name is physically present on the form, the code refers directly to the field and value is the only property exposed. 3.2 - Forms - If a bound control having its name identical to the control source is present on the form and this name is referred in VBA code whether directly or with Me qualifier, it automatically refers to the control. Intellisense exposes all the properties for the control. Value (which was the only available property when field was being referred) becomes the default property of this control. In other words, a bound control having its name identical to control source acts somewhat like a super-incarnation of the field itself, with additional properties over and above the original Value property. 3.3 - Forms - If an unbound control having its name identical to a field in record source is present on the form and this name is referred in VBA code whether directly or with Me qualifier, it automatically refers to the control (not the field in record source) 3.4 - Forms - If a bound control having its name identical to the control source is present on the form and it is desired that VBA code should refer only to the source field (not the control), it can be done by using the syntax: Me.Recordset("FieldName") Note - The value returned by using Me.Recordset("FieldName") is always in synch with the current record (Absolute position of recordset matches current record). On the other hand, if RecordsetClone were used, it would always open at the first record position and return the value accordingly, irrespective of current record position (additional code is needed to navigate to a particular record). 3.5 - Forms & Reports - Calculated controls having expressions using names of controls / fields: (a) In plain expression, if a control having that name exists physically, the control prevails. If no such control exists, field gets picked up. (b) If aggregate expression is involved (e.g. Sum() etc.), the field prevails even if a control of identical name exists. 3.6 - Reports - Fields in record source are not amenable to direct reference via VBA code. Only controls actually existing on the report are reliably recognized in VBA. 4 - Guidelines - as evolved in Access MVP's forum ======================================= Naming of controls w.r.t. field names (General Guidelines) ---------------------------------------------------------- 1 - For controls referenced in code or expressions, the names should not be the default names such as "text13". It is best to modify the default name to something meaningful that eases maintenance of application. 2 - An unbound or calculated control should not have its name identical to any of the fields contained in the record source. As a standing precaution, suitable prefix like Txt (or txt), Cbo (or cbo) etc should be used while naming such controls. 3 - It is perfectly Ok if the name of a pure bound control is the same as its control source (unless, for some reason, you need a different name for the bound control - see para 4 below). It can also prove convenient in readily distinguishing the bound controls from others. However, in such an arrangement, care has to be exercised on following lines: (a) If the role of an erstwhile bound control bearing a name identical to its control source is subsequently changed to that of an unbound or calculated control, its name should be modified simultaneously (including suitable prefix as per 2 above) so as to differentiate it from field names. (b) If the control source of a bound control is subsequently changed, its name should be changed simultaneously, matching the new control source. 4 - There is no objection however, to rename even bound controls, say by prefixing with Txt (or txt), Cbo (or cbo) etc. if the developer is keen to do so. In such a case, care should be taken to use the actual field name (and not the control name) while using the content in aggregate expressions in calculated controls e.g. =Sum([FieldName]). It would also be desirable to give meaningful names to such calculated controls e.g. txtTotal, or txtAvg etc. 5 - For a control bearing the name of a particular field in record source, NEVER bind it to some other field. Note - In allowing the names of bound controls to be identical with the control source, if the developer is not confident enough that the discipline envisaged in para 3 (a) & (b) above would be strictly observed, it might prove safer to rename all such controls in the beginning itself, as per para 4 above. In order to make such a task less taxing, suitable tool like Arvin Meyer's FixNames utility (link given below) can be used if desired. http://www.datastrat.com/Download/FixNames2K.zip ========================================== Best wishes, A.D.Tejpal ------------ ----- Original Message ----- From: Max Wanadoo To: 'Access Developers discussion and problem solving' Sent: Friday, March 07, 2008 02:40 Subject: Re: [AccessD] Code Help Please Sounds like a good disciple then. I will start to adopt it. Thanks all Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, March 06, 2008 9:05 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Code Help Please I'm with Patricia, even in dotNet. I may be the only one in my shop who renames religiously, but I do it. There's little I hate as much as switching back and forth between design view and the code window trying to figure out which control I'm addressing when just a minor amount of time at the start lets me know exactly which control I need to address without all that effort. Plus circular references can pop up unexpectedly in places where they're harder to track down, so I buy insurance. Charlotte Foust <> From jwcolby at colbyconsulting.com Fri Mar 7 06:46:17 2008 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 7 Mar 2008 07:46:17 -0500 Subject: [AccessD] Code Help Please In-Reply-To: <009001c8802e$dbc0b670$1057a27a@personald6374f> References: <012901c88008$82913ff0$0201a8c0@M90> <009001c8802e$dbc0b670$1057a27a@personald6374f> Message-ID: <012d01c88051$3d394990$0201a8c0@M90> Interesting Reading A.D. thanks for that. It is always useful to know what happens "behind the scenes". 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 A.D.Tejpal Sent: Friday, March 07, 2008 3:39 AM To: Access Developers discussion and problem solving Cc: A.D.Tejpal Subject: Re: [AccessD] Code Help Please Naming of Bound Controls On Forms / Reports (Visa Vis Control Source) ================================ Max, So long as certain precautions are observed, it should be perfectly ok to name a pure bound control the same as the field serving as its control source. Done correctly, it should never cause any problem. No need to get unduly overwhelmed by advice to the contrary. 2 - This subject was examined recently (Nov-Dec 2007) in Access MVP's forum, culminating in comprehensive guidelines, placed at the end of this post. These guidelines are now displayed at Steve Schapel's web site as well (url below): http://accesstips.datamanagementsolutions.biz/controlname.htm 3 - Certain interesting findings related to controls on forms / reports are also placed below. 3.1 - Forms - If a field name in record source is referred in VBA code whether directly or with Me qualifier followed by dot, bang or parenthesis (containing field name in a string), and no control having this name is physically present on the form, the code refers directly to the field and value is the only property exposed. 3.2 - Forms - If a bound control having its name identical to the control source is present on the form and this name is referred in VBA code whether directly or with Me qualifier, it automatically refers to the control. Intellisense exposes all the properties for the control. Value (which was the only available property when field was being referred) becomes the default property of this control. In other words, a bound control having its name identical to control source acts somewhat like a super-incarnation of the field itself, with additional properties over and above the original Value property. 3.3 - Forms - If an unbound control having its name identical to a field in record source is present on the form and this name is referred in VBA code whether directly or with Me qualifier, it automatically refers to the control (not the field in record source) 3.4 - Forms - If a bound control having its name identical to the control source is present on the form and it is desired that VBA code should refer only to the source field (not the control), it can be done by using the syntax: Me.Recordset("FieldName") Note - The value returned by using Me.Recordset("FieldName") is always in synch with the current record (Absolute position of recordset matches current record). On the other hand, if RecordsetClone were used, it would always open at the first record position and return the value accordingly, irrespective of current record position (additional code is needed to navigate to a particular record). 3.5 - Forms & Reports - Calculated controls having expressions using names of controls / fields: (a) In plain expression, if a control having that name exists physically, the control prevails. If no such control exists, field gets picked up. (b) If aggregate expression is involved (e.g. Sum() etc.), the field prevails even if a control of identical name exists. 3.6 - Reports - Fields in record source are not amenable to direct reference via VBA code. Only controls actually existing on the report are reliably recognized in VBA. 4 - Guidelines - as evolved in Access MVP's forum ======================================= Naming of controls w.r.t. field names (General Guidelines) ---------------------------------------------------------- 1 - For controls referenced in code or expressions, the names should not be the default names such as "text13". It is best to modify the default name to something meaningful that eases maintenance of application. 2 - An unbound or calculated control should not have its name identical to any of the fields contained in the record source. As a standing precaution, suitable prefix like Txt (or txt), Cbo (or cbo) etc should be used while naming such controls. 3 - It is perfectly Ok if the name of a pure bound control is the same as its control source (unless, for some reason, you need a different name for the bound control - see para 4 below). It can also prove convenient in readily distinguishing the bound controls from others. However, in such an arrangement, care has to be exercised on following lines: (a) If the role of an erstwhile bound control bearing a name identical to its control source is subsequently changed to that of an unbound or calculated control, its name should be modified simultaneously (including suitable prefix as per 2 above) so as to differentiate it from field names. (b) If the control source of a bound control is subsequently changed, its name should be changed simultaneously, matching the new control source. 4 - There is no objection however, to rename even bound controls, say by prefixing with Txt (or txt), Cbo (or cbo) etc. if the developer is keen to do so. In such a case, care should be taken to use the actual field name (and not the control name) while using the content in aggregate expressions in calculated controls e.g. =Sum([FieldName]). It would also be desirable to give meaningful names to such calculated controls e.g. txtTotal, or txtAvg etc. 5 - For a control bearing the name of a particular field in record source, NEVER bind it to some other field. Note - In allowing the names of bound controls to be identical with the control source, if the developer is not confident enough that the discipline envisaged in para 3 (a) & (b) above would be strictly observed, it might prove safer to rename all such controls in the beginning itself, as per para 4 above. In order to make such a task less taxing, suitable tool like Arvin Meyer's FixNames utility (link given below) can be used if desired. http://www.datastrat.com/Download/FixNames2K.zip ========================================== Best wishes, A.D.Tejpal ------------ ----- Original Message ----- From: Max Wanadoo To: 'Access Developers discussion and problem solving' Sent: Friday, March 07, 2008 02:40 Subject: Re: [AccessD] Code Help Please Sounds like a good disciple then. I will start to adopt it. Thanks all Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, March 06, 2008 9:05 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Code Help Please I'm with Patricia, even in dotNet. I may be the only one in my shop who renames religiously, but I do it. There's little I hate as much as switching back and forth between design view and the code window trying to figure out which control I'm addressing when just a minor amount of time at the start lets me know exactly which control I need to address without all that effort. Plus circular references can pop up unexpectedly in places where they're harder to track down, so I buy insurance. Charlotte Foust <> -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Fri Mar 7 06:49:42 2008 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Fri, 7 Mar 2008 12:49:42 -0000 Subject: [AccessD] Code Help Please In-Reply-To: <009001c8802e$dbc0b670$1057a27a@personald6374f> References: <012901c88008$82913ff0$0201a8c0@M90> <009001c8802e$dbc0b670$1057a27a@personald6374f> Message-ID: <008e01c88051$b748ffa0$8119fea9@LTVM> Wow! Comprehensive answer, A.D. Many thanks for taking the time. I will need to read through it a few times. Regards Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of A.D.Tejpal Sent: Friday, March 07, 2008 8:39 AM To: Access Developers discussion and problem solving Cc: A.D.Tejpal Subject: Re: [AccessD] Code Help Please Naming of Bound Controls On Forms / Reports (Visa Vis Control Source) ================================ Max, So long as certain precautions are observed, it should be perfectly ok to name a pure bound control the same as the field serving as its control source. Done correctly, it should never cause any problem. No need to get unduly overwhelmed by advice to the contrary. 2 - This subject was examined recently (Nov-Dec 2007) in Access MVP's forum, culminating in comprehensive guidelines, placed at the end of this post. These guidelines are now displayed at Steve Schapel's web site as well (url below): http://accesstips.datamanagementsolutions.biz/controlname.htm 3 - Certain interesting findings related to controls on forms / reports are also placed below. 3.1 - Forms - If a field name in record source is referred in VBA code whether directly or with Me qualifier followed by dot, bang or parenthesis (containing field name in a string), and no control having this name is physically present on the form, the code refers directly to the field and value is the only property exposed. 3.2 - Forms - If a bound control having its name identical to the control source is present on the form and this name is referred in VBA code whether directly or with Me qualifier, it automatically refers to the control. Intellisense exposes all the properties for the control. Value (which was the only available property when field was being referred) becomes the default property of this control. In other words, a bound control having its name identical to control source acts somewhat like a super-incarnation of the field itself, with additional properties over and above the original Value property. 3.3 - Forms - If an unbound control having its name identical to a field in record source is present on the form and this name is referred in VBA code whether directly or with Me qualifier, it automatically refers to the control (not the field in record source) 3.4 - Forms - If a bound control having its name identical to the control source is present on the form and it is desired that VBA code should refer only to the source field (not the control), it can be done by using the syntax: Me.Recordset("FieldName") Note - The value returned by using Me.Recordset("FieldName") is always in synch with the current record (Absolute position of recordset matches current record). On the other hand, if RecordsetClone were used, it would always open at the first record position and return the value accordingly, irrespective of current record position (additional code is needed to navigate to a particular record). 3.5 - Forms & Reports - Calculated controls having expressions using names of controls / fields: (a) In plain expression, if a control having that name exists physically, the control prevails. If no such control exists, field gets picked up. (b) If aggregate expression is involved (e.g. Sum() etc.), the field prevails even if a control of identical name exists. 3.6 - Reports - Fields in record source are not amenable to direct reference via VBA code. Only controls actually existing on the report are reliably recognized in VBA. 4 - Guidelines - as evolved in Access MVP's forum ======================================= Naming of controls w.r.t. field names (General Guidelines) ---------------------------------------------------------- 1 - For controls referenced in code or expressions, the names should not be the default names such as "text13". It is best to modify the default name to something meaningful that eases maintenance of application. 2 - An unbound or calculated control should not have its name identical to any of the fields contained in the record source. As a standing precaution, suitable prefix like Txt (or txt), Cbo (or cbo) etc should be used while naming such controls. 3 - It is perfectly Ok if the name of a pure bound control is the same as its control source (unless, for some reason, you need a different name for the bound control - see para 4 below). It can also prove convenient in readily distinguishing the bound controls from others. However, in such an arrangement, care has to be exercised on following lines: (a) If the role of an erstwhile bound control bearing a name identical to its control source is subsequently changed to that of an unbound or calculated control, its name should be modified simultaneously (including suitable prefix as per 2 above) so as to differentiate it from field names. (b) If the control source of a bound control is subsequently changed, its name should be changed simultaneously, matching the new control source. 4 - There is no objection however, to rename even bound controls, say by prefixing with Txt (or txt), Cbo (or cbo) etc. if the developer is keen to do so. In such a case, care should be taken to use the actual field name (and not the control name) while using the content in aggregate expressions in calculated controls e.g. =Sum([FieldName]). It would also be desirable to give meaningful names to such calculated controls e.g. txtTotal, or txtAvg etc. 5 - For a control bearing the name of a particular field in record source, NEVER bind it to some other field. Note - In allowing the names of bound controls to be identical with the control source, if the developer is not confident enough that the discipline envisaged in para 3 (a) & (b) above would be strictly observed, it might prove safer to rename all such controls in the beginning itself, as per para 4 above. In order to make such a task less taxing, suitable tool like Arvin Meyer's FixNames utility (link given below) can be used if desired. http://www.datastrat.com/Download/FixNames2K.zip ========================================== Best wishes, A.D.Tejpal ------------ ----- Original Message ----- From: Max Wanadoo To: 'Access Developers discussion and problem solving' Sent: Friday, March 07, 2008 02:40 Subject: Re: [AccessD] Code Help Please Sounds like a good disciple then. I will start to adopt it. Thanks all Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, March 06, 2008 9:05 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Code Help Please I'm with Patricia, even in dotNet. I may be the only one in my shop who renames religiously, but I do it. There's little I hate as much as switching back and forth between design view and the code window trying to figure out which control I'm addressing when just a minor amount of time at the start lets me know exactly which control I need to address without all that effort. Plus circular references can pop up unexpectedly in places where they're harder to track down, so I buy insurance. Charlotte Foust <> -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Fri Mar 7 07:35:40 2008 From: dwaters at usinternet.com (Dan Waters) Date: Fri, 7 Mar 2008 07:35:40 -0600 Subject: [AccessD] Access 14 Book Authors Wanted Message-ID: <000d01c88058$230a8af0$0300a8c0@danwaters> FYI . . . http://blogs.msdn.com/access/archive/2008/03/06/calling-all-access-book-auth ors.aspx From adtp at airtelmail.in Fri Mar 7 08:10:46 2008 From: adtp at airtelmail.in (A.D.Tejpal) Date: Fri, 7 Mar 2008 19:40:46 +0530 Subject: [AccessD] Code Help Please References: <012901c88008$82913ff0$0201a8c0@M90><009001c8802e$dbc0b670$1057a27a@personald6374f> <012d01c88051$3d394990$0201a8c0@M90> Message-ID: <00d901c8805d$4466c9c0$ab57a27a@personald6374f> You are most welcome John! A.D.Tepal ----------- ----- Original Message ----- From: jwcolby To: 'Access Developers discussion and problem solving' Sent: Friday, March 07, 2008 18:16 Subject: Re: [AccessD] Code Help Please Interesting Reading A.D. thanks for that. It is always useful to know what happens "behind the scenes". 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 A.D.Tejpal Sent: Friday, March 07, 2008 3:39 AM To: Access Developers discussion and problem solving Cc: A.D.Tejpal Subject: Re: [AccessD] Code Help Please Naming of Bound Controls On Forms / Reports (Visa Vis Control Source) ================================ <> From adtp at airtelmail.in Fri Mar 7 08:11:52 2008 From: adtp at airtelmail.in (A.D.Tejpal) Date: Fri, 7 Mar 2008 19:41:52 +0530 Subject: [AccessD] Code Help Please References: <012901c88008$82913ff0$0201a8c0@M90><009001c8802e$dbc0b670$1057a27a@personald6374f> <008e01c88051$b748ffa0$8119fea9@LTVM> Message-ID: <00da01c8805d$48207660$ab57a27a@personald6374f> You are most welcome Max! A.D.Tepal ----------- ----- Original Message ----- From: Max Wanadoo To: 'Access Developers discussion and problem solving' Sent: Friday, March 07, 2008 18:19 Subject: Re: [AccessD] Code Help Please Wow! Comprehensive answer, A.D. Many thanks for taking the time. I will need to read through it a few times. Regards Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of A.D.Tejpal Sent: Friday, March 07, 2008 8:39 AM To: Access Developers discussion and problem solving Cc: A.D.Tejpal Subject: Re: [AccessD] Code Help Please Naming of Bound Controls On Forms / Reports (Visa Vis Control Source) ================================ <> From fuller.artful at gmail.com Fri Mar 7 08:16:11 2008 From: fuller.artful at gmail.com (Arthur Fuller) Date: Fri, 7 Mar 2008 09:16:11 -0500 Subject: [AccessD] Access 14 Book Authors Wanted In-Reply-To: <000d01c88058$230a8af0$0300a8c0@danwaters> References: <000d01c88058$230a8af0$0300a8c0@danwaters> Message-ID: <29f585dd0803070616r7f8fddf0s9025cb8deca9c8d3@mail.gmail.com> You can bet I jumped on this one immediately! Arthur On 3/7/08, Dan Waters wrote: > > FYI . . . > > > http://blogs.msdn.com/access/archive/2008/03/06/calling-all-access-book-auth > ors.aspx > > From dwaters at usinternet.com Fri Mar 7 08:54:16 2008 From: dwaters at usinternet.com (Dan Waters) Date: Fri, 7 Mar 2008 08:54:16 -0600 Subject: [AccessD] Access 14 Book Authors Wanted In-Reply-To: <29f585dd0803070616r7f8fddf0s9025cb8deca9c8d3@mail.gmail.com> References: <000d01c88058$230a8af0$0300a8c0@danwaters> <29f585dd0803070616r7f8fddf0s9025cb8deca9c8d3@mail.gmail.com> Message-ID: <001b01c88063$1db52eb0$0300a8c0@danwaters> Well - I thought Susan might be interested - or at least have something interesting to say! -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Friday, March 07, 2008 8:16 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access 14 Book Authors Wanted You can bet I jumped on this one immediately! Arthur On 3/7/08, Dan Waters wrote: > > FYI . . . > > > http://blogs.msdn.com/access/archive/2008/03/06/calling-all-access-book-auth > ors.aspx > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at gmail.com Fri Mar 7 09:13:57 2008 From: ssharkins at gmail.com (Susan Harkins) Date: Fri, 7 Mar 2008 10:13:57 -0500 Subject: [AccessD] Access 14 Book Authors Wanted References: <000d01c88058$230a8af0$0300a8c0@danwaters><29f585dd0803070616r7f8fddf0s9025cb8deca9c8d3@mail.gmail.com> <001b01c88063$1db52eb0$0300a8c0@danwaters> Message-ID: <063601c88065$e42a5190$4b3a8343@SusanOne> I responded, but I doubt I'll take part. Technical books don't pay well anymore. They do help promote you, but if most of your $$$'s come from writing, you'll starve. But, I always bite on offers, so thanks. Susan H. > Well - I thought Susan might be interested - or at least have something > interesting to say! From rockysmolin at bchacc.com Fri Mar 7 09:18:53 2008 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Fri, 7 Mar 2008 07:18:53 -0800 Subject: [AccessD] Access 14 Book Authors Wanted In-Reply-To: <001b01c88063$1db52eb0$0300a8c0@danwaters> References: <000d01c88058$230a8af0$0300a8c0@danwaters><29f585dd0803070616r7f8fddf0s9025cb8deca9c8d3@mail.gmail.com> <001b01c88063$1db52eb0$0300a8c0@danwaters> Message-ID: <004e01c88066$8e542d80$0301a8c0@HAL9005> Oops. Your email showed up in my Apress folder based on my rule looking for the word 'book' in the subject. Anyway, I responded. Sounds like fun. :) Thanks for the heads up. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Friday, March 07, 2008 6:54 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access 14 Book Authors Wanted Well - I thought Susan might be interested - or at least have something interesting to say! -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Friday, March 07, 2008 8:16 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access 14 Book Authors Wanted You can bet I jumped on this one immediately! Arthur On 3/7/08, Dan Waters wrote: > > FYI . . . > > > http://blogs.msdn.com/access/archive/2008/03/06/calling-all-access-book-auth > ors.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 No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.21.6/1316 - Release Date: 3/6/2008 6:58 PM From Patricia.O'Connor at otda.state.ny.us Fri Mar 7 09:03:47 2008 From: Patricia.O'Connor at otda.state.ny.us (O'Connor, Patricia (OTDA)) Date: Fri, 7 Mar 2008 10:03:47 -0500 Subject: [AccessD] Code Help Please In-Reply-To: <009001c8802e$dbc0b670$1057a27a@personald6374f> References: <012901c88008$82913ff0$0201a8c0@M90> <009001c8802e$dbc0b670$1057a27a@personald6374f> Message-ID: <01DBAB52E30A9A4AB3D94EF8029EDBE8021BB2BA@EXCNYSM0A1AI.nysemail.nyenet> Thanks A.D. this information is good to have Maybe we can have this posted in some format on the DB website for easy reference ************************************************** * Patricia O'Connor * Information Technology Specialist 3 (Programming) * 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 A.D.Tejpal > Sent: Friday, March 07, 2008 03:39 AM > To: Access Developers discussion and problem solving > Cc: A.D.Tejpal > Subject: Re: [AccessD] Code Help Please > > Naming of Bound Controls On Forms / Reports (Visa Vis Control > Source) ================================ > > Max, > > So long as certain precautions are observed, it should be > perfectly ok to name a pure bound control the same as the > field serving as its control source. Done correctly, it > should never cause any problem. No need to get unduly > overwhelmed by advice to the contrary. > > 2 - This subject was examined recently (Nov-Dec 2007) in > Access MVP's forum, culminating in comprehensive guidelines, > placed at the end of this post. These guidelines are now > displayed at Steve Schapel's web site as well (url below): > http://accesstips.datamanagementsolutions.biz/controlname.htm > > > 3 - Certain interesting findings related to controls on > forms / reports are also placed below. > > 3.1 - Forms - If a field name in record source is > referred in VBA code whether directly or with Me qualifier > followed by dot, bang or parenthesis (containing field name > in a string), and no control having this name is physically > present on the form, the code refers directly to the field > and value is the only property exposed. > > 3.2 - Forms - If a bound control having its name > identical to the control source is present on the form and > this name is referred in VBA code whether directly or with Me > qualifier, it automatically refers to the control. > Intellisense exposes all the properties for the control. > Value (which was the only available property when field was > being referred) becomes the default property of this control. > In other words, a bound control having its name identical to > control source acts somewhat like a super-incarnation of the > field itself, with additional properties over and above the > original Value property. > > 3.3 - Forms - If an unbound control having its name > identical to a field in record source is present on the form > and this name is referred in VBA code whether directly or > with Me qualifier, it automatically refers to the control > (not the field in record source) > > 3.4 - Forms - If a bound control having its name > identical to the control source is present on the form and it > is desired that VBA code should refer only to the source > field (not the control), it can be done by using the syntax: > Me.Recordset("FieldName") > > Note - The value returned by using > Me.Recordset("FieldName") is always in synch with the current > record (Absolute position of recordset matches current > record). On the other hand, if RecordsetClone were used, it > would always open at the first record position and return the > value accordingly, irrespective of current record position > (additional code is needed to navigate to a particular record). > > 3.5 - Forms & Reports - Calculated controls having > expressions using names of controls / fields: > (a) In plain expression, if a control having that > name exists physically, the control prevails. If no such > control exists, field gets picked up. > (b) If aggregate expression is involved (e.g. Sum() > etc.), the field prevails even if a control of identical name exists. > > 3.6 - Reports - Fields in record source are not amenable > to direct reference via VBA code. Only controls actually > existing on the report are reliably recognized in VBA. > > > 4 - Guidelines - as evolved in Access MVP's forum > > ======================================= > Naming of controls w.r.t. field names (General Guidelines) > ---------------------------------------------------------- > > 1 - For controls referenced in code or expressions, the > names should not be the default names such as "text13". It is > best to modify the default name to something meaningful that > eases maintenance of application. > > 2 - An unbound or calculated control should not have its > name identical to any of the fields contained in the record > source. As a standing precaution, suitable prefix like Txt > (or txt), Cbo (or cbo) etc should be used while naming such controls. > > 3 - It is perfectly Ok if the name of a pure bound > control is the same as its control source (unless, for some > reason, you need a different name for the bound control - see > para 4 below). It can also prove convenient in readily > distinguishing the bound controls from others. However, in > such an arrangement, care has to be exercised on following lines: > (a) If the role of an erstwhile bound control bearing > a name identical to its control source is subsequently > changed to that of an unbound or calculated control, its name > should be modified simultaneously (including suitable prefix > as per 2 above) so as to differentiate it from field names. > (b) If the control source of a bound control is > subsequently changed, its name should be changed > simultaneously, matching the new control source. > > 4 - There is no objection however, to rename even bound > controls, say by prefixing with Txt (or txt), Cbo (or cbo) > etc. if the developer is keen to do so. In such a case, care > should be taken to use the actual field name (and not the > control name) while using the content in aggregate > expressions in calculated controls e.g. =Sum([FieldName]). It > would also be desirable to give meaningful names to such > calculated controls e.g. txtTotal, or txtAvg etc. > > 5 - For a control bearing the name of a particular field > in record source, NEVER bind it to some other field. > > Note - In allowing the names of bound controls to be > identical with the control source, if the developer is not > confident enough that the discipline envisaged in para 3 (a) > & (b) above would be strictly observed, it might prove safer > to rename all such controls in the beginning itself, as per > para 4 above. In order to make such a task less taxing, > suitable tool like Arvin Meyer's FixNames utility (link given > below) can be used if desired. > http://www.datastrat.com/Download/FixNames2K.zip > ========================================== > > > Best wishes, > A.D.Tejpal > ------------ > > ----- Original Message ----- > From: Max Wanadoo > To: 'Access Developers discussion and problem solving' > Sent: Friday, March 07, 2008 02:40 > Subject: Re: [AccessD] Code Help Please > > > Sounds like a good disciple then. I will start to adopt it. > Thanks all > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Charlotte Foust > Sent: Thursday, March 06, 2008 9:05 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Code Help Please > > I'm with Patricia, even in dotNet. I may be the only one > in my shop who > renames religiously, but I do it. There's little I hate as much as > switching back and forth between design view and the code > window trying to > figure out which control I'm addressing when just a minor > amount of time at > the start lets me know exactly which control I need to > address without all > that effort. Plus circular references can pop up > unexpectedly in places > where they're harder to track down, so I buy insurance. > > Charlotte Foust > > <> > -- > 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 Mar 7 09:49:17 2008 From: mwp.reid at qub.ac.uk (Martin W Reid) Date: Fri, 7 Mar 2008 15:49:17 +0000 Subject: [AccessD] Access 14 Book Authors Wanted In-Reply-To: <000d01c88058$230a8af0$0300a8c0@danwaters> References: <000d01c88058$230a8af0$0300a8c0@danwaters> Message-ID: Worth doing even for the Interest only. I have been involved in a few of these and its interesting to see how the software develops. Some interesting stuff re Access as well! Martin Martin WP Reid Information Services Queen's University Riddel Hall 185 Stranmillis Road Belfast BT9 5EE Tel : 02890974465 Email : mwp.reid at qub.ac.uk ________________________________________ From: accessd-bounces at databaseadvisors.com [accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters [dwaters at usinternet.com] Sent: 07 March 2008 13:35 To: 'Access Developers discussion and problem solving' Subject: [AccessD] Access 14 Book Authors Wanted FYI . . . http://blogs.msdn.com/access/archive/2008/03/06/calling-all-access-book-auth ors.aspx -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From R.Griffiths at bury.gov.uk Fri Mar 7 10:48:07 2008 From: R.Griffiths at bury.gov.uk (Griffiths, Richard) Date: Fri, 7 Mar 2008 16:48:07 -0000 Subject: [AccessD] Action Pack Question Message-ID: <200803071631.m27GVmB23170@smarthost.yourcomms.net> Hi Can someone confirm (or otherwise) my understanding of the Action Pack. Once eligible, purchase the Action Pack - this is an initial payment for the software within. The software can be used (as described NFD [Not for distribution] etc)beyond the initial year i.e. you don't have to uninstall.......... but should you wish to receive the latest software (new and updated) beyond the initial year then you would need to purchase another subscription. TIA Richard ----------------------------------------------------------------- Why not visit our website www.bury.gov.uk ----------------------------------------------------------------- The information contained in this e-mail and any files transmitted with it is for the intended recipient(s) alone. It may contain confidential information that is exempt from the disclosure under English law and may also be covered by legal,professional or other privilege. If you are not the intended recipient, you must not copy, distribute or take any action in reliance on it. If you have received this e-mail in error, please notify us immediately by using the reply facility on your e-mail system. If this message is being transmitted over the Internet, be aware that it may be intercepted by third parties. As a public body, the Council may be required to disclose this e-mail or any response to it under the Freedom of Information Act 2000 unless the information in it is covered by one of the exemptions in the Act. By responding to this e-mail you accept that your response may be subject of recording/monitoring to ensure compliance with the Council's ICT Security Policy. Electronic service accepted only at legalservices at bury.gov.uk and on fax number 0161 253 5119 . ************************************************************* From accessd at shaw.ca Fri Mar 7 10:56:27 2008 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 07 Mar 2008 08:56:27 -0800 Subject: [AccessD] [dba-Tech] Good article In-Reply-To: References: Message-ID: <951646DDBE6E48DEA4FF593ABB92DB42@creativesystemdesigns.com> Hi Gustav: You have always contributed so much code samples and given explanations as to how things work, to everyone here at DBA. Do you have any similar articles? Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, March 06, 2008 11:56 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] [dba-Tech] Good article Hi Jim Thanks. It looks like Martin indeed is "our" SharePoint guru. I still haven't seen the light but realise that when people like Martin promotes it, it must have some potential. /gustav >>> accessd at shaw.ca 07-03-2008 07:50 >>> Hi All: Some new entries to current events have been added to the DBA web site (http://www.databaseadvisors.com). Both Arthur Fuller, Martin Reid have new articles out and even John Colby's database is now famous by reference. If you are a student or know one, the DreamSpark program from Microsoft is worthy of pursing. Jim -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Fri Mar 7 11:02:03 2008 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 07 Mar 2008 09:02:03 -0800 Subject: [AccessD] Code Help Please In-Reply-To: <009001c8802e$dbc0b670$1057a27a@personald6374f> References: <012901c88008$82913ff0$0201a8c0@M90> <009001c8802e$dbc0b670$1057a27a@personald6374f> Message-ID: Hi A.D.Tejal: You have really done a lot of research into this... impressive. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of A.D.Tejpal Sent: Friday, March 07, 2008 12:39 AM To: Access Developers discussion and problem solving Cc: A.D.Tejpal Subject: Re: [AccessD] Code Help Please Naming of Bound Controls On Forms / Reports (Visa Vis Control Source) ================================ Max, So long as certain precautions are observed, it should be perfectly ok to name a pure bound control the same as the field serving as its control source. Done correctly, it should never cause any problem. No need to get unduly overwhelmed by advice to the contrary. 2 - This subject was examined recently (Nov-Dec 2007) in Access MVP's forum, culminating in comprehensive guidelines, placed at the end of this post. These guidelines are now displayed at Steve Schapel's web site as well (url below): http://accesstips.datamanagementsolutions.biz/controlname.htm 3 - Certain interesting findings related to controls on forms / reports are also placed below. 3.1 - Forms - If a field name in record source is referred in VBA code whether directly or with Me qualifier followed by dot, bang or parenthesis (containing field name in a string), and no control having this name is physically present on the form, the code refers directly to the field and value is the only property exposed. 3.2 - Forms - If a bound control having its name identical to the control source is present on the form and this name is referred in VBA code whether directly or with Me qualifier, it automatically refers to the control. Intellisense exposes all the properties for the control. Value (which was the only available property when field was being referred) becomes the default property of this control. In other words, a bound control having its name identical to control source acts somewhat like a super-incarnation of the field itself, with additional properties over and above the original Value property. 3.3 - Forms - If an unbound control having its name identical to a field in record source is present on the form and this name is referred in VBA code whether directly or with Me qualifier, it automatically refers to the control (not the field in record source) 3.4 - Forms - If a bound control having its name identical to the control source is present on the form and it is desired that VBA code should refer only to the source field (not the control), it can be done by using the syntax: Me.Recordset("FieldName") Note - The value returned by using Me.Recordset("FieldName") is always in synch with the current record (Absolute position of recordset matches current record). On the other hand, if RecordsetClone were used, it would always open at the first record position and return the value accordingly, irrespective of current record position (additional code is needed to navigate to a particular record). 3.5 - Forms & Reports - Calculated controls having expressions using names of controls / fields: (a) In plain expression, if a control having that name exists physically, the control prevails. If no such control exists, field gets picked up. (b) If aggregate expression is involved (e.g. Sum() etc.), the field prevails even if a control of identical name exists. 3.6 - Reports - Fields in record source are not amenable to direct reference via VBA code. Only controls actually existing on the report are reliably recognized in VBA. 4 - Guidelines - as evolved in Access MVP's forum ======================================= Naming of controls w.r.t. field names (General Guidelines) ---------------------------------------------------------- 1 - For controls referenced in code or expressions, the names should not be the default names such as "text13". It is best to modify the default name to something meaningful that eases maintenance of application. 2 - An unbound or calculated control should not have its name identical to any of the fields contained in the record source. As a standing precaution, suitable prefix like Txt (or txt), Cbo (or cbo) etc should be used while naming such controls. 3 - It is perfectly Ok if the name of a pure bound control is the same as its control source (unless, for some reason, you need a different name for the bound control - see para 4 below). It can also prove convenient in readily distinguishing the bound controls from others. However, in such an arrangement, care has to be exercised on following lines: (a) If the role of an erstwhile bound control bearing a name identical to its control source is subsequently changed to that of an unbound or calculated control, its name should be modified simultaneously (including suitable prefix as per 2 above) so as to differentiate it from field names. (b) If the control source of a bound control is subsequently changed, its name should be changed simultaneously, matching the new control source. 4 - There is no objection however, to rename even bound controls, say by prefixing with Txt (or txt), Cbo (or cbo) etc. if the developer is keen to do so. In such a case, care should be taken to use the actual field name (and not the control name) while using the content in aggregate expressions in calculated controls e.g. =Sum([FieldName]). It would also be desirable to give meaningful names to such calculated controls e.g. txtTotal, or txtAvg etc. 5 - For a control bearing the name of a particular field in record source, NEVER bind it to some other field. Note - In allowing the names of bound controls to be identical with the control source, if the developer is not confident enough that the discipline envisaged in para 3 (a) & (b) above would be strictly observed, it might prove safer to rename all such controls in the beginning itself, as per para 4 above. In order to make such a task less taxing, suitable tool like Arvin Meyer's FixNames utility (link given below) can be used if desired. http://www.datastrat.com/Download/FixNames2K.zip ========================================== Best wishes, A.D.Tejpal ------------ ----- Original Message ----- From: Max Wanadoo To: 'Access Developers discussion and problem solving' Sent: Friday, March 07, 2008 02:40 Subject: Re: [AccessD] Code Help Please Sounds like a good disciple then. I will start to adopt it. Thanks all Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, March 06, 2008 9:05 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Code Help Please I'm with Patricia, even in dotNet. I may be the only one in my shop who renames religiously, but I do it. There's little I hate as much as switching back and forth between design view and the code window trying to figure out which control I'm addressing when just a minor amount of time at the start lets me know exactly which control I need to address without all that effort. Plus circular references can pop up unexpectedly in places where they're harder to track down, so I buy insurance. Charlotte Foust <> -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From garykjos at gmail.com Fri Mar 7 11:05:56 2008 From: garykjos at gmail.com (Gary Kjos) Date: Fri, 7 Mar 2008 11:05:56 -0600 Subject: [AccessD] Action Pack Question In-Reply-To: <200803071631.m27GVmB23170@smarthost.yourcomms.net> References: <200803071631.m27GVmB23170@smarthost.yourcomms.net> Message-ID: Actually it is my understanding that if you do not continue your subscription you are obiglated to uninstall all software received with the Action Pack. I certainly could be wrong or they could have changed it but that is my understanding. GK On 3/7/08, Griffiths, Richard wrote: > Hi > > > > Can someone confirm (or otherwise) my understanding of the Action Pack. > > > > Once eligible, purchase the Action Pack - this is an initial payment > for the software within. > > > > The software can be used (as described NFD [Not for distribution] > etc)beyond the initial year > > i.e. you don't have to uninstall.......... but should you wish to > receive the latest software (new and updated) beyond the initial year > > then you would need to purchase another subscription. > > > > TIA > > > > Richard > > ----------------------------------------------------------------- > Why not visit our website www.bury.gov.uk > ----------------------------------------------------------------- > The information contained in this e-mail and any files transmitted > with it is for the intended recipient(s) alone. It may contain > confidential information that is exempt from the disclosure under > English law and may also be covered by legal,professional or other privilege. > If you are not the intended recipient, you must not copy, distribute or take any > action in reliance on it. > If you have received this e-mail in error, please notify us immediately by using > the reply facility on your e-mail system. > If this message is being transmitted over the Internet, be aware that it may be > intercepted by third parties. > As a public body, the Council may be required to disclose this e-mail or any > response to it under the Freedom of Information Act 2000 unless the information > in it is covered by one of the exemptions in the Act. By responding to this > e-mail you accept that your response may be subject of recording/monitoring to > ensure compliance with the Council's ICT Security Policy. > Electronic service accepted only at legalservices at bury.gov.uk and on fax number > 0161 253 5119 . > ************************************************************* > -- > 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 R.Griffiths at bury.gov.uk Fri Mar 7 11:15:07 2008 From: R.Griffiths at bury.gov.uk (Griffiths, Richard) Date: Fri, 7 Mar 2008 17:15:07 -0000 Subject: [AccessD] Action Pack Question In-Reply-To: References: <200803071631.m27GVmB23170@smarthost.yourcomms.net> Message-ID: <200803071658.m27GwoB26538@smarthost.yourcomms.net> Hi I hear what you are saying but I'm sure it's to work the full MSDN subscriptions, again if you want to get the latest software you have to re-subscribe. If this was the case you would think that somewhere on 'Page 1' of 'All about the Action Pack' you would see Richard -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos Sent: 07 March 2008 17:06 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Action Pack Question Actually it is my understanding that if you do not continue your subscription you are obiglated to uninstall all software received with the Action Pack. I certainly could be wrong or they could have changed it but that is my understanding. GK On 3/7/08, Griffiths, Richard wrote: > Hi > > > > Can someone confirm (or otherwise) my understanding of the Action Pack. > > > > Once eligible, purchase the Action Pack - this is an initial payment > for the software within. > > > > The software can be used (as described NFD [Not for distribution] > etc)beyond the initial year > > i.e. you don't have to uninstall.......... but should you wish to > receive the latest software (new and updated) beyond the initial year > > then you would need to purchase another subscription. > > > > TIA > > > > Richard > > ----------------------------------------------------------------- > Why not visit our website www.bury.gov.uk > ----------------------------------------------------------------- > The information contained in this e-mail and any files transmitted > with it is for the intended recipient(s) alone. It may contain > confidential information that is exempt from the disclosure under > English law and may also be covered by legal,professional or other privilege. > If you are not the intended recipient, you must not copy, distribute or take any > action in reliance on it. > If you have received this e-mail in error, please notify us immediately by using > the reply facility on your e-mail system. > If this message is being transmitted over the Internet, be aware that it may be > intercepted by third parties. > As a public body, the Council may be required to disclose this e-mail or any > response to it under the Freedom of Information Act 2000 unless the information > in it is covered by one of the exemptions in the Act. By responding to this > e-mail you accept that your response may be subject of recording/monitoring to > ensure compliance with the Council's ICT Security Policy. > Electronic service accepted only at legalservices at bury.gov.uk and on fax number > 0161 253 5119 . > ************************************************************* > -- > 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 ----------------------------------------------------------------- Why not visit our website www.bury.gov.uk ----------------------------------------------------------------- The information contained in this e-mail and any files transmitted with it is for the intended recipient(s) alone. It may contain confidential information that is exempt from the disclosure under English law and may also be covered by legal,professional or other privilege. If you are not the intended recipient, you must not copy, distribute or take any action in reliance on it. If you have received this e-mail in error, please notify us immediately by using the reply facility on your e-mail system. If this message is being transmitted over the Internet, be aware that it may be intercepted by third parties. As a public body, the Council may be required to disclose this e-mail or any response to it under the Freedom of Information Act 2000 unless the information in it is covered by one of the exemptions in the Act. By responding to this e-mail you accept that your response may be subject of recording/monitoring to ensure compliance with the Council's ICT Security Policy. Electronic service accepted only at legalservices at bury.gov.uk and on fax number 0161 253 5119 . ************************************************************* From adtp at airtelmail.in Fri Mar 7 11:14:57 2008 From: adtp at airtelmail.in (A.D.Tejpal) Date: Fri, 7 Mar 2008 22:44:57 +0530 Subject: [AccessD] Code Help Please References: <012901c88008$82913ff0$0201a8c0@M90><009001c8802e$dbc0b670$1057a27a@personald6374f> <01DBAB52E30A9A4AB3D94EF8029EDBE8021BB2BA@EXCNYSM0A1AI.nysemail.nyenet> Message-ID: <007501c88077$4fe60f80$8857a27a@personald6374f> You are most welcome Patricia! Regarding your suggestion, Jim is welcome to place it as considered appropriate. The topic does come up from time to time in various forums. A.D.Tejpal ------------ ----- Original Message ----- From: O'Connor, Patricia (OTDA) To: Access Developers discussion and problem solving Sent: Friday, March 07, 2008 20:33 Subject: Re: [AccessD] Code Help Please Thanks A.D. this information is good to have Maybe we can have this posted in some format on the DB website for easy reference ************************************************** * Patricia O'Connor * Information Technology Specialist 3 (Programming) * OTDA - BDMA * (W) mailto:Patricia.O'Connor at otda.state.ny.us * (w) mailto:aa1160 at nysemail.state.ny.us ************************************************** -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of A.D.Tejpal > Sent: Friday, March 07, 2008 03:39 AM > To: Access Developers discussion and problem solving > Cc: A.D.Tejpal > Subject: Re: [AccessD] Code Help Please > > Naming of Bound Controls On Forms / Reports (Visa Vis Control > Source) ================================ <> From adtp at airtelmail.in Fri Mar 7 11:18:02 2008 From: adtp at airtelmail.in (A.D.Tejpal) Date: Fri, 7 Mar 2008 22:48:02 +0530 Subject: [AccessD] Code Help Please References: <012901c88008$82913ff0$0201a8c0@M90><009001c8802e$dbc0b670$1057a27a@personald6374f> Message-ID: <007601c88077$531ef360$8857a27a@personald6374f> You are most welcome Jim! So nice of you. Thanks. A.D.Tejpal ------------ ----- Original Message ----- From: Jim Lawrence To: 'Access Developers discussion and problem solving' Sent: Friday, March 07, 2008 22:32 Subject: Re: [AccessD] Code Help Please Hi A.D.Tejal: You have really done a lot of research into this... impressive. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of A.D.Tejpal Sent: Friday, March 07, 2008 12:39 AM To: Access Developers discussion and problem solving Cc: A.D.Tejpal Subject: Re: [AccessD] Code Help Please Naming of Bound Controls On Forms / Reports (Visa Vis Control Source) ================================ <> From cfoust at infostatsystems.com Fri Mar 7 11:21:24 2008 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 7 Mar 2008 09:21:24 -0800 Subject: [AccessD] Action Pack Question In-Reply-To: <200803071658.m27GwoB26538@smarthost.yourcomms.net> References: <200803071631.m27GVmB23170@smarthost.yourcomms.net> <200803071658.m27GwoB26538@smarthost.yourcomms.net> Message-ID: I believe that if you read the EULA for the Action Pack, you'll discover that you are required to remove all the software if you decide not to renew. You are not in any way purchasing the software license, you're paying a fee to use any and all the software. If you stop paying the fee, you have no right to continue using the software. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Griffiths, Richard Sent: Friday, March 07, 2008 9:15 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Action Pack Question Hi I hear what you are saying but I'm sure it's to work the full MSDN subscriptions, again if you want to get the latest software you have to re-subscribe. If this was the case you would think that somewhere on 'Page 1' of 'All about the Action Pack' you would see Richard -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos Sent: 07 March 2008 17:06 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Action Pack Question Actually it is my understanding that if you do not continue your subscription you are obiglated to uninstall all software received with the Action Pack. I certainly could be wrong or they could have changed it but that is my understanding. GK On 3/7/08, Griffiths, Richard wrote: > Hi > > > > Can someone confirm (or otherwise) my understanding of the Action Pack. > > > > Once eligible, purchase the Action Pack - this is an initial payment > for the software within. > > > > The software can be used (as described NFD [Not for distribution] > etc)beyond the initial year > > i.e. you don't have to uninstall.......... but should you wish to > receive the latest software (new and updated) beyond the initial year > > then you would need to purchase another subscription. > > > > TIA > > > > Richard > > ----------------------------------------------------------------- > Why not visit our website www.bury.gov.uk > ----------------------------------------------------------------- > The information contained in this e-mail and any files transmitted > with it is for the intended recipient(s) alone. It may contain > confidential information that is exempt from the disclosure under > English law and may also be covered by legal,professional or other privilege. > If you are not the intended recipient, you must not copy, distribute or take any > action in reliance on it. > If you have received this e-mail in error, please notify us immediately by using > the reply facility on your e-mail system. > If this message is being transmitted over the Internet, be aware that it may be > intercepted by third parties. > As a public body, the Council may be required to disclose this e-mail or any > response to it under the Freedom of Information Act 2000 unless the information > in it is covered by one of the exemptions in the Act. By responding to this > e-mail you accept that your response may be subject of recording/monitoring to > ensure compliance with the Council's ICT Security Policy. > Electronic service accepted only at legalservices at bury.gov.uk and on fax number > 0161 253 5119 . > ************************************************************* > -- > 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 ----------------------------------------------------------------- Why not visit our website www.bury.gov.uk ----------------------------------------------------------------- The information contained in this e-mail and any files transmitted with it is for the intended recipient(s) alone. It may contain confidential information that is exempt from the disclosure under English law and may also be covered by legal,professional or other privilege. If you are not the intended recipient, you must not copy, distribute or take any action in reliance on it. If you have received this e-mail in error, please notify us immediately by using the reply facility on your e-mail system. If this message is being transmitted over the Internet, be aware that it may be intercepted by third parties. As a public body, the Council may be required to disclose this e-mail or any response to it under the Freedom of Information Act 2000 unless the information in it is covered by one of the exemptions in the Act. By responding to this e-mail you accept that your response may be subject of recording/monitoring to ensure compliance with the Council's ICT Security Policy. Electronic service accepted only at legalservices at bury.gov.uk and on fax number 0161 253 5119 . ************************************************************* -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Fri Mar 7 11:45:38 2008 From: dwaters at usinternet.com (Dan Waters) Date: Fri, 7 Mar 2008 11:45:38 -0600 Subject: [AccessD] Access 14 Book Authors Wanted In-Reply-To: <004e01c88066$8e542d80$0301a8c0@HAL9005> References: <000d01c88058$230a8af0$0300a8c0@danwaters><29f585dd0803070616r7f8fddf0s9025cb8deca9c8d3@mail.gmail.com><001b01c88063$1db52eb0$0300a8c0@danwaters> <004e01c88066$8e542d80$0301a8c0@HAL9005> Message-ID: <003201c8807b$0e0fd330$0300a8c0@danwaters> Rocky - Good Luck! Dan Waters - from Apress ;-) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Friday, March 07, 2008 9:19 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access 14 Book Authors Wanted Oops. Your email showed up in my Apress folder based on my rule looking for the word 'book' in the subject. Anyway, I responded. Sounds like fun. :) Thanks for the heads up. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Friday, March 07, 2008 6:54 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access 14 Book Authors Wanted Well - I thought Susan might be interested - or at least have something interesting to say! -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Friday, March 07, 2008 8:16 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access 14 Book Authors Wanted You can bet I jumped on this one immediately! Arthur On 3/7/08, Dan Waters wrote: > > FYI . . . > > > http://blogs.msdn.com/access/archive/2008/03/06/calling-all-access-book-auth > ors.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 No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.21.6/1316 - Release Date: 3/6/2008 6:58 PM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Fri Mar 7 11:50:32 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 07 Mar 2008 18:50:32 +0100 Subject: [AccessD] [dba-Tech] Good article Message-ID: Hi Jim Not really. I never can find the time for writing so Susan writes for me! Not for fun but for money. Mostly minor tips as the publishers these days seem to abandon anything longer than two pages. I have some projects or topics with no commercial potential I could write about, but again - I don't know where to find the time. One topic is millisecond calculations in Access (JET). Another is modulus 97 calculations which are useful for validation of the internation bank account numbering system IBAN. And a universal relinker which will relink anything from JET databases, ODBC connections and html files to Exchange accounts. Also how to use Access to transmit and receive syslog messages 100% within the RFC standard. And a function to calculate quartiles which can be done in surprisingly many ways. Except for the syslog transceiver and the quartiles all origin from various projects. /gustav >>> accessd at shaw.ca 07-03-2008 17:56 >>> Hi Gustav: You have always contributed so much code samples and given explanations as to how things work, to everyone here at DBA. Do you have any similar articles? Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, March 06, 2008 11:56 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] [dba-Tech] Good article Hi Jim Thanks. It looks like Martin indeed is "our" SharePoint guru. I still haven't seen the light but realise that when people like Martin promotes it, it must have some potential. /gustav >>> accessd at shaw.ca 07-03-2008 07:50 >>> Hi All: Some new entries to current events have been added to the DBA web site (http://www.databaseadvisors.com). Both Arthur Fuller, Martin Reid have new articles out and even John Colby's database is now famous by reference. If you are a student or know one, the DreamSpark program from Microsoft is worthy of pursing. Jim From garykjos at gmail.com Fri Mar 7 12:07:03 2008 From: garykjos at gmail.com (Gary Kjos) Date: Fri, 7 Mar 2008 12:07:03 -0600 Subject: [AccessD] Action Pack Question In-Reply-To: <200803071658.m27GwoB26538@smarthost.yourcomms.net> References: <200803071631.m27GVmB23170@smarthost.yourcomms.net> <200803071658.m27GwoB26538@smarthost.yourcomms.net> Message-ID: Well they do essentially say that. It's not disabled or anything. It continues to work but you are not SUPPOSED to be using it. On the Action Pack website they list the I've subscribed to it for a number of years now. Not sure that I will continue after this year with the new educational requirement they have added. It is my recollection that the terms have always stated that once you stop subscribing you agree to uninstall and delete all installed copies of software and destroy all media. I'm not sure if they actually disable the electronic key codes or anything though. I've never NOT resubscribed so I don't know what it will do. GK On 3/7/08, Griffiths, Richard wrote: > Hi > > I hear what you are saying but I'm sure it's to work the full MSDN > subscriptions, again if you want to get the latest software you have to > re-subscribe. > If this was the case you would think that somewhere on 'Page 1' of 'All > about the Action Pack' you would see > > > Richard > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos > Sent: 07 March 2008 17:06 > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Action Pack Question > > Actually it is my understanding that if you do not continue your > subscription you are obiglated to uninstall all software received with > the Action Pack. I certainly could be wrong or they could have changed > it but that is my understanding. > > GK > > On 3/7/08, Griffiths, Richard wrote: > > Hi > > > > > > > > Can someone confirm (or otherwise) my understanding of the Action > Pack. > > > > > > > > Once eligible, purchase the Action Pack - this is an initial payment > > for the software within. > > > > > > > > The software can be used (as described NFD [Not for distribution] > > etc)beyond the initial year > > > > i.e. you don't have to uninstall.......... but should you wish to > > receive the latest software (new and updated) beyond the initial year > > > > then you would need to purchase another subscription. > > > > > > > > TIA > > > > > > > > Richard > > > > ----------------------------------------------------------------- > > Why not visit our website www.bury.gov.uk > > ----------------------------------------------------------------- > > The information contained in this e-mail and any files transmitted > > with it is for the intended recipient(s) alone. It may contain > > confidential information that is exempt from the disclosure under > > English law and may also be covered by legal,professional or other > privilege. > > If you are not the intended recipient, you must not copy, distribute > or take any > > action in reliance on it. > > If you have received this e-mail in error, please notify us > immediately by using > > the reply facility on your e-mail system. > > If this message is being transmitted over the Internet, be aware that > it may be > > intercepted by third parties. > > As a public body, the Council may be required to disclose this e-mail > or any > > response to it under the Freedom of Information Act 2000 unless the > information > > in it is covered by one of the exemptions in the Act. By responding to > this > > e-mail you accept that your response may be subject of > recording/monitoring to > > ensure compliance with the Council's ICT Security Policy. > > Electronic service accepted only at legalservices at bury.gov.uk and on > fax number > > 0161 253 5119 . > > ************************************************************* > > -- > > 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 > > ----------------------------------------------------------------- > Why not visit our website www.bury.gov.uk > ----------------------------------------------------------------- > The information contained in this e-mail and any files transmitted > with it is for the intended recipient(s) alone. It may contain > confidential information that is exempt from the disclosure under > English law and may also be covered by legal,professional or other privilege. > If you are not the intended recipient, you must not copy, distribute or take any > action in reliance on it. > If you have received this e-mail in error, please notify us immediately by using > the reply facility on your e-mail system. > If this message is being transmitted over the Internet, be aware that it may be > intercepted by third parties. > As a public body, the Council may be required to disclose this e-mail or any > response to it under the Freedom of Information Act 2000 unless the information > in it is covered by one of the exemptions in the Act. By responding to this > e-mail you accept that your response may be subject of recording/monitoring to > ensure compliance with the Council's ICT Security Policy. > Electronic service accepted only at legalservices at bury.gov.uk and on fax number > 0161 253 5119 . > ************************************************************* > > > -- > 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 rockysmolin at bchacc.com Fri Mar 7 12:44:00 2008 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Fri, 7 Mar 2008 10:44:00 -0800 Subject: [AccessD] FW: CodeL Message-ID: <002901c88083$35682d30$0301a8c0@HAL9005> Dear List: Client (see below) is connecting to a SQL back end with ADO (he's doing his own programming and calling me occasionally for help). When trying to update a memo field with embedded apostrophes he get a syntax error. He says that when he connected with ODBC he didn't have the problem. The code below errors on the Conn.Execute with "incorrect syntax". I told him to change the apostrophe delimiters around vMemo to double quote marks. Then he gets an error which says 'can't be longer than 128 characters. Memo field is defined as nvarChar 4000. I'm pretty weak in SQL and ADO. Is there a solution to this? MTIA Rocky 'ADO connection to MS Sql: vMemo is a declared Variant that is loaded with the memo filed and then when dirty, I am attempting to update the SQL back end. CLID is the integer ID number of the current client Conn.Execute "UPDATE tClients " & _ "Set [Memo] = '" & vMemo & "' " & _ "WHERE ClientIndex=" & CLID & "" 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.5.516 / Virus Database: 269.21.6/1316 - Release Date: 3/6/2008 6:58 PM From Gustav at cactus.dk Fri Mar 7 12:55:00 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 07 Mar 2008 19:55:00 +0100 Subject: [AccessD] FW: CodeL Message-ID: Hi Rocky It is probably double single-quotes and not single double-quotes that are needed. Try with: "Set [Memo] = '" & Replace(vMemo, "'", "''") & "' " & _ /gustav >>> rockysmolin at bchacc.com 07-03-2008 19:44 >>> Dear List: Client (see below) is connecting to a SQL back end with ADO (he's doing his own programming and calling me occasionally for help). When trying to update a memo field with embedded apostrophes he get a syntax error. He says that when he connected with ODBC he didn't have the problem. The code below errors on the Conn.Execute with "incorrect syntax". I told him to change the apostrophe delimiters around vMemo to double quote marks. Then he gets an error which says 'can't be longer than 128 characters. Memo field is defined as nvarChar 4000. I'm pretty weak in SQL and ADO. Is there a solution to this? MTIA Rocky 'ADO connection to MS Sql: vMemo is a declared Variant that is loaded with the memo filed and then when dirty, I am attempting to update the SQL back end. CLID is the integer ID number of the current client Conn.Execute "UPDATE tClients " & _ "Set [Memo] = '" & vMemo & "' " & _ "WHERE ClientIndex=" & CLID & "" From rockysmolin at bchacc.com Fri Mar 7 13:19:30 2008 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Fri, 7 Mar 2008 11:19:30 -0800 Subject: [AccessD] FW: CodeL In-Reply-To: References: Message-ID: <004101c88088$2b787000$0301a8c0@HAL9005> Gustav: Within the data that he's trying to insert into the SQL table there is a pair of apostrophes. Will your code have the effect of replacing them? I'm not sure he wants to replace the apostrophes with quote marks. Are apostrophes not allowed in a SQL character field? Thanks and regards, Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, March 07, 2008 10:55 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] FW: CodeL Hi Rocky It is probably double single-quotes and not single double-quotes that are needed. Try with: "Set [Memo] = '" & Replace(vMemo, "'", "''") & "' " & _ /gustav >>> rockysmolin at bchacc.com 07-03-2008 19:44 >>> Dear List: Client (see below) is connecting to a SQL back end with ADO (he's doing his own programming and calling me occasionally for help). When trying to update a memo field with embedded apostrophes he get a syntax error. He says that when he connected with ODBC he didn't have the problem. The code below errors on the Conn.Execute with "incorrect syntax". I told him to change the apostrophe delimiters around vMemo to double quote marks. Then he gets an error which says 'can't be longer than 128 characters. Memo field is defined as nvarChar 4000. I'm pretty weak in SQL and ADO. Is there a solution to this? MTIA Rocky 'ADO connection to MS Sql: vMemo is a declared Variant that is loaded with the memo filed and then when dirty, I am attempting to update the SQL back end. CLID is the integer ID number of the current client Conn.Execute "UPDATE tClients " & _ "Set [Memo] = '" & vMemo & "' " & _ "WHERE ClientIndex=" & CLID & "" -- 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.5.516 / Virus Database: 269.21.6/1316 - Release Date: 3/6/2008 6:58 PM From rockysmolin at bchacc.com Fri Mar 7 13:22:43 2008 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Fri, 7 Mar 2008 11:22:43 -0800 Subject: [AccessD] Action Pack Question In-Reply-To: References: <200803071631.m27GVmB23170@smarthost.yourcomms.net><200803071658.m27GwoB26538@smarthost.yourcomms.net> Message-ID: <004201c88088$9e0a93a0$0301a8c0@HAL9005> Gary: It will keep working even after your fee period expires. I just requalified myself for the Action Pack. I took a 'course'. It took about 30 minutes to take the course and the 'exam'. I can't remember exactly which one (I can look it up if you want), but the dude I was talking to said this was like the shortest distance between the two points. So now I'm ready to get the new Action Pack. Of course, that gets me Access 2007. :( Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos Sent: Friday, March 07, 2008 10:07 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Action Pack Question Well they do essentially say that. It's not disabled or anything. It continues to work but you are not SUPPOSED to be using it. On the Action Pack website they list the I've subscribed to it for a number of years now. Not sure that I will continue after this year with the new educational requirement they have added. It is my recollection that the terms have always stated that once you stop subscribing you agree to uninstall and delete all installed copies of software and destroy all media. I'm not sure if they actually disable the electronic key codes or anything though. I've never NOT resubscribed so I don't know what it will do. GK On 3/7/08, Griffiths, Richard wrote: > Hi > > I hear what you are saying but I'm sure it's to work the full MSDN > subscriptions, again if you want to get the latest software you have > to re-subscribe. > If this was the case you would think that somewhere on 'Page 1' of > 'All about the Action Pack' you would see after subscription runs out> > > Richard > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos > Sent: 07 March 2008 17:06 > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Action Pack Question > > Actually it is my understanding that if you do not continue your > subscription you are obiglated to uninstall all software received with > the Action Pack. I certainly could be wrong or they could have changed > it but that is my understanding. > > GK > > On 3/7/08, Griffiths, Richard wrote: > > Hi > > > > > > > > Can someone confirm (or otherwise) my understanding of the Action > Pack. > > > > > > > > Once eligible, purchase the Action Pack - this is an initial > > payment for the software within. > > > > > > > > The software can be used (as described NFD [Not for distribution] > > etc)beyond the initial year > > > > i.e. you don't have to uninstall.......... but should you wish to > > receive the latest software (new and updated) beyond the initial > > year > > > > then you would need to purchase another subscription. > > > > > > > > TIA > > > > > > > > Richard > > > > ----------------------------------------------------------------- > > Why not visit our website www.bury.gov.uk > > ----------------------------------------------------------------- > > The information contained in this e-mail and any files transmitted > > with it is for the intended recipient(s) alone. It may contain > > confidential information that is exempt from the disclosure under > > English law and may also be covered by legal,professional or other > privilege. > > If you are not the intended recipient, you must not copy, distribute > or take any > > action in reliance on it. > > If you have received this e-mail in error, please notify us > immediately by using > > the reply facility on your e-mail system. > > If this message is being transmitted over the Internet, be aware > > that > it may be > > intercepted by third parties. > > As a public body, the Council may be required to disclose this > > e-mail > or any > > response to it under the Freedom of Information Act 2000 unless the > information > > in it is covered by one of the exemptions in the Act. By responding > > to > this > > e-mail you accept that your response may be subject of > recording/monitoring to > > ensure compliance with the Council's ICT Security Policy. > > Electronic service accepted only at legalservices at bury.gov.uk and on > fax number > > 0161 253 5119 . > > ************************************************************* > > -- > > 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 > > ----------------------------------------------------------------- > Why not visit our website www.bury.gov.uk > ----------------------------------------------------------------- > The information contained in this e-mail and any files transmitted > with it is for the intended recipient(s) alone. It may contain > confidential information that is exempt from the disclosure under > English law and may also be covered by legal,professional or other privilege. > If you are not the intended recipient, you must not copy, distribute > or take any action in reliance on it. > If you have received this e-mail in error, please notify us > immediately by using the reply facility on your e-mail system. > If this message is being transmitted over the Internet, be aware that > it may be intercepted by third parties. > As a public body, the Council may be required to disclose this e-mail > or any response to it under the Freedom of Information Act 2000 unless > the information in it is covered by one of the exemptions in the Act. > By responding to this e-mail you accept that your response may be > subject of recording/monitoring to ensure compliance with the Council's ICT Security Policy. > Electronic service accepted only at legalservices at bury.gov.uk and on > fax number > 0161 253 5119 . > ************************************************************* > > > -- > 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 No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.21.6/1316 - Release Date: 3/6/2008 6:58 PM From jwcolby at colbyconsulting.com Fri Mar 7 13:30:22 2008 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 7 Mar 2008 14:30:22 -0500 Subject: [AccessD] Action Pack Question In-Reply-To: <004201c88088$9e0a93a0$0301a8c0@HAL9005> References: <200803071631.m27GVmB23170@smarthost.yourcomms.net><200803071658.m27GwoB26538@smarthost.yourcomms.net> <004201c88088$9e0a93a0$0301a8c0@HAL9005> Message-ID: <014901c88089$b05207e0$0201a8c0@M90> You usage of the software is up to you however and at least in certain instances the continued usage of older versions is acceptable as long as you do pay for the subscription. Exactly what the instances are I can't say, I just remember reading something about that in the past. I continue to use 2003 office, I hope that is not illegal. 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 Rocky Smolin at Beach Access Software Sent: Friday, March 07, 2008 2:23 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Action Pack Question Gary: It will keep working even after your fee period expires. I just requalified myself for the Action Pack. I took a 'course'. It took about 30 minutes to take the course and the 'exam'. I can't remember exactly which one (I can look it up if you want), but the dude I was talking to said this was like the shortest distance between the two points. So now I'm ready to get the new Action Pack. Of course, that gets me Access 2007. :( Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos Sent: Friday, March 07, 2008 10:07 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Action Pack Question Well they do essentially say that. It's not disabled or anything. It continues to work but you are not SUPPOSED to be using it. On the Action Pack website they list the I've subscribed to it for a number of years now. Not sure that I will continue after this year with the new educational requirement they have added. It is my recollection that the terms have always stated that once you stop subscribing you agree to uninstall and delete all installed copies of software and destroy all media. I'm not sure if they actually disable the electronic key codes or anything though. I've never NOT resubscribed so I don't know what it will do. GK On 3/7/08, Griffiths, Richard wrote: > Hi > > I hear what you are saying but I'm sure it's to work the full MSDN > subscriptions, again if you want to get the latest software you have > to re-subscribe. > If this was the case you would think that somewhere on 'Page 1' of > 'All about the Action Pack' you would see after subscription runs out> > > Richard > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos > Sent: 07 March 2008 17:06 > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Action Pack Question > > Actually it is my understanding that if you do not continue your > subscription you are obiglated to uninstall all software received with > the Action Pack. I certainly could be wrong or they could have changed > it but that is my understanding. > > GK > > On 3/7/08, Griffiths, Richard wrote: > > Hi > > > > > > > > Can someone confirm (or otherwise) my understanding of the Action > Pack. > > > > > > > > Once eligible, purchase the Action Pack - this is an initial payment > > for the software within. > > > > > > > > The software can be used (as described NFD [Not for distribution] > > etc)beyond the initial year > > > > i.e. you don't have to uninstall.......... but should you wish to > > receive the latest software (new and updated) beyond the initial > > year > > > > then you would need to purchase another subscription. > > > > > > > > TIA > > > > > > > > Richard > > > > ----------------------------------------------------------------- > > Why not visit our website www.bury.gov.uk > > ----------------------------------------------------------------- > > The information contained in this e-mail and any files transmitted > > with it is for the intended recipient(s) alone. It may contain > > confidential information that is exempt from the disclosure under > > English law and may also be covered by legal,professional or other > privilege. > > If you are not the intended recipient, you must not copy, distribute > or take any > > action in reliance on it. > > If you have received this e-mail in error, please notify us > immediately by using > > the reply facility on your e-mail system. > > If this message is being transmitted over the Internet, be aware > > that > it may be > > intercepted by third parties. > > As a public body, the Council may be required to disclose this > > e-mail > or any > > response to it under the Freedom of Information Act 2000 unless the > information > > in it is covered by one of the exemptions in the Act. By responding > > to > this > > e-mail you accept that your response may be subject of > recording/monitoring to > > ensure compliance with the Council's ICT Security Policy. > > Electronic service accepted only at legalservices at bury.gov.uk and on > fax number > > 0161 253 5119 . > > ************************************************************* > > -- > > 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 > > ----------------------------------------------------------------- > Why not visit our website www.bury.gov.uk > ----------------------------------------------------------------- > The information contained in this e-mail and any files transmitted > with it is for the intended recipient(s) alone. It may contain > confidential information that is exempt from the disclosure under > English law and may also be covered by legal,professional or other privilege. > If you are not the intended recipient, you must not copy, distribute > or take any action in reliance on it. > If you have received this e-mail in error, please notify us > immediately by using the reply facility on your e-mail system. > If this message is being transmitted over the Internet, be aware that > it may be intercepted by third parties. > As a public body, the Council may be required to disclose this e-mail > or any response to it under the Freedom of Information Act 2000 unless > the information in it is covered by one of the exemptions in the Act. > By responding to this e-mail you accept that your response may be > subject of recording/monitoring to ensure compliance with the > Council's ICT Security Policy. > Electronic service accepted only at legalservices at bury.gov.uk and on > fax number > 0161 253 5119 . > ************************************************************* > > > -- > 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 No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.21.6/1316 - Release Date: 3/6/2008 6:58 PM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From markamatte at hotmail.com Fri Mar 7 13:39:31 2008 From: markamatte at hotmail.com (Mark A Matte) Date: Fri, 7 Mar 2008 19:39:31 +0000 Subject: [AccessD] FW: CodeL In-Reply-To: <004101c88088$2b787000$0301a8c0@HAL9005> References: <004101c88088$2b787000$0301a8c0@HAL9005> Message-ID: Is there a difference between and apostrophe and a single quote? I think the delimeter is the problem...you are using a delimeter...that is also text in your data? Mark A. Matte > From: rockysmolin at bchacc.com > To: accessd at databaseadvisors.com > Date: Fri, 7 Mar 2008 11:19:30 -0800 > Subject: Re: [AccessD] FW: CodeL > > Gustav: > > Within the data that he's trying to insert into the SQL table there is a > pair of apostrophes. Will your code have the effect of replacing them? I'm > not sure he wants to replace the apostrophes with quote marks. Are > apostrophes not allowed in a SQL character field? > > Thanks and regards, > > Rocky > > > > > > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock > Sent: Friday, March 07, 2008 10:55 AM > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] FW: CodeL > > Hi Rocky > > It is probably double single-quotes and not single double-quotes that are > needed. > Try with: > > "Set [Memo] = '" & Replace(vMemo, "'", "''") & "' " & _ > > /gustav > > >>>> rockysmolin at bchacc.com 07-03-2008 19:44>>> > Dear List: > > Client (see below) is connecting to a SQL back end with ADO (he's doing his > own programming and calling me occasionally for help). > > When trying to update a memo field with embedded apostrophes he get a syntax > error. He says that when he connected with ODBC he didn't have the problem. > > The code below errors on the Conn.Execute with "incorrect syntax". > > I told him to change the apostrophe delimiters around vMemo to double quote > marks. Then he gets an error which says 'can't be longer than 128 > characters. Memo field is defined as nvarChar 4000. > > I'm pretty weak in SQL and ADO. Is there a solution to this? > > MTIA > > Rocky > > 'ADO connection to MS Sql: > > vMemo is a declared Variant that is loaded with the memo filed and then when > dirty, I am attempting to update the SQL back end. CLID is the integer ID > number of the current client > > Conn.Execute "UPDATE tClients " & _ > "Set [Memo] = '" & vMemo & "' " & _ > "WHERE ClientIndex=" & CLID & "" > > > > -- > 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.5.516 / Virus Database: 269.21.6/1316 - Release Date: 3/6/2008 > 6:58 PM > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com _________________________________________________________________ Shed those extra pounds with MSN and The Biggest Loser! http://biggestloser.msn.com/ From Gustav at cactus.dk Fri Mar 7 13:42:30 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 07 Mar 2008 20:42:30 +0100 Subject: [AccessD] FW: CodeL Message-ID: Hi Rocky Yes, it will replace any single-quote with two single-quotes. They are "allowed" but when building a string like your friend does, a single single-quote or double-quote will jam the code: "Set [Memo] = 'O'Hare' " & _ /gustav >>> rockysmolin at bchacc.com 07-03-2008 20:19 >>> Gustav: Within the data that he's trying to insert into the SQL table there is a pair of apostrophes. Will your code have the effect of replacing them? I'm not sure he wants to replace the apostrophes with quote marks. Are apostrophes not allowed in a SQL character field? Thanks and regards, Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, March 07, 2008 10:55 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] FW: CodeL Hi Rocky It is probably double single-quotes and not single double-quotes that are needed. Try with: "Set [Memo] = '" & Replace(vMemo, "'", "''") & "' " & _ /gustav >>> rockysmolin at bchacc.com 07-03-2008 19:44 >>> Dear List: Client (see below) is connecting to a SQL back end with ADO (he's doing his own programming and calling me occasionally for help). When trying to update a memo field with embedded apostrophes he get a syntax error. He says that when he connected with ODBC he didn't have the problem. The code below errors on the Conn.Execute with "incorrect syntax". I told him to change the apostrophe delimiters around vMemo to double quote marks. Then he gets an error which says 'can't be longer than 128 characters. Memo field is defined as nvarChar 4000. I'm pretty weak in SQL and ADO. Is there a solution to this? MTIA Rocky 'ADO connection to MS Sql: vMemo is a declared Variant that is loaded with the memo filed and then when dirty, I am attempting to update the SQL back end. CLID is the integer ID number of the current client Conn.Execute "UPDATE tClients " & _ "Set [Memo] = '" & vMemo & "' " & _ "WHERE ClientIndex=" & CLID & "" From jwcolby at colbyconsulting.com Fri Mar 7 13:47:29 2008 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 7 Mar 2008 14:47:29 -0500 Subject: [AccessD] Action Pack Question In-Reply-To: <014901c88089$b05207e0$0201a8c0@M90> References: <200803071631.m27GVmB23170@smarthost.yourcomms.net><200803071658.m27GwoB26538@smarthost.yourcomms.net><004201c88088$9e0a93a0$0301a8c0@HAL9005> <014901c88089$b05207e0$0201a8c0@M90> Message-ID: <014a01c8808c$14e5f250$0201a8c0@M90> By this I meant that you are not forced to install any specific thing, including Office 2007. Whether you are legally allowed to continue using the older versions of the software that you obtained through the action back is debatable, however there is something specifically about grandfathering some things, which included Windows XP for example. Whether this grandfather extends to Office is what is debatable. 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 jwcolby Sent: Friday, March 07, 2008 2:30 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Action Pack Question You usage of the software is up to you however and at least in certain instances the continued usage of older versions is acceptable as long as you do pay for the subscription. Exactly what the instances are I can't say, I just remember reading something about that in the past. I continue to use 2003 office, I hope that is not illegal. 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 Rocky Smolin at Beach Access Software Sent: Friday, March 07, 2008 2:23 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Action Pack Question Gary: It will keep working even after your fee period expires. I just requalified myself for the Action Pack. I took a 'course'. It took about 30 minutes to take the course and the 'exam'. I can't remember exactly which one (I can look it up if you want), but the dude I was talking to said this was like the shortest distance between the two points. So now I'm ready to get the new Action Pack. Of course, that gets me Access 2007. :( Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos Sent: Friday, March 07, 2008 10:07 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Action Pack Question Well they do essentially say that. It's not disabled or anything. It continues to work but you are not SUPPOSED to be using it. On the Action Pack website they list the I've subscribed to it for a number of years now. Not sure that I will continue after this year with the new educational requirement they have added. It is my recollection that the terms have always stated that once you stop subscribing you agree to uninstall and delete all installed copies of software and destroy all media. I'm not sure if they actually disable the electronic key codes or anything though. I've never NOT resubscribed so I don't know what it will do. GK On 3/7/08, Griffiths, Richard wrote: > Hi > > I hear what you are saying but I'm sure it's to work the full MSDN > subscriptions, again if you want to get the latest software you have > to re-subscribe. > If this was the case you would think that somewhere on 'Page 1' of > 'All about the Action Pack' you would see after subscription runs out> > > Richard > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos > Sent: 07 March 2008 17:06 > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Action Pack Question > > Actually it is my understanding that if you do not continue your > subscription you are obiglated to uninstall all software received with > the Action Pack. I certainly could be wrong or they could have changed > it but that is my understanding. > > GK > > On 3/7/08, Griffiths, Richard wrote: > > Hi > > > > > > > > Can someone confirm (or otherwise) my understanding of the Action > Pack. > > > > > > > > Once eligible, purchase the Action Pack - this is an initial payment > > for the software within. > > > > > > > > The software can be used (as described NFD [Not for distribution] > > etc)beyond the initial year > > > > i.e. you don't have to uninstall.......... but should you wish to > > receive the latest software (new and updated) beyond the initial > > year > > > > then you would need to purchase another subscription. > > > > > > > > TIA > > > > > > > > Richard > > > > ----------------------------------------------------------------- > > Why not visit our website www.bury.gov.uk > > ----------------------------------------------------------------- > > The information contained in this e-mail and any files transmitted > > with it is for the intended recipient(s) alone. It may contain > > confidential information that is exempt from the disclosure under > > English law and may also be covered by legal,professional or other > privilege. > > If you are not the intended recipient, you must not copy, distribute > or take any > > action in reliance on it. > > If you have received this e-mail in error, please notify us > immediately by using > > the reply facility on your e-mail system. > > If this message is being transmitted over the Internet, be aware > > that > it may be > > intercepted by third parties. > > As a public body, the Council may be required to disclose this > > e-mail > or any > > response to it under the Freedom of Information Act 2000 unless the > information > > in it is covered by one of the exemptions in the Act. By responding > > to > this > > e-mail you accept that your response may be subject of > recording/monitoring to > > ensure compliance with the Council's ICT Security Policy. > > Electronic service accepted only at legalservices at bury.gov.uk and on > fax number > > 0161 253 5119 . > > ************************************************************* > > -- > > 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 > > ----------------------------------------------------------------- > Why not visit our website www.bury.gov.uk > ----------------------------------------------------------------- > The information contained in this e-mail and any files transmitted > with it is for the intended recipient(s) alone. It may contain > confidential information that is exempt from the disclosure under > English law and may also be covered by legal,professional or other privilege. > If you are not the intended recipient, you must not copy, distribute > or take any action in reliance on it. > If you have received this e-mail in error, please notify us > immediately by using the reply facility on your e-mail system. > If this message is being transmitted over the Internet, be aware that > it may be intercepted by third parties. > As a public body, the Council may be required to disclose this e-mail > or any response to it under the Freedom of Information Act 2000 unless > the information in it is covered by one of the exemptions in the Act. > By responding to this e-mail you accept that your response may be > subject of recording/monitoring to ensure compliance with the > Council's ICT Security Policy. > Electronic service accepted only at legalservices at bury.gov.uk and on > fax number > 0161 253 5119 . > ************************************************************* > > > -- > 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 No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.21.6/1316 - Release Date: 3/6/2008 6:58 PM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Fri Mar 7 14:09:43 2008 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Fri, 7 Mar 2008 12:09:43 -0800 Subject: [AccessD] FW: CodeL In-Reply-To: References: Message-ID: <006501c8808f$2f0d0440$0301a8c0@HAL9005> Gustav: IIUC, the data already has an occurrence of two single quotes embedded in it. And I think he wants it to go into the db that way. He gets an error whether he uses single quotes or a pair of double quotes in the SQL statement to delimit the string that goes into the SQL table. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, March 07, 2008 11:43 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] FW: CodeL Hi Rocky Yes, it will replace any single-quote with two single-quotes. They are "allowed" but when building a string like your friend does, a single single-quote or double-quote will jam the code: "Set [Memo] = 'O'Hare' " & _ /gustav >>> rockysmolin at bchacc.com 07-03-2008 20:19 >>> Gustav: Within the data that he's trying to insert into the SQL table there is a pair of apostrophes. Will your code have the effect of replacing them? I'm not sure he wants to replace the apostrophes with quote marks. Are apostrophes not allowed in a SQL character field? Thanks and regards, Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, March 07, 2008 10:55 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] FW: CodeL Hi Rocky It is probably double single-quotes and not single double-quotes that are needed. Try with: "Set [Memo] = '" & Replace(vMemo, "'", "''") & "' " & _ /gustav >>> rockysmolin at bchacc.com 07-03-2008 19:44 >>> Dear List: Client (see below) is connecting to a SQL back end with ADO (he's doing his own programming and calling me occasionally for help). When trying to update a memo field with embedded apostrophes he get a syntax error. He says that when he connected with ODBC he didn't have the problem. The code below errors on the Conn.Execute with "incorrect syntax". I told him to change the apostrophe delimiters around vMemo to double quote marks. Then he gets an error which says 'can't be longer than 128 characters. Memo field is defined as nvarChar 4000. I'm pretty weak in SQL and ADO. Is there a solution to this? MTIA Rocky 'ADO connection to MS Sql: vMemo is a declared Variant that is loaded with the memo filed and then when dirty, I am attempting to update the SQL back end. CLID is the integer ID number of the current client Conn.Execute "UPDATE tClients " & _ "Set [Memo] = '" & vMemo & "' " & _ "WHERE ClientIndex=" & CLID & "" -- 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.5.516 / Virus Database: 269.21.6/1316 - Release Date: 3/6/2008 6:58 PM From rockysmolin at bchacc.com Fri Mar 7 14:12:22 2008 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Fri, 7 Mar 2008 12:12:22 -0800 Subject: [AccessD] FW: CodeL In-Reply-To: References: <004101c88088$2b787000$0301a8c0@HAL9005> Message-ID: <006701c8808f$8de0d5a0$0301a8c0@HAL9005> Mark: I'm using apostrophe and single quote interchangeably. The data contains an occurrence of a double apostrophe. Whether he delimits it in the SQL statement with a double quote (by using a double double quote) or an apostrophe, he gets an error. Regards, Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Friday, March 07, 2008 11:40 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] FW: CodeL Is there a difference between and apostrophe and a single quote? I think the delimeter is the problem...you are using a delimeter...that is also text in your data? Mark A. Matte > From: rockysmolin at bchacc.com > To: accessd at databaseadvisors.com > Date: Fri, 7 Mar 2008 11:19:30 -0800 > Subject: Re: [AccessD] FW: CodeL > > Gustav: > > Within the data that he's trying to insert into the SQL table there is > a pair of apostrophes. Will your code have the effect of replacing > them? I'm not sure he wants to replace the apostrophes with quote > marks. Are apostrophes not allowed in a SQL character field? > > Thanks and regards, > > Rocky > > > > > > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav > Brock > Sent: Friday, March 07, 2008 10:55 AM > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] FW: CodeL > > Hi Rocky > > It is probably double single-quotes and not single double-quotes that > are needed. > Try with: > > "Set [Memo] = '" & Replace(vMemo, "'", "''") & "' " & _ > > /gustav > > >>>> rockysmolin at bchacc.com 07-03-2008 19:44>>> > Dear List: > > Client (see below) is connecting to a SQL back end with ADO (he's > doing his own programming and calling me occasionally for help). > > When trying to update a memo field with embedded apostrophes he get a > syntax error. He says that when he connected with ODBC he didn't have the problem. > > The code below errors on the Conn.Execute with "incorrect syntax". > > I told him to change the apostrophe delimiters around vMemo to double > quote marks. Then he gets an error which says 'can't be longer than > 128 characters. Memo field is defined as nvarChar 4000. > > I'm pretty weak in SQL and ADO. Is there a solution to this? > > MTIA > > Rocky > > 'ADO connection to MS Sql: > > vMemo is a declared Variant that is loaded with the memo filed and > then when dirty, I am attempting to update the SQL back end. CLID is > the integer ID number of the current client > > Conn.Execute "UPDATE tClients " & _ > "Set [Memo] = '" & vMemo & "' " & _ > "WHERE ClientIndex=" & CLID & "" > > > > -- > 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.5.516 / Virus Database: 269.21.6/1316 - Release Date: > 3/6/2008 > 6:58 PM > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com _________________________________________________________________ Shed those extra pounds with MSN and The Biggest Loser! http://biggestloser.msn.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.5.516 / Virus Database: 269.21.6/1316 - Release Date: 3/6/2008 6:58 PM From robert at webedb.com Fri Mar 7 14:16:15 2008 From: robert at webedb.com (Robert L. Stewart) Date: Fri, 07 Mar 2008 14:16:15 -0600 Subject: [AccessD] Access 14 Book Authors Wanted In-Reply-To: References: Message-ID: <200803072018.m27KIEQm021361@databaseadvisors.com> I sent my information in to them. It has been too long since I wrote part of the Teach Yourself Access 97 in 21 days. I really should do it again. :-) At 12:00 PM 3/7/2008, you wrote: >Date: Fri, 7 Mar 2008 15:49:17 +0000 >From: Martin W Reid >Subject: Re: [AccessD] Access 14 Book Authors Wanted >To: Access Developers discussion and problem solving > >Message-ID: > > > >Content-Type: text/plain; charset="us-ascii" > >Worth doing even for the Interest only. I have been involved in a >few of these and its interesting to see how the software develops. >Some interesting stuff re Access as well! > >Martin > > > > >Martin WP Reid >Information Services >Queen's University >Riddel Hall >185 Stranmillis Road >Belfast >BT9 5EE >Tel : 02890974465 >Email : mwp.reid at qub.ac.uk >________________________________________ >From: accessd-bounces at databaseadvisors.com >[accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters >[dwaters at usinternet.com] >Sent: 07 March 2008 13:35 >To: 'Access Developers discussion and problem solving' >Subject: [AccessD] Access 14 Book Authors Wanted > >FYI . . . > >http://blogs.msdn.com/access/archive/2008/03/06/calling-all-access-book-auth >ors.aspx > From markamatte at hotmail.com Fri Mar 7 14:18:52 2008 From: markamatte at hotmail.com (Mark A Matte) Date: Fri, 7 Mar 2008 20:18:52 +0000 Subject: [AccessD] FW: CodeL In-Reply-To: <006701c8808f$8de0d5a0$0301a8c0@HAL9005> References: <004101c88088$2b787000$0301a8c0@HAL9005> <006701c8808f$8de0d5a0$0301a8c0@HAL9005> Message-ID: Can you use the pipe(|) as a delimeter? > From: rockysmolin at bchacc.com > To: accessd at databaseadvisors.com > Date: Fri, 7 Mar 2008 12:12:22 -0800 > Subject: Re: [AccessD] FW: CodeL > > Mark: > > I'm using apostrophe and single quote interchangeably. > > The data contains an occurrence of a double apostrophe. > > Whether he delimits it in the SQL statement with a double quote (by using a > double double quote) or an apostrophe, he gets an error. > > Regards, > > Rocky > > > > > > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte > Sent: Friday, March 07, 2008 11:40 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] FW: CodeL > > > > Is there a difference between and apostrophe and a single quote? > > I think the delimeter is the problem...you are using a delimeter...that is > also text in your data? > > Mark A. Matte > > >> From: rockysmolin at bchacc.com >> To: accessd at databaseadvisors.com >> Date: Fri, 7 Mar 2008 11:19:30 -0800 >> Subject: Re: [AccessD] FW: CodeL >> >> Gustav: >> >> Within the data that he's trying to insert into the SQL table there is >> a pair of apostrophes. Will your code have the effect of replacing >> them? I'm not sure he wants to replace the apostrophes with quote >> marks. Are apostrophes not allowed in a SQL character field? >> >> Thanks and regards, >> >> Rocky >> >> >> >> >> >> >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav >> Brock >> Sent: Friday, March 07, 2008 10:55 AM >> To: accessd at databaseadvisors.com >> Subject: Re: [AccessD] FW: CodeL >> >> Hi Rocky >> >> It is probably double single-quotes and not single double-quotes that >> are needed. >> Try with: >> >> "Set [Memo] = '" & Replace(vMemo, "'", "''") & "' " & _ >> >> /gustav >> >> >>>>> rockysmolin at bchacc.com 07-03-2008 19:44>>> >> Dear List: >> >> Client (see below) is connecting to a SQL back end with ADO (he's >> doing his own programming and calling me occasionally for help). >> >> When trying to update a memo field with embedded apostrophes he get a >> syntax error. He says that when he connected with ODBC he didn't have the > problem. >> >> The code below errors on the Conn.Execute with "incorrect syntax". >> >> I told him to change the apostrophe delimiters around vMemo to double >> quote marks. Then he gets an error which says 'can't be longer than >> 128 characters. Memo field is defined as nvarChar 4000. >> >> I'm pretty weak in SQL and ADO. Is there a solution to this? >> >> MTIA >> >> Rocky >> >> 'ADO connection to MS Sql: >> >> vMemo is a declared Variant that is loaded with the memo filed and >> then when dirty, I am attempting to update the SQL back end. CLID is >> the integer ID number of the current client >> >> Conn.Execute "UPDATE tClients " & _ >> "Set [Memo] = '" & vMemo & "' " & _ >> "WHERE ClientIndex=" & CLID & "" >> >> >> >> -- >> 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.5.516 / Virus Database: 269.21.6/1316 - Release Date: >> 3/6/2008 >> 6:58 PM >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com > > _________________________________________________________________ > Shed those extra pounds with MSN and The Biggest Loser! > http://biggestloser.msn.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.5.516 / Virus Database: 269.21.6/1316 - Release Date: 3/6/2008 > 6:58 PM > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com _________________________________________________________________ Shed those extra pounds with MSN and The Biggest Loser! http://biggestloser.msn.com/ From rockysmolin at bchacc.com Fri Mar 7 14:52:49 2008 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Fri, 7 Mar 2008 12:52:49 -0800 Subject: [AccessD] FW: CodeL In-Reply-To: References: <004101c88088$2b787000$0301a8c0@HAL9005> <006701c8808f$8de0d5a0$0301a8c0@HAL9005> Message-ID: <006c01c88095$344be290$0301a8c0@HAL9005> I forward and find out. Never saw that before but that don't mean nothin'. Lots of stuff in Access *I* never saw before. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Friday, March 07, 2008 12:19 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] FW: CodeL Can you use the pipe(|) as a delimeter? > From: rockysmolin at bchacc.com > To: accessd at databaseadvisors.com > Date: Fri, 7 Mar 2008 12:12:22 -0800 > Subject: Re: [AccessD] FW: CodeL > > Mark: > > I'm using apostrophe and single quote interchangeably. > > The data contains an occurrence of a double apostrophe. > > Whether he delimits it in the SQL statement with a double quote (by > using a double double quote) or an apostrophe, he gets an error. > > Regards, > > Rocky > > > > > > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A > Matte > Sent: Friday, March 07, 2008 11:40 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] FW: CodeL > > > > Is there a difference between and apostrophe and a single quote? > > I think the delimeter is the problem...you are using a > delimeter...that is also text in your data? > > Mark A. Matte > > >> From: rockysmolin at bchacc.com >> To: accessd at databaseadvisors.com >> Date: Fri, 7 Mar 2008 11:19:30 -0800 >> Subject: Re: [AccessD] FW: CodeL >> >> Gustav: >> >> Within the data that he's trying to insert into the SQL table there >> is a pair of apostrophes. Will your code have the effect of replacing >> them? I'm not sure he wants to replace the apostrophes with quote >> marks. Are apostrophes not allowed in a SQL character field? >> >> Thanks and regards, >> >> Rocky >> >> >> >> >> >> >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav >> Brock >> Sent: Friday, March 07, 2008 10:55 AM >> To: accessd at databaseadvisors.com >> Subject: Re: [AccessD] FW: CodeL >> >> Hi Rocky >> >> It is probably double single-quotes and not single double-quotes that >> are needed. >> Try with: >> >> "Set [Memo] = '" & Replace(vMemo, "'", "''") & "' " & _ >> >> /gustav >> >> >>>>> rockysmolin at bchacc.com 07-03-2008 19:44>>> >> Dear List: >> >> Client (see below) is connecting to a SQL back end with ADO (he's >> doing his own programming and calling me occasionally for help). >> >> When trying to update a memo field with embedded apostrophes he get a >> syntax error. He says that when he connected with ODBC he didn't have >> the > problem. >> >> The code below errors on the Conn.Execute with "incorrect syntax". >> >> I told him to change the apostrophe delimiters around vMemo to double >> quote marks. Then he gets an error which says 'can't be longer than >> 128 characters. Memo field is defined as nvarChar 4000. >> >> I'm pretty weak in SQL and ADO. Is there a solution to this? >> >> MTIA >> >> Rocky >> >> 'ADO connection to MS Sql: >> >> vMemo is a declared Variant that is loaded with the memo filed and >> then when dirty, I am attempting to update the SQL back end. CLID is >> the integer ID number of the current client >> >> Conn.Execute "UPDATE tClients " & _ >> "Set [Memo] = '" & vMemo & "' " & _ >> "WHERE ClientIndex=" & CLID & "" >> >> >> >> -- >> 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.5.516 / Virus Database: 269.21.6/1316 - Release Date: >> 3/6/2008 >> 6:58 PM >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com > > _________________________________________________________________ > Shed those extra pounds with MSN and The Biggest Loser! > http://biggestloser.msn.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.5.516 / Virus Database: 269.21.6/1316 - Release Date: > 3/6/2008 > 6:58 PM > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com _________________________________________________________________ Shed those extra pounds with MSN and The Biggest Loser! http://biggestloser.msn.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.5.516 / Virus Database: 269.21.6/1316 - Release Date: 3/6/2008 6:58 PM From Patricia.O'Connor at otda.state.ny.us Fri Mar 7 15:27:26 2008 From: Patricia.O'Connor at otda.state.ny.us (O'Connor, Patricia (OTDA)) Date: Fri, 7 Mar 2008 16:27:26 -0500 Subject: [AccessD] FW: CodeL In-Reply-To: <006c01c88095$344be290$0301a8c0@HAL9005> References: <004101c88088$2b787000$0301a8c0@HAL9005><006701c8808f$8de0d5a0$0301a8c0@HAL9005> <006c01c88095$344be290$0301a8c0@HAL9005> Message-ID: <01DBAB52E30A9A4AB3D94EF8029EDBE8021BB2C0@EXCNYSM0A1AI.nysemail.nyenet> What is he using to type his sql code? IF he is using WORD then make sure the AUTOCORRECT -> "Straight quotes" with "smart quotes" Is NOT checked.... I know sounds weird but that caused me all sorts of problems with some SQL code I had for Access,SQL and ORACLE. The only other thing I would say would be IF he is doing this though VBA/VB etc then Use CHR(34) for double quote" or CHR(39) for single quote ' strSQL = CHR(34) & "My last name is O" & CHR(39) &CHR(39) & "Connor" I would have to see his code to try it out here Good luck Patti ************************************************** * Patricia O'Connor * Information Technology Specialist 3 (Programming) * 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 > Rocky Smolin at Beach Access Software > Sent: Friday, March 07, 2008 03:53 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] FW: CodeL > > I forward and find out. Never saw that before but that don't > mean nothin'. > Lots of stuff in Access *I* never saw before. > > Rocky > > > > > > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Mark A Matte > Sent: Friday, March 07, 2008 12:19 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] FW: CodeL > > > Can you use the pipe(|) as a delimeter? > > > > From: rockysmolin at bchacc.com > > To: accessd at databaseadvisors.com > > Date: Fri, 7 Mar 2008 12:12:22 -0800 > > Subject: Re: [AccessD] FW: CodeL > > > > Mark: > > > > I'm using apostrophe and single quote interchangeably. > > > > The data contains an occurrence of a double apostrophe. > > > > Whether he delimits it in the SQL statement with a double quote (by > > using a double double quote) or an apostrophe, he gets an error. > > > > Regards, > > > > Rocky > > > > > > > > > > > > > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A > > Matte > > Sent: Friday, March 07, 2008 11:40 AM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] FW: CodeL > > > > > > > > Is there a difference between and apostrophe and a single quote? > > > > I think the delimeter is the problem...you are using a > > delimeter...that is also text in your data? > > > > Mark A. Matte > > > > > >> From: rockysmolin at bchacc.com > >> To: accessd at databaseadvisors.com > >> Date: Fri, 7 Mar 2008 11:19:30 -0800 > >> Subject: Re: [AccessD] FW: CodeL > >> > >> Gustav: > >> > >> Within the data that he's trying to insert into the SQL > table there > >> is a pair of apostrophes. Will your code have the effect > of replacing > >> them? I'm not sure he wants to replace the apostrophes with quote > >> marks. Are apostrophes not allowed in a SQL character field? > >> > >> Thanks and regards, > >> > >> Rocky > >> > >> > >> > >> > >> > >> > >> > >> > >> -----Original Message----- > >> From: accessd-bounces at databaseadvisors.com > >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav > >> Brock > >> Sent: Friday, March 07, 2008 10:55 AM > >> To: accessd at databaseadvisors.com > >> Subject: Re: [AccessD] FW: CodeL > >> > >> Hi Rocky > >> > >> It is probably double single-quotes and not single > double-quotes that > >> are needed. > >> Try with: > >> > >> "Set [Memo] = '" & Replace(vMemo, "'", "''") & "' " & _ > >> > >> /gustav > >> > >> > >>>>> rockysmolin at bchacc.com 07-03-2008 19:44>>> > >> Dear List: > >> > >> Client (see below) is connecting to a SQL back end with ADO (he's > >> doing his own programming and calling me occasionally for help). > >> > >> When trying to update a memo field with embedded > apostrophes he get a > >> syntax error. He says that when he connected with ODBC he > didn't have > >> the > > problem. > >> > >> The code below errors on the Conn.Execute with "incorrect syntax". > >> > >> I told him to change the apostrophe delimiters around > vMemo to double > >> quote marks. Then he gets an error which says 'can't be longer than > >> 128 characters. Memo field is defined as nvarChar 4000. > >> > >> I'm pretty weak in SQL and ADO. Is there a solution to this? > >> > >> MTIA > >> > >> Rocky > >> > >> 'ADO connection to MS Sql: > >> > >> vMemo is a declared Variant that is loaded with the memo filed and > >> then when dirty, I am attempting to update the SQL back > end. CLID is > >> the integer ID number of the current client > >> > >> Conn.Execute "UPDATE tClients " & _ > >> "Set [Memo] = '" & vMemo & "' " & _ > >> "WHERE ClientIndex=" & CLID & "" > >> > >> > >> > >> -- > >> 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.5.516 / Virus Database: 269.21.6/1316 - Release Date: > >> 3/6/2008 > >> 6:58 PM > >> > >> > >> -- > >> AccessD mailing list > >> AccessD at databaseadvisors.com > >> http://databaseadvisors.com/mailman/listinfo/accessd > >> Website: http://www.databaseadvisors.com > > > > _________________________________________________________________ > > Shed those extra pounds with MSN and The Biggest Loser! > > http://biggestloser.msn.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.5.516 / Virus Database: 269.21.6/1316 - Release Date: > > 3/6/2008 > > 6:58 PM > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > _________________________________________________________________ > Shed those extra pounds with MSN and The Biggest Loser! > http://biggestloser.msn.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.5.516 / Virus Database: 269.21.6/1316 - Release > Date: 3/6/2008 > 6:58 PM > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From eric.starkenburg at home.nl Fri Mar 7 15:36:17 2008 From: eric.starkenburg at home.nl (Eric Starkenburg) Date: Fri, 7 Mar 2008 22:36:17 +0100 Subject: [AccessD] FW: CodeL In-Reply-To: <006c01c88095$344be290$0301a8c0@HAL9005> References: <004101c88088$2b787000$0301a8c0@HAL9005><006701c8808f$8de0d5a0$0301a8c0@HAL9005> <006c01c88095$344be290$0301a8c0@HAL9005> Message-ID: <000001c8809b$46d9e370$0501a8c0@PC2M> Hi guys, Don't use SQL with text that can contain either ' or " to save in a tabledef but just use a recordset instead. Using SQL will leave you in trouble.... Regards, Eric -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Friday, March 07, 2008 9:53 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] FW: CodeL I forward and find out. Never saw that before but that don't mean nothin'. Lots of stuff in Access *I* never saw before. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Friday, March 07, 2008 12:19 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] FW: CodeL Can you use the pipe(|) as a delimeter? > From: rockysmolin at bchacc.com > To: accessd at databaseadvisors.com > Date: Fri, 7 Mar 2008 12:12:22 -0800 > Subject: Re: [AccessD] FW: CodeL > > Mark: > > I'm using apostrophe and single quote interchangeably. > > The data contains an occurrence of a double apostrophe. > > Whether he delimits it in the SQL statement with a double quote (by > using a double double quote) or an apostrophe, he gets an error. > > Regards, > > Rocky > > > > > > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A > Matte > Sent: Friday, March 07, 2008 11:40 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] FW: CodeL > > > > Is there a difference between and apostrophe and a single quote? > > I think the delimeter is the problem...you are using a > delimeter...that is also text in your data? > > Mark A. Matte > > >> From: rockysmolin at bchacc.com >> To: accessd at databaseadvisors.com >> Date: Fri, 7 Mar 2008 11:19:30 -0800 >> Subject: Re: [AccessD] FW: CodeL >> >> Gustav: >> >> Within the data that he's trying to insert into the SQL table there >> is a pair of apostrophes. Will your code have the effect of replacing >> them? I'm not sure he wants to replace the apostrophes with quote >> marks. Are apostrophes not allowed in a SQL character field? >> >> Thanks and regards, >> >> Rocky >> >> >> >> >> >> >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav >> Brock >> Sent: Friday, March 07, 2008 10:55 AM >> To: accessd at databaseadvisors.com >> Subject: Re: [AccessD] FW: CodeL >> >> Hi Rocky >> >> It is probably double single-quotes and not single double-quotes that >> are needed. >> Try with: >> >> "Set [Memo] = '" & Replace(vMemo, "'", "''") & "' " & _ >> >> /gustav >> >> >>>>> rockysmolin at bchacc.com 07-03-2008 19:44>>> >> Dear List: >> >> Client (see below) is connecting to a SQL back end with ADO (he's >> doing his own programming and calling me occasionally for help). >> >> When trying to update a memo field with embedded apostrophes he get a >> syntax error. He says that when he connected with ODBC he didn't have >> the > problem. >> >> The code below errors on the Conn.Execute with "incorrect syntax". >> >> I told him to change the apostrophe delimiters around vMemo to double >> quote marks. Then he gets an error which says 'can't be longer than >> 128 characters. Memo field is defined as nvarChar 4000. >> >> I'm pretty weak in SQL and ADO. Is there a solution to this? >> >> MTIA >> >> Rocky >> >> 'ADO connection to MS Sql: >> >> vMemo is a declared Variant that is loaded with the memo filed and >> then when dirty, I am attempting to update the SQL back end. CLID is >> the integer ID number of the current client >> >> Conn.Execute "UPDATE tClients " & _ >> "Set [Memo] = '" & vMemo & "' " & _ >> "WHERE ClientIndex=" & CLID & "" >> >> >> >> -- >> 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.5.516 / Virus Database: 269.21.6/1316 - Release Date: >> 3/6/2008 >> 6:58 PM >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com > > _________________________________________________________________ > Shed those extra pounds with MSN and The Biggest Loser! > http://biggestloser.msn.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.5.516 / Virus Database: 269.21.6/1316 - Release Date: > 3/6/2008 > 6:58 PM > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com _________________________________________________________________ Shed those extra pounds with MSN and The Biggest Loser! http://biggestloser.msn.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.5.516 / Virus Database: 269.21.6/1316 - Release Date: 3/6/2008 6:58 PM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _____ avast! Antivirus : Uitgaande bericht is niet besmet. Virus Gegevensbestand (VPS): 080307-0, 07-03-2008 Getest op: 7-3-2008 22:36:17 avast! - auteursrecht (c) 1988-2008 ALWIL Software. From fuller.artful at gmail.com Fri Mar 7 16:07:29 2008 From: fuller.artful at gmail.com (Arthur Fuller) Date: Fri, 7 Mar 2008 17:07:29 -0500 Subject: [AccessD] FW: CodeL In-Reply-To: <000001c8809b$46d9e370$0501a8c0@PC2M> References: <004101c88088$2b787000$0301a8c0@HAL9005> <006701c8808f$8de0d5a0$0301a8c0@HAL9005> <006c01c88095$344be290$0301a8c0@HAL9005> <000001c8809b$46d9e370$0501a8c0@PC2M> Message-ID: <29f585dd0803071407o56c47697j1b18765a009bbd28@mail.gmail.com> This is overkill, I think, Eric. You just have to know how to handle SQL containing either single or double quotes or neither. It's quite straightforward, really. You can eliminate all the hassle for any column that might contain these values by doubling up on the single and double quotes, which you can do in exactly one statement each: Replace( [columnName], Chr(39), (Chr(39) & Chr(39) ) and similarly Replace( [columnName], Chr(34), (Chr(34) & Chr(34) ) You can wrap both calls into a function if you wish. The code does nothing on values that don't contain the offending characters. Having been bitten by surnames like O'Hara and embedded quotations, if I suspect that this might ever occur, I just pre-empt it right from the beginning. hth, Arthur On 3/7/08, Eric Starkenburg wrote: > > Hi guys, > > Don't use SQL with text that can contain either ' or " to save in a > tabledef > but just use a recordset instead. Using SQL will leave you in trouble.... > > Regards, > Eric > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at > Beach Access Software > > Sent: Friday, March 07, 2008 9:53 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] FW: CodeL > > I forward and find out. Never saw that before but that don't mean > nothin'. > Lots of stuff in Access *I* never saw before. > > Rocky > > > > > > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte > Sent: Friday, March 07, 2008 12:19 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] FW: CodeL > > > Can you use the pipe(|) as a delimeter? > > > > From: rockysmolin at bchacc.com > > To: accessd at databaseadvisors.com > > Date: Fri, 7 Mar 2008 12:12:22 -0800 > > Subject: Re: [AccessD] FW: CodeL > > > > Mark: > > > > I'm using apostrophe and single quote interchangeably. > > > > The data contains an occurrence of a double apostrophe. > > > > Whether he delimits it in the SQL statement with a double quote (by > > using a double double quote) or an apostrophe, he gets an error. > > > > Regards, > > > > Rocky > > > > > > > > > > > > > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A > > Matte > > Sent: Friday, March 07, 2008 11:40 AM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] FW: CodeL > > > > > > > > Is there a difference between and apostrophe and a single quote? > > > > I think the delimeter is the problem...you are using a > > delimeter...that is also text in your data? > > > > Mark A. Matte > > > > > >> From: rockysmolin at bchacc.com > >> To: accessd at databaseadvisors.com > >> Date: Fri, 7 Mar 2008 11:19:30 -0800 > >> Subject: Re: [AccessD] FW: CodeL > >> > >> Gustav: > >> > >> Within the data that he's trying to insert into the SQL table there > >> is a pair of apostrophes. Will your code have the effect of replacing > >> them? I'm not sure he wants to replace the apostrophes with quote > >> marks. Are apostrophes not allowed in a SQL character field? > >> > >> Thanks and regards, > >> > >> Rocky > >> > >> > >> > >> > >> > >> > >> > >> > >> -----Original Message----- > >> From: accessd-bounces at databaseadvisors.com > >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav > >> Brock > >> Sent: Friday, March 07, 2008 10:55 AM > >> To: accessd at databaseadvisors.com > >> Subject: Re: [AccessD] FW: CodeL > >> > >> Hi Rocky > >> > >> It is probably double single-quotes and not single double-quotes that > >> are needed. > >> Try with: > >> > >> "Set [Memo] = '" & Replace(vMemo, "'", "''") & "' " & _ > >> > >> /gustav > >> > >> > >>>>> rockysmolin at bchacc.com 07-03-2008 19:44>>> > >> Dear List: > >> > >> Client (see below) is connecting to a SQL back end with ADO (he's > >> doing his own programming and calling me occasionally for help). > >> > >> When trying to update a memo field with embedded apostrophes he get a > >> syntax error. He says that when he connected with ODBC he didn't have > >> the > > problem. > >> > >> The code below errors on the Conn.Execute with "incorrect syntax". > >> > >> I told him to change the apostrophe delimiters around vMemo to double > >> quote marks. Then he gets an error which says 'can't be longer than > >> 128 characters. Memo field is defined as nvarChar 4000. > >> > >> I'm pretty weak in SQL and ADO. Is there a solution to this? > >> > >> MTIA > >> > >> Rocky > >> > >> 'ADO connection to MS Sql: > >> > >> vMemo is a declared Variant that is loaded with the memo filed and > >> then when dirty, I am attempting to update the SQL back end. CLID is > >> the integer ID number of the current client > >> > >> Conn.Execute "UPDATE tClients " & _ > >> "Set [Memo] = '" & vMemo & "' " & _ > >> "WHERE ClientIndex=" & CLID & "" > >> > >> > >> > >> -- > >> 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.5.516 / Virus Database: 269.21.6/1316 - Release Date: > >> 3/6/2008 > >> 6:58 PM > >> > >> > >> -- > >> AccessD mailing list > >> AccessD at databaseadvisors.com > >> http://databaseadvisors.com/mailman/listinfo/accessd > >> Website: http://www.databaseadvisors.com > > > > _________________________________________________________________ > > Shed those extra pounds with MSN and The Biggest Loser! > > http://biggestloser.msn.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.5.516 / Virus Database: 269.21.6/1316 - Release Date: > > 3/6/2008 > > 6:58 PM > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > _________________________________________________________________ > Shed those extra pounds with MSN and The Biggest Loser! > http://biggestloser.msn.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.5.516 / Virus Database: 269.21.6/1316 - Release Date: 3/6/2008 > 6:58 PM > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > > _____ > > avast! Antivirus : Uitgaande bericht is niet > besmet. > > > Virus Gegevensbestand (VPS): 080307-0, 07-03-2008 > Getest op: 7-3-2008 22:36:17 > avast! - auteursrecht (c) 1988-2008 ALWIL Software. > > > > > -- > > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From eric.starkenburg at home.nl Fri Mar 7 16:22:37 2008 From: eric.starkenburg at home.nl (Eric Starkenburg) Date: Fri, 7 Mar 2008 23:22:37 +0100 Subject: [AccessD] FW: CodeL In-Reply-To: <29f585dd0803071407o56c47697j1b18765a009bbd28@mail.gmail.com> References: <004101c88088$2b787000$0301a8c0@HAL9005><006701c8808f$8de0d5a0$0301a8c0@HAL9005><006c01c88095$344be290$0301a8c0@HAL9005><000001c8809b$46d9e370$0501a8c0@PC2M> <29f585dd0803071407o56c47697j1b18765a009bbd28@mail.gmail.com> Message-ID: <000301c880a1$bf9e1f00$0501a8c0@PC2M> Arthur, Does this work when both characters exist in one sentence? Maybe the single quote once and two double quotes. Regards, Eric -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Friday, March 07, 2008 11:07 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] FW: CodeL This is overkill, I think, Eric. You just have to know how to handle SQL containing either single or double quotes or neither. It's quite straightforward, really. You can eliminate all the hassle for any column that might contain these values by doubling up on the single and double quotes, which you can do in exactly one statement each: Replace( [columnName], Chr(39), (Chr(39) & Chr(39) ) and similarly Replace( [columnName], Chr(34), (Chr(34) & Chr(34) ) You can wrap both calls into a function if you wish. The code does nothing on values that don't contain the offending characters. Having been bitten by surnames like O'Hara and embedded quotations, if I suspect that this might ever occur, I just pre-empt it right from the beginning. hth, Arthur On 3/7/08, Eric Starkenburg wrote: > > Hi guys, > > Don't use SQL with text that can contain either ' or " to save in a > tabledef > but just use a recordset instead. Using SQL will leave you in trouble.... > > Regards, > Eric > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at > Beach Access Software > > Sent: Friday, March 07, 2008 9:53 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] FW: CodeL > > I forward and find out. Never saw that before but that don't mean > nothin'. > Lots of stuff in Access *I* never saw before. > > Rocky > > > > > > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte > Sent: Friday, March 07, 2008 12:19 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] FW: CodeL > > > Can you use the pipe(|) as a delimeter? > > > > From: rockysmolin at bchacc.com > > To: accessd at databaseadvisors.com > > Date: Fri, 7 Mar 2008 12:12:22 -0800 > > Subject: Re: [AccessD] FW: CodeL > > > > Mark: > > > > I'm using apostrophe and single quote interchangeably. > > > > The data contains an occurrence of a double apostrophe. > > > > Whether he delimits it in the SQL statement with a double quote (by > > using a double double quote) or an apostrophe, he gets an error. > > > > Regards, > > > > Rocky > > > > > > > > > > > > > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A > > Matte > > Sent: Friday, March 07, 2008 11:40 AM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] FW: CodeL > > > > > > > > Is there a difference between and apostrophe and a single quote? > > > > I think the delimeter is the problem...you are using a > > delimeter...that is also text in your data? > > > > Mark A. Matte > > > > > >> From: rockysmolin at bchacc.com > >> To: accessd at databaseadvisors.com > >> Date: Fri, 7 Mar 2008 11:19:30 -0800 > >> Subject: Re: [AccessD] FW: CodeL > >> > >> Gustav: > >> > >> Within the data that he's trying to insert into the SQL table there > >> is a pair of apostrophes. Will your code have the effect of replacing > >> them? I'm not sure he wants to replace the apostrophes with quote > >> marks. Are apostrophes not allowed in a SQL character field? > >> > >> Thanks and regards, > >> > >> Rocky > >> > >> > >> > >> > >> > >> > >> > >> > >> -----Original Message----- > >> From: accessd-bounces at databaseadvisors.com > >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav > >> Brock > >> Sent: Friday, March 07, 2008 10:55 AM > >> To: accessd at databaseadvisors.com > >> Subject: Re: [AccessD] FW: CodeL > >> > >> Hi Rocky > >> > >> It is probably double single-quotes and not single double-quotes that > >> are needed. > >> Try with: > >> > >> "Set [Memo] = '" & Replace(vMemo, "'", "''") & "' " & _ > >> > >> /gustav > >> > >> > >>>>> rockysmolin at bchacc.com 07-03-2008 19:44>>> > >> Dear List: > >> > >> Client (see below) is connecting to a SQL back end with ADO (he's > >> doing his own programming and calling me occasionally for help). > >> > >> When trying to update a memo field with embedded apostrophes he get a > >> syntax error. He says that when he connected with ODBC he didn't have > >> the > > problem. > >> > >> The code below errors on the Conn.Execute with "incorrect syntax". > >> > >> I told him to change the apostrophe delimiters around vMemo to double > >> quote marks. Then he gets an error which says 'can't be longer than > >> 128 characters. Memo field is defined as nvarChar 4000. > >> > >> I'm pretty weak in SQL and ADO. Is there a solution to this? > >> > >> MTIA > >> > >> Rocky > >> > >> 'ADO connection to MS Sql: > >> > >> vMemo is a declared Variant that is loaded with the memo filed and > >> then when dirty, I am attempting to update the SQL back end. CLID is > >> the integer ID number of the current client > >> > >> Conn.Execute "UPDATE tClients " & _ > >> "Set [Memo] = '" & vMemo & "' " & _ > >> "WHERE ClientIndex=" & CLID & "" > >> > >> > >> > >> -- > >> 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.5.516 / Virus Database: 269.21.6/1316 - Release Date: > >> 3/6/2008 > >> 6:58 PM > >> > >> > >> -- > >> AccessD mailing list > >> AccessD at databaseadvisors.com > >> http://databaseadvisors.com/mailman/listinfo/accessd > >> Website: http://www.databaseadvisors.com > > > > _________________________________________________________________ > > Shed those extra pounds with MSN and The Biggest Loser! > > http://biggestloser.msn.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.5.516 / Virus Database: 269.21.6/1316 - Release Date: > > 3/6/2008 > > 6:58 PM > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > _________________________________________________________________ > Shed those extra pounds with MSN and The Biggest Loser! > http://biggestloser.msn.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.5.516 / Virus Database: 269.21.6/1316 - Release Date: 3/6/2008 > 6:58 PM > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > > _____ > > avast! Antivirus : Uitgaande bericht is niet > besmet. > > > Virus Gegevensbestand (VPS): 080307-0, 07-03-2008 > Getest op: 7-3-2008 22:36:17 > avast! - auteursrecht (c) 1988-2008 ALWIL Software. > > > > > -- > > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _____ avast! Antivirus : Uitgaande bericht is niet besmet. Virus Gegevensbestand (VPS): 080307-0, 07-03-2008 Getest op: 7-3-2008 23:22:36 avast! - auteursrecht (c) 1988-2008 ALWIL Software. From fuller.artful at gmail.com Fri Mar 7 16:28:49 2008 From: fuller.artful at gmail.com (Arthur Fuller) Date: Fri, 7 Mar 2008 17:28:49 -0500 Subject: [AccessD] FW: CodeL In-Reply-To: <000301c880a1$bf9e1f00$0501a8c0@PC2M> References: <004101c88088$2b787000$0301a8c0@HAL9005> <006701c8808f$8de0d5a0$0301a8c0@HAL9005> <006c01c88095$344be290$0301a8c0@HAL9005> <000001c8809b$46d9e370$0501a8c0@PC2M> <29f585dd0803071407o56c47697j1b18765a009bbd28@mail.gmail.com> <000301c880a1$bf9e1f00$0501a8c0@PC2M> Message-ID: <29f585dd0803071428oa6740b9m5e713b4e78a37552@mail.gmail.com> If you do both Replace() calls, yes, and the count of occurrences is irrelevant since it replaces them all. Arthur On 3/7/08, Eric Starkenburg wrote: > > Arthur, > > Does this work when both characters exist in one sentence? > Maybe the single quote once and two double quotes. > > > > Regards, > Eric > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller > Sent: Friday, March 07, 2008 11:07 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] FW: CodeL > > This is overkill, I think, Eric. You just have to know how to handle SQL > containing either single or double quotes or neither. It's quite > straightforward, really. You can eliminate all the hassle for any column > that might contain these values by doubling up on the single and double > quotes, which you can do in exactly one statement each: > > Replace( [columnName], Chr(39), (Chr(39) & Chr(39) ) > and similarly > Replace( [columnName], Chr(34), (Chr(34) & Chr(34) ) > > You can wrap both calls into a function if you wish. The code does nothing > on values that don't contain the offending characters. > > Having been bitten by surnames like O'Hara and embedded quotations, if I > suspect that this might ever occur, I just pre-empt it right from the > beginning. > > hth, > Arthur > From jeffrey.demulling at usbank.com Fri Mar 7 16:40:44 2008 From: jeffrey.demulling at usbank.com (jeffrey.demulling at usbank.com) Date: Fri, 7 Mar 2008 16:40:44 -0600 Subject: [AccessD] FW: CodeL In-Reply-To: <29f585dd0803071428oa6740b9m5e713b4e78a37552@mail.gmail.com> Message-ID: Here is code I use to handle this problem when doing SQL updates on MS SQL Server DBs '--------------------------------------------------------------------------------------- ' Module : mdlReplace ' DateTime : 2004-Mar-29 16:14 ' Author : Jeffrey F. Demulling ' Purpose : Used to clean up sql statements with quotes(apostrophes) and double quotes and make ' it so it can be used in on the fly statements ' Modified : 2004-Mar-29 16:14 - Jeffrey F. Demulling ' Notes : Parts of the code in this module come from Tom Jordan at TriniDat Software Entwicklung GmbH of Duesseldorf BMGH '--------------------------------------------------------------------------------------- Option Compare Database Public Function AddQuote(vData As Variant) As String '--------------------------------------------------------------------------------------- ' Procedure : AddQuote ' DateTime : 2004-Mar-29 16:15 ' Author : Jeffrey F. Demulling ' Purpose : Adds double quotes to the string passed, and also cleans up any double ' and or single quotes within the string passed ' Modified : 2004-Mar-29 16:15 - Jeffrey F. Demulling '--------------------------------------------------------------------------------------- ' 'Const QUOTE = """" '4 quotation marks in a row Const QUOTE = "'" On Error GoTo AddQuote_Error If IsNull(vData) Then AddQuote = "NULL" Else AddQuote = QUOTE & ReplaceQuotes(vData, QUOTE, QUOTE & QUOTE) & QUOTE End If On Error GoTo 0 Exit Function AddQuote_Error: MsgBox "Error " & Err.Number & " (" & Err.Description & ") in procedure AddQuote of Module mdlReplace" End Function Public Function ReplaceQuotes(ByVal varValue As Variant, ByVal strFind As String, ByVal strReplace As String) As Variant '--------------------------------------------------------------------------------------- ' Procedure : ReplaceQuotes ' DateTime : 2004-Mar-29 16:15 ' Author : Jeffrey F. Demulling ' Purpose : Searches the passed string for quotes (double and single) and cleans them up. ' Modified : 2004-Mar-29 16:15 - Jeffrey F. Demulling '--------------------------------------------------------------------------------------- ' Dim intLenFind As Integer Dim intLenReplace As Integer Dim intPos As Integer On Error GoTo ReplaceQuotes_Error If IsNull(varValue) Then ReplaceQuotes = Null Else intLenFind = Len(strFind) intLenReplace = Len(strReplace) intPos = 1 Do intPos = InStr(intPos, varValue, strFind, 0) If intPos > 0 Then varValue = Left(varValue, intPos - 1) & strReplace & _ Mid(varValue, intPos + intLenFind) intPos = intPos + intLenReplace End If Loop Until intPos = 0 End If ReplaceQuotes = varValue On Error GoTo 0 Exit Function ReplaceQuotes_Error: MsgBox "Error " & Err.Number & " (" & Err.Description & ") in procedure ReplaceQuotes of Module mdlReplace" End Function Jeffrey F. Demulling Project Manager U.S. Bank Corporate Trust Services 60 Livingston Avenue EP-MN-WS3C St. Paul, MN 55107-2292 Ph: 651-495-3925 Fax: 651-495-8103 email: jeffrey.demulling at usbank.com "Arthur Fuller" To Sent by: "Access Developers discussion and accessd-bounces at d problem solving" atabaseadvisors.c om cc Subject 03/07/2008 04:28 Re: [AccessD] FW: CodeL PM Please respond to Access Developers discussion and problem solving If you do both Replace() calls, yes, and the count of occurrences is irrelevant since it replaces them all. Arthur On 3/7/08, Eric Starkenburg wrote: > > Arthur, > > Does this work when both characters exist in one sentence? > Maybe the single quote once and two double quotes. > > > > Regards, > Eric > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller > Sent: Friday, March 07, 2008 11:07 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] FW: CodeL > > This is overkill, I think, Eric. You just have to know how to handle SQL > containing either single or double quotes or neither. It's quite > straightforward, really. You can eliminate all the hassle for any column > that might contain these values by doubling up on the single and double > quotes, which you can do in exactly one statement each: > > Replace( [columnName], Chr(39), (Chr(39) & Chr(39) ) > and similarly > Replace( [columnName], Chr(34), (Chr(34) & Chr(34) ) > > You can wrap both calls into a function if you wish. The code does nothing > on values that don't contain the offending characters. > > Having been bitten by surnames like O'Hara and embedded quotations, if I > suspect that this might ever occur, I just pre-empt it right from the > beginning. > > hth, > Arthur > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com U.S. BANCORP made the following annotations --------------------------------------------------------------------- Electronic Privacy Notice. This e-mail, and any attachments, contains information that is, or may be, covered by electronic communications privacy laws, and is also confidential and proprietary in nature. If you are not the intended recipient, please be advised that you are legally prohibited from retaining, using, copying, distributing, or otherwise disclosing this information in any manner. Instead, please reply to the sender that you have received this communication in error, and then immediately delete it. Thank you in advance for your cooperation. --------------------------------------------------------------------- From eric.starkenburg at home.nl Fri Mar 7 16:47:40 2008 From: eric.starkenburg at home.nl (Eric Starkenburg) Date: Fri, 7 Mar 2008 23:47:40 +0100 Subject: [AccessD] FW: CodeL In-Reply-To: References: <29f585dd0803071428oa6740b9m5e713b4e78a37552@mail.gmail.com> Message-ID: <000701c880a5$3fa4c020$0501a8c0@PC2M> But this way you lose any quotes in the string while these were to be saved no? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jeffrey.demulling at usbank.com Sent: Friday, March 07, 2008 11:41 PM To: Access Developers discussion and problem solving Cc: Access Developers discussion and problem solving; accessd-bounces at databaseadvisors.com Subject: Re: [AccessD] FW: CodeL Here is code I use to handle this problem when doing SQL updates on MS SQL Server DBs '--------------------------------------------------------------------------- ------------ ' Module : mdlReplace ' DateTime : 2004-Mar-29 16:14 ' Author : Jeffrey F. Demulling ' Purpose : Used to clean up sql statements with quotes(apostrophes) and double quotes and make ' it so it can be used in on the fly statements ' Modified : 2004-Mar-29 16:14 - Jeffrey F. Demulling ' Notes : Parts of the code in this module come from Tom Jordan at TriniDat Software Entwicklung GmbH of Duesseldorf BMGH '--------------------------------------------------------------------------- ------------ Option Compare Database Public Function AddQuote(vData As Variant) As String '--------------------------------------------------------------------------- ------------ ' Procedure : AddQuote ' DateTime : 2004-Mar-29 16:15 ' Author : Jeffrey F. Demulling ' Purpose : Adds double quotes to the string passed, and also cleans up any double ' and or single quotes within the string passed ' Modified : 2004-Mar-29 16:15 - Jeffrey F. Demulling '--------------------------------------------------------------------------- ------------ ' 'Const QUOTE = """" '4 quotation marks in a row Const QUOTE = "'" On Error GoTo AddQuote_Error If IsNull(vData) Then AddQuote = "NULL" Else AddQuote = QUOTE & ReplaceQuotes(vData, QUOTE, QUOTE & QUOTE) & QUOTE End If On Error GoTo 0 Exit Function AddQuote_Error: MsgBox "Error " & Err.Number & " (" & Err.Description & ") in procedure AddQuote of Module mdlReplace" End Function Public Function ReplaceQuotes(ByVal varValue As Variant, ByVal strFind As String, ByVal strReplace As String) As Variant '--------------------------------------------------------------------------- ------------ ' Procedure : ReplaceQuotes ' DateTime : 2004-Mar-29 16:15 ' Author : Jeffrey F. Demulling ' Purpose : Searches the passed string for quotes (double and single) and cleans them up. ' Modified : 2004-Mar-29 16:15 - Jeffrey F. Demulling '--------------------------------------------------------------------------- ------------ ' Dim intLenFind As Integer Dim intLenReplace As Integer Dim intPos As Integer On Error GoTo ReplaceQuotes_Error If IsNull(varValue) Then ReplaceQuotes = Null Else intLenFind = Len(strFind) intLenReplace = Len(strReplace) intPos = 1 Do intPos = InStr(intPos, varValue, strFind, 0) If intPos > 0 Then varValue = Left(varValue, intPos - 1) & strReplace & _ Mid(varValue, intPos + intLenFind) intPos = intPos + intLenReplace End If Loop Until intPos = 0 End If ReplaceQuotes = varValue On Error GoTo 0 Exit Function ReplaceQuotes_Error: MsgBox "Error " & Err.Number & " (" & Err.Description & ") in procedure ReplaceQuotes of Module mdlReplace" End Function Jeffrey F. Demulling Project Manager U.S. Bank Corporate Trust Services 60 Livingston Avenue EP-MN-WS3C St. Paul, MN 55107-2292 Ph: 651-495-3925 Fax: 651-495-8103 email: jeffrey.demulling at usbank.com "Arthur Fuller" To Sent by: "Access Developers discussion and accessd-bounces at d problem solving" atabaseadvisors.c om cc Subject 03/07/2008 04:28 Re: [AccessD] FW: CodeL PM Please respond to Access Developers discussion and problem solving If you do both Replace() calls, yes, and the count of occurrences is irrelevant since it replaces them all. Arthur On 3/7/08, Eric Starkenburg wrote: > > Arthur, > > Does this work when both characters exist in one sentence? > Maybe the single quote once and two double quotes. > > > > Regards, > Eric > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller > Sent: Friday, March 07, 2008 11:07 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] FW: CodeL > > This is overkill, I think, Eric. You just have to know how to handle SQL > containing either single or double quotes or neither. It's quite > straightforward, really. You can eliminate all the hassle for any column > that might contain these values by doubling up on the single and double > quotes, which you can do in exactly one statement each: > > Replace( [columnName], Chr(39), (Chr(39) & Chr(39) ) > and similarly > Replace( [columnName], Chr(34), (Chr(34) & Chr(34) ) > > You can wrap both calls into a function if you wish. The code does nothing > on values that don't contain the offending characters. > > Having been bitten by surnames like O'Hara and embedded quotations, if I > suspect that this might ever occur, I just pre-empt it right from the > beginning. > > hth, > Arthur > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com U.S. BANCORP made the following annotations --------------------------------------------------------------------- Electronic Privacy Notice. This e-mail, and any attachments, contains information that is, or may be, covered by electronic communications privacy laws, and is also confidential and proprietary in nature. If you are not the intended recipient, please be advised that you are legally prohibited from retaining, using, copying, distributing, or otherwise disclosing this information in any manner. Instead, please reply to the sender that you have received this communication in error, and then immediately delete it. Thank you in advance for your cooperation. --------------------------------------------------------------------- -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _____ avast! Antivirus : Uitgaande bericht is niet besmet. Virus Gegevensbestand (VPS): 080307-0, 07-03-2008 Getest op: 7-3-2008 23:47:40 avast! - auteursrecht (c) 1988-2008 ALWIL Software. From eric.starkenburg at home.nl Fri Mar 7 17:09:15 2008 From: eric.starkenburg at home.nl (Eric Starkenburg) Date: Sat, 8 Mar 2008 00:09:15 +0100 Subject: [AccessD] FW: CodeL In-Reply-To: <29f585dd0803071428oa6740b9m5e713b4e78a37552@mail.gmail.com> References: <004101c88088$2b787000$0301a8c0@HAL9005><006701c8808f$8de0d5a0$0301a8c0@HAL9005><006c01c88095$344be290$0301a8c0@HAL9005><000001c8809b$46d9e370$0501a8c0@PC2M><29f585dd0803071407o56c47697j1b18765a009bbd28@mail.gmail.com><000301c880a1$bf9e1f00$0501a8c0@PC2M> <29f585dd0803071428oa6740b9m5e713b4e78a37552@mail.gmail.com> Message-ID: <000801c880a8$43c19400$0501a8c0@PC2M> Arthur, I just used the code underneith to test your theory.... The table used has just one field called test in table test. The form is called form1 and the textbox is called txtTest Sample text in textbox on a form: dit moe'st ook "maar" eens getest wor'dn Code used to save to table on a buttonpress: Dim db As DAO.Database Set db = CurrentDb Dim strtest As String strtest = Replace(txtTest, Chr(39), Chr(39) & Chr(39)) strtest = Replace(txtTest, Chr(34), Chr(34) & Chr(34)) db.Execute "insert into test (test) VALUES ('" & strtest & "')" Set db = Nothing Works like a charme without quotes in a sentence but with the sample text I get an error: Operator missing blablabla What did I do wrong? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Friday, March 07, 2008 11:29 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] FW: CodeL If you do both Replace() calls, yes, and the count of occurrences is irrelevant since it replaces them all. Arthur On 3/7/08, Eric Starkenburg wrote: > > Arthur, > > Does this work when both characters exist in one sentence? > Maybe the single quote once and two double quotes. > > > > Regards, > Eric > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller > Sent: Friday, March 07, 2008 11:07 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] FW: CodeL > > This is overkill, I think, Eric. You just have to know how to handle SQL > containing either single or double quotes or neither. It's quite > straightforward, really. You can eliminate all the hassle for any column > that might contain these values by doubling up on the single and double > quotes, which you can do in exactly one statement each: > > Replace( [columnName], Chr(39), (Chr(39) & Chr(39) ) > and similarly > Replace( [columnName], Chr(34), (Chr(34) & Chr(34) ) > > You can wrap both calls into a function if you wish. The code does nothing > on values that don't contain the offending characters. > > Having been bitten by surnames like O'Hara and embedded quotations, if I > suspect that this might ever occur, I just pre-empt it right from the > beginning. > > hth, > Arthur > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _____ avast! Antivirus : Uitgaande bericht is niet besmet. Virus Gegevensbestand (VPS): 080307-0, 07-03-2008 Getest op: 8-3-2008 0:09:15 avast! - auteursrecht (c) 1988-2008 ALWIL Software. From jwcolby at colbyconsulting.com Fri Mar 7 17:30:03 2008 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 7 Mar 2008 18:30:03 -0500 Subject: [AccessD] Light Weight Security system and demo Message-ID: <017e01c880ab$2c68d590$0201a8c0@M90> I have a fully functioning LightWeight Security system and demo of how to use it. If anyone is interested in using it please contact me offline. I will be putting it up on my web site soon and probably on the www.DatabaseAdvisors.com as well, though that requires some assistance from Jim to get it up there. The idea is as follows. Understand that while the concepts are a little complex, the usage is about as dead simple as I can make it, which is pretty simple. There are 4 tables used to hold LWS (LightWeight Security) information to allow the security system to function. The tables are: Users Groups GroupUsers SysVars Users holds just enough information to allow a user to be found and logged in. Groups are functional areas of the database that users can access. GroupUsers are users in a group SysVars are control data for controlling the operation of the database. The concept works very similar to Windows. Before you can open a database you have to log in. Once you log in you belong to groups. The designer of the database will use a function that says whether a user belongs to a group to enable security for forms and controls. For example a form Open can be canceled if the user does not belong to a group that is allowed to open that form. A tab control on a form could have the visible property of tabs set to false, and when the form loads, the code can make those tabs visible if the user belongs to the required groups. Combos, text boxes, command buttons and other controls can be made visible if you belong to a group that allows you to see that control. Form properties such as AllowDeletes, AllowAdds AlowEdits etc can be enabled if you belong to a group that is allowed to perform those actions. To use the LWS library (C2DbLWS), it is referenced just like any other library. The library contains all of the code, forms and tables required to work. You have to import the four tables into your BE, then link them to your FE. Set a reference and begin using the system. Once you import the tables, you can open forms out in the library which will display the data in these four tables in your FE (linked to the BE), and allow you to edit that data. You will set up your own users, groups, and then set what users are in what groups. Once you have done that the LWS system "caches" all of the data in classes in collections. The LWS framework provides wrapper functions that allow you to determine whether a user is in a group or set of groups. Your job is to set up security on a form, setting the visible and other properties of controls and forms to allow them to function as you wish for the groups you wish. I have a functioning DEMO "FE" that is linked to the library. This demo has a switchboard that displays who is logged in, what groups the logged in user belongs to, and has buttons on the switchboard to login (as a different user whenever you need to) and also to edit the LWS information (but only if you are an administrator). This demo database will show how to set up forms to refuse to open, controls to become visible / enabled etc, tabs to display and the like. Again, anyone interested in test driving the demo or using C2DbLWS in your onw systems please email me. The code is fairly new so beta testers would be good. John W. Colby Colby Consulting www.ColbyConsulting.com From fuller.artful at gmail.com Fri Mar 7 17:40:36 2008 From: fuller.artful at gmail.com (Arthur Fuller) Date: Fri, 7 Mar 2008 18:40:36 -0500 Subject: [AccessD] FW: CodeL In-Reply-To: <000801c880a8$43c19400$0501a8c0@PC2M> References: <006701c8808f$8de0d5a0$0301a8c0@HAL9005> <006c01c88095$344be290$0301a8c0@HAL9005> <000001c8809b$46d9e370$0501a8c0@PC2M> <29f585dd0803071407o56c47697j1b18765a009bbd28@mail.gmail.com> <000301c880a1$bf9e1f00$0501a8c0@PC2M> <29f585dd0803071428oa6740b9m5e713b4e78a37552@mail.gmail.com> <000801c880a8$43c19400$0501a8c0@PC2M> Message-ID: <29f585dd0803071540m744f043epda19684f053ee28e@mail.gmail.com> I guess I didn't explain myself well. Sorry, Eric. Following your lead, I created an unbound form and a textbox control on it called txtText. I added a button to save, whose code follows (in addition to a simple function called qq(), to save you the hassle of wrapping the string as you did in your code). I pasted your Dutch string into the textbox on the form, then clicked the Save button. Step through my code and you will see that it performs exactly as advertised, and successfully saves the row to the table. Private Sub Save_btn_Enter() Dim db As DAO.Database Set db = CurrentDb Dim strtest As String 'txtTest = qq(dit moe'st ook "maar" eens getest wor'dn) With Me strtest = Replace(.txtText, Chr(39), Chr(39) & Chr(39)) strtest = Replace(.txtText, Chr(34), Chr(34) & Chr(34)) Debug.Print strtest End With 'your code was: 'db.Execute "insert into TestText (TestText) VALUES ('" & strtest & "')" Dim s As String s = "insert into TestText (TestText) VALUES (" & qq(strtest) & ")" Debug.Print s db.Execute s Set db = Nothing End Sub Function qq(s As String) As String 'this should go in a public module. I just put it here for simplicity qq = Chr(34) & s & Chr(34) End Function hth, Arthur On 3/7/08, Eric Starkenburg wrote: > > Arthur, > > I just used the code underneith to test your theory.... > > The table used has just one field called test in table test. > The form is called form1 and the textbox is called txtTest > Sample text in textbox on a form: dit moe'st ook "maar" eens getest wor'dn > > Code used to save to table on a buttonpress: > Dim db As DAO.Database > Set db = CurrentDb > Dim strtest As String > > strtest = Replace(txtTest, Chr(39), Chr(39) & Chr(39)) > strtest = Replace(txtTest, Chr(34), Chr(34) & Chr(34)) > > db.Execute "insert into test (test) VALUES ('" & strtest & "')" > Set db = Nothing > > Works like a charme without quotes in a sentence but with the sample text > I > get an error: Operator missing blablabla > > What did I do wrong? > > From accessd at shaw.ca Fri Mar 7 22:19:15 2008 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 07 Mar 2008 20:19:15 -0800 Subject: [AccessD] [dba-Tech] Good article In-Reply-To: References: Message-ID: <30A5B7A1A9C34917B9F7234BEBC5F584@creativesystemdesigns.com> Hi Gustav: Anything would be appreciated. You may not receive money from having something published on the DBA site but you will get recognition. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, March 07, 2008 9:51 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] [dba-Tech] Good article Hi Jim Not really. I never can find the time for writing so Susan writes for me! Not for fun but for money. Mostly minor tips as the publishers these days seem to abandon anything longer than two pages. I have some projects or topics with no commercial potential I could write about, but again - I don't know where to find the time. One topic is millisecond calculations in Access (JET). Another is modulus 97 calculations which are useful for validation of the internation bank account numbering system IBAN. And a universal relinker which will relink anything from JET databases, ODBC connections and html files to Exchange accounts. Also how to use Access to transmit and receive syslog messages 100% within the RFC standard. And a function to calculate quartiles which can be done in surprisingly many ways. Except for the syslog transceiver and the quartiles all origin from various projects. /gustav >>> accessd at shaw.ca 07-03-2008 17:56 >>> Hi Gustav: You have always contributed so much code samples and given explanations as to how things work, to everyone here at DBA. Do you have any similar articles? Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, March 06, 2008 11:56 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] [dba-Tech] Good article Hi Jim Thanks. It looks like Martin indeed is "our" SharePoint guru. I still haven't seen the light but realise that when people like Martin promotes it, it must have some potential. /gustav >>> accessd at shaw.ca 07-03-2008 07:50 >>> Hi All: Some new entries to current events have been added to the DBA web site (http://www.databaseadvisors.com). Both Arthur Fuller, Martin Reid have new articles out and even John Colby's database is now famous by reference. If you are a student or know one, the DreamSpark program from Microsoft is worthy of pursing. Jim -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From adtp at airtelmail.in Sat Mar 8 02:38:38 2008 From: adtp at airtelmail.in (A.D.Tejpal) Date: Sat, 8 Mar 2008 14:08:38 +0530 Subject: [AccessD] FW: CodeL References: <002901c88083$35682d30$0301a8c0@HAL9005> Message-ID: <017401c880f7$e67b5920$9e57a27a@personald6374f> Updates & Appends involving embedded quotes (No need to fix any quotes) ================================= Rocky, In Access desktop, there is an interesting technique that drastically simplifies handling of embedded quotes (any number & combination of single and double quotes). This is achieved by avoiding concatenation of a hard value into the SQL string. Instead, necessary evaluation is carried out at run time within the query, during execution (via wrapper function having variant type output). Apart from eliminating the need for tedious fixing of embedded quotes, this approach has the added advantage that you no longer have to bother about data types (even Nulls) while concatenating values into SQL strings. Moreover, there is no risk of dates getting mis-interpreted (in the process of concatenation into SQL string) when local system settings for short date are not as per US settings (mm/dd/yyyy). For the particular case mentioned by you, sample code as given below, should get the desired results. As stated earlier, this is in context of Access desktop, using DAO. You will have to adapt it suitably for server and ADO. Note- Similar approach for append queries is demonstrated in my sample db named Query_AppendValuesViaSelectClause. It is available at Rogers Access Library (other developers library). Link - http://www.rogersaccesslibrary.com/OtherLibraries.asp#Tejpal,A.D. Best wishes, A.D.Tejpal ------------ Sample code in general module '================================= Sub P_Update() CurrentDb.Execute "UPDATE tClients " & _ "Set [FMemo] = Fn_Memo() " & _ "WHERE ClientIndex = " & _ CLID & ";", dbFailOnError End Sub '-------------------------------------------------- Function Fn_Memo() As Variant Fn_Memo = vMemo ' Note - vMemo is a global variable of variant ' type, loaded with the memo filed End Function '================================= ----- Original Message ----- From: Rocky Smolin at Beach Access Software To: 'Access Developers discussion and problem solving' Sent: Saturday, March 08, 2008 00:14 Subject: [AccessD] FW: CodeL Dear List: Client (see below) is connecting to a SQL back end with ADO (he's doing his own programming and calling me occasionally for help). When trying to update a memo field with embedded apostrophes he get a syntax error. He says that when he connected with ODBC he didn't have the problem. The code below errors on the Conn.Execute with "incorrect syntax". I told him to change the apostrophe delimiters around vMemo to double quote marks. Then he gets an error which says 'can't be longer than 128 characters. Memo field is defined as nvarChar 4000. I'm pretty weak in SQL and ADO. Is there a solution to this? MTIA Rocky ===================================== 'ADO connection to MS Sql: vMemo is a declared Variant that is loaded with the memo filed and then when dirty, I am attempting to update the SQL back end. CLID is the integer ID number of the current client Conn.Execute "UPDATE tClients " & _ "Set [Memo] = '" & vMemo & "' " & _ "WHERE ClientIndex=" & CLID & "" James W. M. Charlton Charlton Weeks LLP Attorneys at Law (661) 265-0969 (800) 388-9878 From Gustav at cactus.dk Sat Mar 8 02:46:44 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Sat, 08 Mar 2008 09:46:44 +0100 Subject: [AccessD] [dba-Tech] Good article Message-ID: Hi Jim I know and I certainly would love to. Still, it requires some spare time which is hard to find. Recently we moved to the country side to an old house which we have had under reconstruction for a year. Though very nice, the to-do list seems endless ... /gustav >>> accessd at shaw.ca 08-03-2008 05:19 >>> Hi Gustav: Anything would be appreciated. You may not receive money from having something published on the DBA site but you will get recognition. Jim From eric.starkenburg at home.nl Sat Mar 8 03:15:04 2008 From: eric.starkenburg at home.nl (Eric Starkenburg) Date: Sat, 8 Mar 2008 10:15:04 +0100 Subject: [AccessD] FW: CodeL In-Reply-To: <29f585dd0803071540m744f043epda19684f053ee28e@mail.gmail.com> References: <006701c8808f$8de0d5a0$0301a8c0@HAL9005><006c01c88095$344be290$0301a8c0@HAL9005><000001c8809b$46d9e370$0501a8c0@PC2M><29f585dd0803071407o56c47697j1b18765a009bbd28@mail.gmail.com><000301c880a1$bf9e1f00$0501a8c0@PC2M><29f585dd0803071428oa6740b9m5e713b4e78a37552@mail.gmail.com><000801c880a8$43c19400$0501a8c0@PC2M> <29f585dd0803071540m744f043epda19684f053ee28e@mail.gmail.com> Message-ID: <000601c880fc$e53c0910$0501a8c0@PC2M> Cool:) I never went that far figuring out how I could make it work but this works like a charme! The 'trouble' you kinda have to go through to handle quotes left me with using recordsets a long time ago since there's no need for conversions etc. leaving the code more 'core' with less handling keeping it more simple. ...ohwell I am glad you pointed this out and I'm sure others are too:) Thnx, Eric -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Saturday, March 08, 2008 12:41 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] FW: CodeL I guess I didn't explain myself well. Sorry, Eric. Following your lead, I created an unbound form and a textbox control on it called txtText. I added a button to save, whose code follows (in addition to a simple function called qq(), to save you the hassle of wrapping the string as you did in your code). I pasted your Dutch string into the textbox on the form, then clicked the Save button. Step through my code and you will see that it performs exactly as advertised, and successfully saves the row to the table. Private Sub Save_btn_Enter() Dim db As DAO.Database Set db = CurrentDb Dim strtest As String 'txtTest = qq(dit moe'st ook "maar" eens getest wor'dn) With Me strtest = Replace(.txtText, Chr(39), Chr(39) & Chr(39)) strtest = Replace(.txtText, Chr(34), Chr(34) & Chr(34)) Debug.Print strtest End With 'your code was: 'db.Execute "insert into TestText (TestText) VALUES ('" & strtest & "')" Dim s As String s = "insert into TestText (TestText) VALUES (" & qq(strtest) & ")" Debug.Print s db.Execute s Set db = Nothing End Sub Function qq(s As String) As String 'this should go in a public module. I just put it here for simplicity qq = Chr(34) & s & Chr(34) End Function hth, Arthur On 3/7/08, Eric Starkenburg wrote: > > Arthur, > > I just used the code underneith to test your theory.... > > The table used has just one field called test in table test. > The form is called form1 and the textbox is called txtTest > Sample text in textbox on a form: dit moe'st ook "maar" eens getest wor'dn > > Code used to save to table on a buttonpress: > Dim db As DAO.Database > Set db = CurrentDb > Dim strtest As String > > strtest = Replace(txtTest, Chr(39), Chr(39) & Chr(39)) > strtest = Replace(txtTest, Chr(34), Chr(34) & Chr(34)) > > db.Execute "insert into test (test) VALUES ('" & strtest & "')" > Set db = Nothing > > Works like a charme without quotes in a sentence but with the sample text > I > get an error: Operator missing blablabla > > What did I do wrong? > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _____ avast! Antivirus : Uitgaande bericht is niet besmet. Virus Gegevensbestand (VPS): 080307-0, 07-03-2008 Getest op: 8-3-2008 10:15:04 avast! - auteursrecht (c) 1988-2008 ALWIL Software. From ssharkins at gmail.com Sat Mar 8 06:53:39 2008 From: ssharkins at gmail.com (Susan Harkins) Date: Sat, 8 Mar 2008 07:53:39 -0500 Subject: [AccessD] [dba-Tech] Good article References: <30A5B7A1A9C34917B9F7234BEBC5F584@creativesystemdesigns.com> Message-ID: <004e01c8811b$797c2ba0$4b3a8343@SusanOne> My problem is finding publications that pay responsibly. If you're writing for recognition or additional income, you can wait six months for a check. I write for a living, I can't afford it. Then, there are the guys who never pay because they go out of business owing me money. But, here's what I can do -- if any of you know of a good publication and you have what you believe, is a good topic for them, let me know and I'll contact them the professional way, and see what I can do for you. I can help you write it or not, as you like. Those of you that have worked with me know the routine and might not need me to help you write anything -- sometimes you just need a foot in the door. My foot's no better than yours, I just know which foot to use. :) Be prepared to be disappointed. They don't pay well. I do Okay because of the sheer volume I generate. It's not the best game in town anymore. :( Susan H. > Hi Gustav: > > Anything would be appreciated. You may not receive money from having > something published on the DBA site but you will get recognition. From mwp.reid at qub.ac.uk Sat Mar 8 08:29:17 2008 From: mwp.reid at qub.ac.uk (Martin W Reid) Date: Sat, 8 Mar 2008 14:29:17 +0000 Subject: [AccessD] [dba-Tech] Good article In-Reply-To: <004e01c8811b$797c2ba0$4b3a8343@SusanOne> References: <30A5B7A1A9C34917B9F7234BEBC5F584@creativesystemdesigns.com>, <004e01c8811b$797c2ba0$4b3a8343@SusanOne> Message-ID: Folks Susan undersells herself. She writes well, she teaches you how to put the stuff together, she provides contacts for you to get your own foot in the door. Totally unselfish with her talents. I would encourage anyone who wants to try this out to give Susan a shout. Well worthwhile even if the pay is poor. Martin Martin WP Reid Information Services Queen's University Riddel Hall 185 Stranmillis Road Belfast BT9 5EE Tel : 02890974465 Email : mwp.reid at qub.ac.uk ________________________________________ From: accessd-bounces at databaseadvisors.com [accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins [ssharkins at gmail.com] Sent: 08 March 2008 12:53 To: Access Developers discussion and problem solving Subject: Re: [AccessD] [dba-Tech] Good article My problem is finding publications that pay responsibly. If you're writing for recognition or additional income, you can wait six months for a check. I write for a living, I can't afford it. Then, there are the guys who never pay because they go out of business owing me money. But, here's what I can do -- if any of you know of a good publication and you have what you believe, is a good topic for them, let me know and I'll contact them the professional way, and see what I can do for you. I can help you write it or not, as you like. Those of you that have worked with me know the routine and might not need me to help you write anything -- sometimes you just need a foot in the door. My foot's no better than yours, I just know which foot to use. :) Be prepared to be disappointed. They don't pay well. I do Okay because of the sheer volume I generate. It's not the best game in town anymore. :( Susan H. > Hi Gustav: > > Anything would be appreciated. You may not receive money from having > something published on the DBA site but you will get recognition. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at gmail.com Sat Mar 8 08:36:38 2008 From: ssharkins at gmail.com (Susan Harkins) Date: Sat, 8 Mar 2008 09:36:38 -0500 Subject: [AccessD] [dba-Tech] Good article References: <30A5B7A1A9C34917B9F7234BEBC5F584@creativesystemdesigns.com>, <004e01c8811b$797c2ba0$4b3a8343@SusanOne> Message-ID: <020201c88129$d7b4c610$4b3a8343@SusanOne> Thanks Martin. Some people who don't want to be bothered with the writing and I'm glad to split bylines and fees as long as the technique isn't too labor intensive for me to set up. Some people pick up enough that they don't really need me after a while and I set them free. :) Susan H. > Susan undersells herself. She writes well, she teaches you how to put the > stuff together, she provides contacts for you to get your own foot in the > door. Totally unselfish with her talents. > > I would encourage anyone who wants to try this out to give Susan a shout. > Well worthwhile even if the pay is poor. From rockysmolin at bchacc.com Sat Mar 8 09:24:15 2008 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Sat, 8 Mar 2008 07:24:15 -0800 Subject: [AccessD] FW: CodeL In-Reply-To: <017401c880f7$e67b5920$9e57a27a@personald6374f> References: <002901c88083$35682d30$0301a8c0@HAL9005> <017401c880f7$e67b5920$9e57a27a@personald6374f> Message-ID: <000501c88130$789827b0$0301a8c0@HAL9005> Thanks, A.D. I'll forward to the client and see if this solves his problem. Best, Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of A.D.Tejpal Sent: Saturday, March 08, 2008 12:39 AM To: Access Developers discussion and problem solving Cc: A.D.Tejpal Subject: Re: [AccessD] FW: CodeL Updates & Appends involving embedded quotes (No need to fix any quotes) ================================= Rocky, In Access desktop, there is an interesting technique that drastically simplifies handling of embedded quotes (any number & combination of single and double quotes). This is achieved by avoiding concatenation of a hard value into the SQL string. Instead, necessary evaluation is carried out at run time within the query, during execution (via wrapper function having variant type output). Apart from eliminating the need for tedious fixing of embedded quotes, this approach has the added advantage that you no longer have to bother about data types (even Nulls) while concatenating values into SQL strings. Moreover, there is no risk of dates getting mis-interpreted (in the process of concatenation into SQL string) when local system settings for short date are not as per US settings (mm/dd/yyyy). For the particular case mentioned by you, sample code as given below, should get the desired results. As stated earlier, this is in context of Access desktop, using DAO. You will have to adapt it suitably for server and ADO. Note- Similar approach for append queries is demonstrated in my sample db named Query_AppendValuesViaSelectClause. It is available at Rogers Access Library (other developers library). Link - http://www.rogersaccesslibrary.com/OtherLibraries.asp#Tejpal,A.D. Best wishes, A.D.Tejpal ------------ Sample code in general module '================================= Sub P_Update() CurrentDb.Execute "UPDATE tClients " & _ "Set [FMemo] = Fn_Memo() " & _ "WHERE ClientIndex = " & _ CLID & ";", dbFailOnError End Sub '-------------------------------------------------- Function Fn_Memo() As Variant Fn_Memo = vMemo ' Note - vMemo is a global variable of variant ' type, loaded with the memo filed End Function '================================= ----- Original Message ----- From: Rocky Smolin at Beach Access Software To: 'Access Developers discussion and problem solving' Sent: Saturday, March 08, 2008 00:14 Subject: [AccessD] FW: CodeL Dear List: Client (see below) is connecting to a SQL back end with ADO (he's doing his own programming and calling me occasionally for help). When trying to update a memo field with embedded apostrophes he get a syntax error. He says that when he connected with ODBC he didn't have the problem. The code below errors on the Conn.Execute with "incorrect syntax". I told him to change the apostrophe delimiters around vMemo to double quote marks. Then he gets an error which says 'can't be longer than 128 characters. Memo field is defined as nvarChar 4000. I'm pretty weak in SQL and ADO. Is there a solution to this? MTIA Rocky ===================================== 'ADO connection to MS Sql: vMemo is a declared Variant that is loaded with the memo filed and then when dirty, I am attempting to update the SQL back end. CLID is the integer ID number of the current client Conn.Execute "UPDATE tClients " & _ "Set [Memo] = '" & vMemo & "' " & _ "WHERE ClientIndex=" & CLID & "" James W. M. Charlton Charlton Weeks LLP Attorneys at Law (661) 265-0969 (800) 388-9878 -- 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. Version: 7.5.518 / Virus Database: 269.21.6/1318 - Release Date: 3/7/2008 2:01 PM From john at winhaven.net Sat Mar 8 12:56:15 2008 From: john at winhaven.net (John Bartow) Date: Sat, 8 Mar 2008 12:56:15 -0600 Subject: [AccessD] test2 In-Reply-To: <000701c880a5$3fa4c020$0501a8c0@PC2M> Message-ID: <200803081856.m28Iu96G009920@databaseadvisors.com> test2 From RRANTHON at sentara.com Sat Mar 8 13:02:36 2008 From: RRANTHON at sentara.com (RANDALL R ANTHONY) Date: Sat, 08 Mar 2008 14:02:36 -0500 Subject: [AccessD] test2 In-Reply-To: <200803081856.m28Iu96G009920@databaseadvisors.com> References: <000701c880a5$3fa4c020$0501a8c0@PC2M> <200803081856.m28Iu96G009920@databaseadvisors.com> Message-ID: <200803081901.m28J18ms013591@databaseadvisors.com> That worked... >>> "John Bartow" 3/8/2008 1:56 PM >>> test2 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From john at winhaven.net Sat Mar 8 13:04:29 2008 From: john at winhaven.net (John Bartow) Date: Sat, 8 Mar 2008 13:04:29 -0600 Subject: [AccessD] test3 In-Reply-To: <000501c88130$789827b0$0301a8c0@HAL9005> Message-ID: <200803081904.m28J4PQX015693@databaseadvisors.com> test3 From jwcolby at colbyconsulting.com Sat Mar 8 20:11:12 2008 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 8 Mar 2008 21:11:12 -0500 Subject: [AccessD] test Message-ID: <01dc01c8818a$d9999490$0201a8c0@M90> John W. Colby Colby Consulting www.ColbyConsulting.com From bheid at sc.rr.com Sat Mar 8 20:22:30 2008 From: bheid at sc.rr.com (Bobby Heid) Date: Sat, 8 Mar 2008 21:22:30 -0500 Subject: [AccessD] test In-Reply-To: <01dc01c8818a$d9999490$0201a8c0@M90> References: <01dc01c8818a$d9999490$0201a8c0@M90> Message-ID: <000f01c8818c$6d320ba0$479622e0$@rr.com> I see you! Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Saturday, March 08, 2008 9:11 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] test John W. Colby Colby Consulting www.ColbyConsulting.com From jwcolby at colbyconsulting.com Sat Mar 8 20:31:54 2008 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 8 Mar 2008 21:31:54 -0500 Subject: [AccessD] test In-Reply-To: <01dc01c8818a$d9999490$0201a8c0@M90> References: <01dc01c8818a$d9999490$0201a8c0@M90> Message-ID: <01de01c8818d$bdfe7180$0201a8c0@M90> I see me too. 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 jwcolby Sent: Saturday, March 08, 2008 9:11 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] test 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 accessd at shaw.ca Sat Mar 8 22:15:58 2008 From: accessd at shaw.ca (Jim Lawrence) Date: Sat, 08 Mar 2008 20:15:58 -0800 Subject: [AccessD] test In-Reply-To: <01dc01c8818a$d9999490$0201a8c0@M90> References: <01dc01c8818a$d9999490$0201a8c0@M90> Message-ID: <5509452F23FB4014AABBDCF27DA2EBD5@creativesystemdesigns.com> Hi John: I can see you. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Saturday, March 08, 2008 6:11 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] test 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 fuller.artful at gmail.com Sun Mar 9 11:51:47 2008 From: fuller.artful at gmail.com (Arthur Fuller) Date: Sun, 9 Mar 2008 12:51:47 -0400 Subject: [AccessD] ComboBox question Message-ID: <29f585dd0803090951k73fbbd89ja0e782de5336ed3c@mail.gmail.com> What controls whether or not you see a horizontal scrollbar in a combo? Also, is there a way to make a wide column within a combo wrap as if it were a memo-type field? TIA, Arthur From dwaters at usinternet.com Sun Mar 9 13:04:32 2008 From: dwaters at usinternet.com (Dan Waters) Date: Sun, 9 Mar 2008 13:04:32 -0500 Subject: [AccessD] ComboBox question In-Reply-To: <29f585dd0803090951k73fbbd89ja0e782de5336ed3c@mail.gmail.com> References: <29f585dd0803090951k73fbbd89ja0e782de5336ed3c@mail.gmail.com> Message-ID: <000301c88210$06d2b920$0300a8c0@danwaters> If the sum of the column widths is > the list width, then you'll see the horizontal scrollbar. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Sunday, March 09, 2008 11:52 AM To: Access Developers discussion and problem solving Subject: [AccessD] ComboBox question What controls whether or not you see a horizontal scrollbar in a combo? Also, is there a way to make a wide column within a combo wrap as if it were a memo-type field? TIA, Arthur -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Sun Mar 9 13:12:12 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Sun, 09 Mar 2008 19:12:12 +0100 Subject: [AccessD] ComboBox question Message-ID: Hi Arthur 1. SumOfColumnWidthsSpecified > WidthOfCombobox => ComboboxHorisontalScrollbar.Display = True 2. Not that I know of. /gustav >>> fuller.artful at gmail.com 09-03-2008 17:51:47 >>> What controls whether or not you see a horizontal scrollbar in a combo? Also, is there a way to make a wide column within a combo wrap as if it were a memo-type field? TIA, Arthur From rockysmolin at bchacc.com Sun Mar 9 13:24:49 2008 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Sun, 9 Mar 2008 11:24:49 -0700 Subject: [AccessD] ComboBox question In-Reply-To: <29f585dd0803090951k73fbbd89ja0e782de5336ed3c@mail.gmail.com> References: <29f585dd0803090951k73fbbd89ja0e782de5336ed3c@mail.gmail.com> Message-ID: <003001c88212$dc506e60$0301a8c0@HAL9005> I think if the sum of the column widths is greater than the width set in the width property, then you'll get the scroll bar. I've never seen a way to control the height of the row. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Sunday, March 09, 2008 9:52 AM To: Access Developers discussion and problem solving Subject: [AccessD] ComboBox question What controls whether or not you see a horizontal scrollbar in a combo? Also, is there a way to make a wide column within a combo wrap as if it were a memo-type field? TIA, Arthur -- 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. Version: 7.5.518 / Virus Database: 269.21.7/1319 - Release Date: 3/8/2008 10:14 AM From eric.starkenburg at home.nl Sun Mar 9 15:47:43 2008 From: eric.starkenburg at home.nl (Eric Starkenburg) Date: Sun, 9 Mar 2008 21:47:43 +0100 Subject: [AccessD] ComboBox question In-Reply-To: <29f585dd0803090951k73fbbd89ja0e782de5336ed3c@mail.gmail.com> References: <29f585dd0803090951k73fbbd89ja0e782de5336ed3c@mail.gmail.com> Message-ID: <000601c88226$d2a86ac0$0501a8c0@PC2M> You make me curious Arthur, what do you have in mind with the combo using it as a memo fld? Regards, Eric -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Sunday, March 09, 2008 5:52 PM To: Access Developers discussion and problem solving Subject: [AccessD] ComboBox question What controls whether or not you see a horizontal scrollbar in a combo? Also, is there a way to make a wide column within a combo wrap as if it were a memo-type field? TIA, Arthur -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _____ avast! Antivirus : Uitgaande bericht is niet besmet. Virus Gegevensbestand (VPS): 080309-0, 09-03-2008 Getest op: 9-3-2008 21:47:43 avast! - auteursrecht (c) 1988-2008 ALWIL Software. From fuller.artful at gmail.com Sun Mar 9 16:26:12 2008 From: fuller.artful at gmail.com (Arthur Fuller) Date: Sun, 9 Mar 2008 17:26:12 -0400 Subject: [AccessD] ComboBox question In-Reply-To: <000601c88226$d2a86ac0$0501a8c0@PC2M> References: <29f585dd0803090951k73fbbd89ja0e782de5336ed3c@mail.gmail.com> <000601c88226$d2a86ac0$0501a8c0@PC2M> Message-ID: <29f585dd0803091426l1d19b109x488fb24967e2d3cc@mail.gmail.com> I phrased it wrong. The combo displays an ID column and a Description column, the latter being text 255 and the user might just fill it. So displaying it with a simple horizontal scrollbar is, well, not great. I may have to actually display the Description once the user has selected an item, so she can see all the text. (It's detailed, and has legal implications, so it's important that she reads it all to see if that's the right selection.) A. On 3/9/08, Eric Starkenburg wrote: > > You make me curious Arthur, what do you have in mind with the combo using > it > as a memo fld? > > Regards, > Eric > > From wdhindman at dejpolsystems.com Sun Mar 9 17:05:50 2008 From: wdhindman at dejpolsystems.com (William Hindman) Date: Sun, 9 Mar 2008 18:05:50 -0400 Subject: [AccessD] ComboBox question References: <29f585dd0803090951k73fbbd89ja0e782de5336ed3c@mail.gmail.com><000601c88226$d2a86ac0$0501a8c0@PC2M> <29f585dd0803091426l1d19b109x488fb24967e2d3cc@mail.gmail.com> Message-ID: <001501c88231$bcc40330$d67e6c4c@jisshowsbs.local> 2. ...there are third party controls but take a look at this first: http://www.rogersaccesslibrary.com/Otherdownload.asp?SampleName='Form_SubformAsListBox.mdb' William ----- Original Message ----- From: "Arthur Fuller" To: "Access Developers discussion and problem solving" Sent: Sunday, March 09, 2008 5:26 PM Subject: Re: [AccessD] ComboBox question >I phrased it wrong. The combo displays an ID column and a Description > column, the latter being text 255 and the user might just fill it. So > displaying it with a simple horizontal scrollbar is, well, not great. I > may > have to actually display the Description once the user has selected an > item, > so she can see all the text. (It's detailed, and has legal implications, > so > it's important that she reads it all to see if that's the right > selection.) > > A. > > On 3/9/08, Eric Starkenburg wrote: >> >> You make me curious Arthur, what do you have in mind with the combo using >> it >> as a memo fld? >> >> Regards, >> Eric >> >> > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From rockysmolin at bchacc.com Sun Mar 9 17:31:58 2008 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Sun, 9 Mar 2008 15:31:58 -0700 Subject: [AccessD] ComboBox question In-Reply-To: <29f585dd0803091426l1d19b109x488fb24967e2d3cc@mail.gmail.com> References: <29f585dd0803090951k73fbbd89ja0e782de5336ed3c@mail.gmail.com><000601c88226$d2a86ac0$0501a8c0@PC2M> <29f585dd0803091426l1d19b109x488fb24967e2d3cc@mail.gmail.com> Message-ID: <003f01c88235$637a5be0$0301a8c0@HAL9005> Arthur: I'd put a text box next to the combo box big enough to display the whole 255 and every time there's a selection made in the combo, display it in the text box. On the combo, will the user be able to select the one they want just from the ID? If so you don't even have to display any of the description. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Sunday, March 09, 2008 2:26 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] ComboBox question I phrased it wrong. The combo displays an ID column and a Description column, the latter being text 255 and the user might just fill it. So displaying it with a simple horizontal scrollbar is, well, not great. I may have to actually display the Description once the user has selected an item, so she can see all the text. (It's detailed, and has legal implications, so it's important that she reads it all to see if that's the right selection.) A. On 3/9/08, Eric Starkenburg wrote: > > You make me curious Arthur, what do you have in mind with the combo > using it as a memo fld? > > Regards, > Eric > > -- 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. Version: 7.5.518 / Virus Database: 269.21.7/1319 - Release Date: 3/8/2008 10:14 AM From stuart at lexacorp.com.pg Sun Mar 9 17:34:26 2008 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Mon, 10 Mar 2008 08:34:26 +1000 Subject: [AccessD] ComboBox question In-Reply-To: <29f585dd0803091426l1d19b109x488fb24967e2d3cc@mail.gmail.com> References: <29f585dd0803090951k73fbbd89ja0e782de5336ed3c@mail.gmail.com>, <000601c88226$d2a86ac0$0501a8c0@PC2M>, <29f585dd0803091426l1d19b109x488fb24967e2d3cc@mail.gmail.com> Message-ID: <47D4F292.4027.E57973F@stuart.lexacorp.com.pg> AFAIK, you can't have more than a single row for an item in a Listbox or Combobox. In this case, I'd stick a multiline Textbox beside the combobox with a value of "=cboDescription.Column(1)". On 9 Mar 2008 at 17:26, Arthur Fuller wrote: > I phrased it wrong. The combo displays an ID column and a Description > column, the latter being text 255 and the user might just fill it. So > displaying it with a simple horizontal scrollbar is, well, not great. I may > have to actually display the Description once the user has selected an item, > so she can see all the text. (It's detailed, and has legal implications, so > it's important that she reads it all to see if that's the right selection.) > > A. > > On 3/9/08, Eric Starkenburg wrote: > > > > You make me curious Arthur, what do you have in mind with the combo using > > it > > as a memo fld? > > > > Regards, > > Eric > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From dbdoug at gmail.com Sun Mar 9 18:47:53 2008 From: dbdoug at gmail.com (Doug Steele) Date: Sun, 9 Mar 2008 16:47:53 -0700 Subject: [AccessD] Access 2007 Navigation Pane problem Message-ID: <4dd71a0c0803091647i5b9509a5i3afee35bbdab3488@mail.gmail.com> Hello: I have an Access 2007 database which appears to have a permanently locked navigation pane. Issuing the command (per MS documentation) ' Docmd.LockNavigationPane = False' has no effect - in code, in a macro, or in the immediate window. This means I can't get into design view for any forms, queries, etc. Makes it a little bit hard to modify :( The db was converted from Access 2003 .mdb format to Access 2007 .accdb; compiles OK and runs fine. When I create a db from scratch in Access 2007 it doesn't have this problem. Any suggestions? Thanks, Doug Steele From bheid at sc.rr.com Sun Mar 9 18:57:33 2008 From: bheid at sc.rr.com (Bobby Heid) Date: Sun, 9 Mar 2008 19:57:33 -0400 Subject: [AccessD] Access 2007 Navigation Pane problem In-Reply-To: <4dd71a0c0803091647i5b9509a5i3afee35bbdab3488@mail.gmail.com> References: <4dd71a0c0803091647i5b9509a5i3afee35bbdab3488@mail.gmail.com> Message-ID: <001e01c88241$58155fa0$08401ee0$@rr.com> I do not have an answer to your question. But did you try holding down the shift key when you open the database? It's possible the code is doing something with the navigation pane. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Steele Sent: Sunday, March 09, 2008 7:48 PM To: accessd at databaseadvisors.com Subject: [AccessD] Access 2007 Navigation Pane problem Hello: I have an Access 2007 database which appears to have a permanently locked navigation pane. Issuing the command (per MS documentation) ' Docmd.LockNavigationPane = False' has no effect - in code, in a macro, or in the immediate window. This means I can't get into design view for any forms, queries, etc. Makes it a little bit hard to modify :( The db was converted from Access 2003 .mdb format to Access 2007 .accdb; compiles OK and runs fine. When I create a db from scratch in Access 2007 it doesn't have this problem. Any suggestions? Thanks, Doug Steele From dwaters at usinternet.com Sun Mar 9 18:58:32 2008 From: dwaters at usinternet.com (Dan Waters) Date: Sun, 9 Mar 2008 18:58:32 -0500 Subject: [AccessD] Access 2007 Navigation Pane problem In-Reply-To: <4dd71a0c0803091647i5b9509a5i3afee35bbdab3488@mail.gmail.com> References: <4dd71a0c0803091647i5b9509a5i3afee35bbdab3488@mail.gmail.com> Message-ID: <000a01c88241$7b19e980$0300a8c0@danwaters> Doug, I have no experience with A2007 - but with problems like this I try to import all the database objects into a new blank database. When you do this, be sure to look at the options for importing - you have to check yes to import any custom toolbars you've made (at least for A2003). BOL! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Steele Sent: Sunday, March 09, 2008 6:48 PM To: accessd at databaseadvisors.com Subject: [AccessD] Access 2007 Navigation Pane problem Hello: I have an Access 2007 database which appears to have a permanently locked navigation pane. Issuing the command (per MS documentation) ' Docmd.LockNavigationPane = False' has no effect - in code, in a macro, or in the immediate window. This means I can't get into design view for any forms, queries, etc. Makes it a little bit hard to modify :( The db was converted from Access 2003 .mdb format to Access 2007 .accdb; compiles OK and runs fine. When I create a db from scratch in Access 2007 it doesn't have this problem. Any suggestions? Thanks, Doug Steele -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From newsgrps at dalyn.co.nz Sun Mar 9 19:04:26 2008 From: newsgrps at dalyn.co.nz (David Emerson) Date: Mon, 10 Mar 2008 13:04:26 +1300 Subject: [AccessD] Using Citrix Logins In Access Message-ID: <20080310000342.FJGQ18083.fep03.xtra.co.nz@Dalyn.dalyn.co.nz> I have a client who uses Citrix to gain access to a server to run various software on including my database. I would like to be able to use the Citrix login information in my Access database to determine who can do what (as opposed to having the users logging into my software as well as Citrix). In SQL I have used: SET @CurrUser = SYSTEM_USER Is there an equivalent command from within Access? How have others dealt with this? Regards David Emerson Dalyn Software Ltd Wellington, New Zealand From fuller.artful at gmail.com Sun Mar 9 21:11:11 2008 From: fuller.artful at gmail.com (Arthur Fuller) Date: Sun, 9 Mar 2008 22:11:11 -0400 Subject: [AccessD] Using Citrix Logins In Access In-Reply-To: <20080310000342.FJGQ18083.fep03.xtra.co.nz@Dalyn.dalyn.co.nz> References: <20080310000342.FJGQ18083.fep03.xtra.co.nz@Dalyn.dalyn.co.nz> Message-ID: <29f585dd0803091911i5b112d07t6c81f6065c2ded7@mail.gmail.com> I have a function that returns the network user info, but I'm not sure whether it will work with Citrix. I'll send it to you off-list and you can try it out and let us know. Arthur On 3/9/08, David Emerson wrote: > > I have a client who uses Citrix to gain access to a server to run > various software on including my database. I would like to be able > to use the Citrix login information in my Access database to > determine who can do what (as opposed to having the users logging > into my software as well as Citrix). > > In SQL I have used: SET @CurrUser = SYSTEM_USER > > Is there an equivalent command from within Access? > > How have others dealt with this? > > > Regards > > David Emerson > Dalyn Software Ltd > Wellington, New Zealand > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From newsgrps at dalyn.co.nz Sun Mar 9 21:31:17 2008 From: newsgrps at dalyn.co.nz (David Emerson) Date: Mon, 10 Mar 2008 15:31:17 +1300 Subject: [AccessD] Using Citrix Logins In Access In-Reply-To: <29f585dd0803091911i5b112d07t6c81f6065c2ded7@mail.gmail.com > References: <20080310000342.FJGQ18083.fep03.xtra.co.nz@Dalyn.dalyn.co.nz> <29f585dd0803091911i5b112d07t6c81f6065c2ded7@mail.gmail.com> Message-ID: <20080310023057.LUFD17371.fep04.xtra.co.nz@Dalyn.dalyn.co.nz> Thanks Arthur. Will do. David At 10/03/2008, you wrote: >I have a function that returns the network user info, but I'm not sure >whether it will work with Citrix. I'll send it to you off-list and you can >try it out and let us know. > >Arthur > >On 3/9/08, David Emerson wrote: > > > > I have a client who uses Citrix to gain access to a server to run > > various software on including my database. I would like to be able > > to use the Citrix login information in my Access database to > > determine who can do what (as opposed to having the users logging > > into my software as well as Citrix). > > > > In SQL I have used: SET @CurrUser = SYSTEM_USER > > > > Is there an equivalent command from within Access? > > > > How have others dealt with this? > > > > > > Regards > > > > David Emerson > > Dalyn Software Ltd > > Wellington, New Zealand > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From newsgrps at dalyn.co.nz Mon Mar 10 00:31:37 2008 From: newsgrps at dalyn.co.nz (David Emerson) Date: Mon, 10 Mar 2008 18:31:37 +1300 Subject: [AccessD] Using Citrix Logins In Access In-Reply-To: <29f585dd0803091911i5b112d07t6c81f6065c2ded7@mail.gmail.com > References: <20080310000342.FJGQ18083.fep03.xtra.co.nz@Dalyn.dalyn.co.nz> <29f585dd0803091911i5b112d07t6c81f6065c2ded7@mail.gmail.com> Message-ID: <20080310053042.FHWA18083.fep03.xtra.co.nz@Dalyn.dalyn.co.nz> Thanks Arthur, it worked perfectly with initial tests. David At 10/03/2008, you wrote: >I have a function that returns the network user info, but I'm not sure >whether it will work with Citrix. I'll send it to you off-list and you can >try it out and let us know. > >Arthur > >On 3/9/08, David Emerson wrote: > > > > I have a client who uses Citrix to gain access to a server to run > > various software on including my database. I would like to be able > > to use the Citrix login information in my Access database to > > determine who can do what (as opposed to having the users logging > > into my software as well as Citrix). > > > > In SQL I have used: SET @CurrUser = SYSTEM_USER > > > > Is there an equivalent command from within Access? > > > > How have others dealt with this? > > > > > > Regards > > > > David Emerson > > Dalyn Software Ltd > > Wellington, New Zealand > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From fuller.artful at gmail.com Mon Mar 10 04:14:13 2008 From: fuller.artful at gmail.com (Arthur Fuller) Date: Mon, 10 Mar 2008 05:14:13 -0400 Subject: [AccessD] Using Citrix Logins In Access In-Reply-To: <20080310053042.FHWA18083.fep03.xtra.co.nz@Dalyn.dalyn.co.nz> References: <20080310000342.FJGQ18083.fep03.xtra.co.nz@Dalyn.dalyn.co.nz> <29f585dd0803091911i5b112d07t6c81f6065c2ded7@mail.gmail.com> <20080310053042.FHWA18083.fep03.xtra.co.nz@Dalyn.dalyn.co.nz> Message-ID: <29f585dd0803100214r5934c251r8f36c23b27163c2b@mail.gmail.com> Glad to hear it, David. On 3/10/08, David Emerson wrote: > > Thanks Arthur, it worked perfectly with initial tests. > > > David > From Gustav at cactus.dk Mon Mar 10 04:16:40 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 10 Mar 2008 10:16:40 +0100 Subject: [AccessD] Ziff-Davis goes bust (was: Good article) Message-ID: Hi Susan et al Something indicates that times are tough for publishers when even Ziff-Davis is in trouble: http://blog.wired.com/business/2008/03/ziff-davis-succ.html PC Magazine used to be my bible. /gustav >>> ssharkins at gmail.com 08-03-2008 13:53 >>> My problem is finding publications that pay responsibly. .. From fuller.artful at gmail.com Mon Mar 10 04:14:13 2008 From: fuller.artful at gmail.com (Arthur Fuller) Date: Mon, 10 Mar 2008 05:14:13 -0400 Subject: [AccessD] Using Citrix Logins In Access In-Reply-To: <20080310053042.FHWA18083.fep03.xtra.co.nz@Dalyn.dalyn.co.nz> References: <20080310000342.FJGQ18083.fep03.xtra.co.nz@Dalyn.dalyn.co.nz> <29f585dd0803091911i5b112d07t6c81f6065c2ded7@mail.gmail.com> <20080310053042.FHWA18083.fep03.xtra.co.nz@Dalyn.dalyn.co.nz> Message-ID: <29f585dd0803100214r5934c251r8f36c23b27163c2b@mail.gmail.com> Glad to hear it, David. On 3/10/08, David Emerson wrote: > > Thanks Arthur, it worked perfectly with initial tests. > > > David > From ssharkins at gmail.com Mon Mar 10 08:43:24 2008 From: ssharkins at gmail.com (Susan Harkins) Date: Mon, 10 Mar 2008 09:43:24 -0400 Subject: [AccessD] Ziff-Davis goes bust (was: Good article) References: Message-ID: <017b01c882b5$3eb52710$4b3a8343@SusanOne> Thanks Gustav. You might not know it, but ZD owned The Cobb Group in the early 90's. Susan H. > Hi Susan et al > > Something indicates that times are tough for publishers when even > Ziff-Davis is in trouble: > > http://blog.wired.com/business/2008/03/ziff-davis-succ.html > > PC Magazine used to be my bible. From jimdettman at verizon.net Mon Mar 10 09:04:43 2008 From: jimdettman at verizon.net (Jim Dettman) Date: Mon, 10 Mar 2008 10:04:43 -0400 Subject: [AccessD] Ziff-Davis goes bust (was: Good article) In-Reply-To: References: Message-ID: <042001c882b7$b137a860$8abea8c0@XPS> Gustav, Seems as Susan has said, technical publications are not what they used to be :( I myself have been cutting back on subscriptions simply because the content is no longer there. The problem I believe is that too much has moved to the web and I'm sorry, but I don't want to take the "web" into the bathroom with me. This is something I think publishers keep missing the point on. You can't take web content with you easily. I often take a magazine as I'm walking out the door for the doctors office, trip to the food store, or anyplace where I might be waiting for five or ten minutes. Ziff Davis/PC Mag is a real eye opener though. Would have expected them to be one of the last ones to go. Computer World, which I've read for the past 23 years is slowly dieing as well. Recently they downsized their format citing postage costs. What I expected was an increase in page count. Instead the format size went down and the page count. I remember when Computer World arrived and it was 100+ pages. Last issue I got was 44 pages, half of which were ads. It's so thin now, I often think it's a flyer for a convention when I pick it up. Sad. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, March 10, 2008 5:17 AM To: accessd at databaseadvisors.com Subject: [AccessD] Ziff-Davis goes bust (was: Good article) Hi Susan et al Something indicates that times are tough for publishers when even Ziff-Davis is in trouble: http://blog.wired.com/business/2008/03/ziff-davis-succ.html PC Magazine used to be my bible. /gustav >>> ssharkins at gmail.com 08-03-2008 13:53 >>> My problem is finding publications that pay responsibly. .. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Mon Mar 10 09:06:18 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 10 Mar 2008 15:06:18 +0100 Subject: [AccessD] Ziff-Davis goes bust (was: Good article) Message-ID: Hi Susan No I didn't know that. That said, I have never known much about US publishers and their ownerships ... /gustav >>> ssharkins at gmail.com 10-03-2008 14:43 >>> Thanks Gustav. You might not know it, but ZD owned The Cobb Group in the early 90's. Susan H. > Hi Susan et al > > Something indicates that times are tough for publishers when even > Ziff-Davis is in trouble: > > http://blog.wired.com/business/2008/03/ziff-davis-succ.html > > PC Magazine used to be my bible. From dwaters at usinternet.com Mon Mar 10 09:18:16 2008 From: dwaters at usinternet.com (Dan Waters) Date: Mon, 10 Mar 2008 09:18:16 -0500 Subject: [AccessD] Monday Humor - What a Kilobyte Really Is! Message-ID: <001201c882b9$9572f9c0$0300a8c0@danwaters> It's early on Monday and this made me laugh! http://www.xkcd.com Dan From ssharkins at gmail.com Mon Mar 10 09:24:49 2008 From: ssharkins at gmail.com (Susan Harkins) Date: Mon, 10 Mar 2008 10:24:49 -0400 Subject: [AccessD] Ziff-Davis goes bust (was: Good article) References: Message-ID: <027901c882ba$d27b19f0$4b3a8343@SusanOne> > No I didn't know that. That said, I have never known much about US > publishers and their ownerships ... ========Neither do we! ;) Seriously. When I joined Cobb, Ziff-Davis something or other owned the company. ZD split and there was a ZD something and a Ziff-Davis something -- no clue and I don't remember which one Cobb belong to -- I can't remember the chain or the names. A company like Cobb gets sold and sold and sold and sold until they kill it -- Cobb is now EliJournals.com but they still produce the same print journals. Susan H. From ssharkins at gmail.com Mon Mar 10 09:26:41 2008 From: ssharkins at gmail.com (Susan Harkins) Date: Mon, 10 Mar 2008 10:26:41 -0400 Subject: [AccessD] Ziff-Davis goes bust (was: Good article) References: <042001c882b7$b137a860$8abea8c0@XPS> Message-ID: <028a01c882bb$3ac08590$4b3a8343@SusanOne> > > Ziff Davis/PC Mag is a real eye opener though. Would have expected them > to be one of the last ones to go. =======They are restructuring, not going out of business. Time will tell. > > Computer World, which I've read for the past 23 years is slowly dieing as > well. Recently they downsized their format citing postage costs. What I > expected was an increase in page count. Instead the format size went down > and the page count. I remember when Computer World arrived and it was > 100+ > pages. Last issue I got was 44 pages, half of which were ads. It's so > thin > now, I often think it's a flyer for a convention when I pick it up. Sad. =======Everything changes. I wish I could tell you where it will end, but I can't. Susan H. From DWUTKA at Marlow.com Mon Mar 10 09:47:40 2008 From: DWUTKA at Marlow.com (Drew Wutka) Date: Mon, 10 Mar 2008 09:47:40 -0500 Subject: [AccessD] Monday Humor - What a Kilobyte Really Is! In-Reply-To: <001201c882b9$9572f9c0$0300a8c0@danwaters> Message-ID: That was hilarious. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, March 10, 2008 9:18 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Monday Humor - What a Kilobyte Really Is! It's early on Monday and this made me laugh! http://www.xkcd.com Dan -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From cfoust at infostatsystems.com Mon Mar 10 11:18:07 2008 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 10 Mar 2008 09:18:07 -0700 Subject: [AccessD] Ziff-Davis goes bust (was: Good article) In-Reply-To: <027901c882ba$d27b19f0$4b3a8343@SusanOne> References: <027901c882ba$d27b19f0$4b3a8343@SusanOne> Message-ID: Yes, but I notice that most of the articles still aren't focused on A2007! LOL Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Monday, March 10, 2008 7:25 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Ziff-Davis goes bust (was: Good article) > No I didn't know that. That said, I have never known much about US > publishers and their ownerships ... ========Neither do we! ;) Seriously. When I joined Cobb, Ziff-Davis something or other owned the company. ZD split and there was a ZD something and a Ziff-Davis something -- no clue and I don't remember which one Cobb belong to -- I can't remember the chain or the names. A company like Cobb gets sold and sold and sold and sold until they kill it -- Cobb is now EliJournals.com but they still produce the same print journals. Susan H. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at gmail.com Mon Mar 10 12:13:43 2008 From: ssharkins at gmail.com (Susan Harkins) Date: Mon, 10 Mar 2008 13:13:43 -0400 Subject: [AccessD] Ziff-Davis goes bust (was: Good article) References: <027901c882ba$d27b19f0$4b3a8343@SusanOne> Message-ID: <038301c882d2$23e06270$4b3a8343@SusanOne> Well, I can explain that. Most publications don't make the switch until most of their readers do. It can take a long time. In my Cobb days, it could take six months or more to make the switch and then we wrote the article from the perspective of the newest version but had to include instructions for prior versions -- sometimes we had instructions for 3 or more versions, which just gets ridiculous after awhile. Once readers tip the scale, editors will make the switch. Susan H. > Yes, but I notice that most of the articles still aren't focused on > A2007! LOL From rosalyn.clarke at barclays.com Mon Mar 10 12:30:01 2008 From: rosalyn.clarke at barclays.com (rosalyn.clarke at barclays.com) Date: Mon, 10 Mar 2008 17:30:01 -0000 Subject: [AccessD] Msadodc.ocx - or not In-Reply-To: <038301c882d2$23e06270$4b3a8343@SusanOne> Message-ID: <0F978DF74B416B44A351B9143EB0FD33037D7A3F@MUKPBCC1XMB0103.collab.barclayscorp.com> Hi all I have a bunch of Access databases I need to migrate from a local environment at one of my client's offices to their new standardised citrix environment. The developers have made liberal use of msadodc.ocx controls, but this control is not included in the new environment. I've never used an active x data control so I'm not sure what I'm losing by ditching these. Is there a performance benefit to using the data control? Sample of how it's used below (long - please snip if responding!!) TIA Roz x rivate Sub cmdSBITable_Click() Dim cmd As New ADODB.Command Dim rstCharges As New ADODB.Recordset Dim dbs As Database Dim strPath As String Set dbs = CurrentDb strPath = dbs.Name Screen.MousePointer = 11 With ADODC1 .ConnectionString = "Provider=MSDAORA.1;Password=bbcc_dba; " _ & "User ID=bbcc;Data Source=cscs;Persist Security Info=True" .CursorLocation = adUseClient .CursorType = adOpenStatic End With With ADODC2 .ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0; " _ & "Data Source=" & "s:\access\chaps\chaps.mdb" & ";Persist Security Info=False" .CursorLocation = adUseClient .CursorType = adOpenStatic End With ' Vat Payable With cmd .ActiveConnection = ADODC2.ConnectionString .CommandText = "SELECT QryCustomerRegistration.ChargingSortCode, QryCustomerRegistration.ChargingAccountNo, " _ & "([QuarterlyNetBTCharge]+[QuarterlyNetCATCharge]+[QuarterlyNetPADCharge]+[Add itionalCharge])+(([QuarterlyNetBTCharge]+" _ & "[QuarterlyNetCATCharge]+[QuarterlyNetPADCharge]+[AdditionalCharge])/100*[VAT Rate]) AS TotalQuarterlyCharge " _ & "FROM (((TblVATRequired INNER JOIN QryCustomerRegistration ON TblVATRequired.VATRequired = QryCustomerRegistration.VATRequired) " _ & "INNER JOIN TblPadCharge ON QryCustomerRegistration.PadChargeLU = TblPadCharge.PadChargeLU) " _ & "INNER JOIN TblCatCharge ON QryCustomerRegistration.CatChargeLU = TblCatCharge.CatChargeLU) " _ & "INNER JOIN TblBTCharge ON QryCustomerRegistration.BTChargeLU = TblBTCharge.BTChargeLU " _ & "WHERE (((QryCustomerRegistration.PaymentMethod) <> 'Cheque') And ((QryCustomerRegistration.VATRequired) = 'Full') " _ & "And ((([QuarterlyNetBTCharge] + [QuarterlyNetCATCharge] + [QuarterlyNetPADCharge] + [AdditionalCharge]) + " _ & "(([QuarterlyNetBTCharge] + [QuarterlyNetCATCharge] + [QuarterlyNetPADCharge] + [AdditionalCharge]) / 100 * [VATRate])) > 0) " _ & "And ((QryCustomerRegistration.ChargeCustomer) = Yes)) " _ & "ORDER BY QryCustomerRegistration.CustomerName; " .Execute End With Set rstCharges = cmd.Execute rstCharges.MoveFirst Do Until rstCharges.EOF = True strErrorMessage = "" ModulusCheck rstCharges(0).Value, rstCharges(1).Value CheckSortCode rstCharges(0).Value If strErrorMessage = "" Then 'record is OK With cmd .ActiveConnection = ADODC1.ConnectionString .CommandText = "INSERT INTO sbi_t_data (Sort_Code, Account_Number, sec_code, total, valid_flag) " _ & "VALUES ('" & rstCharges(0).Value & "', '" & rstCharges(1).Value & "', '506', '" & rstCharges(2).Value * 100 & "', '0') " .Execute End With Else 'Mod 10 or Sort Code failure. Write to table with a failed flag With cmd .ActiveConnection = ADODC1.ConnectionString .CommandText = "INSERT INTO sbi_t_data (Sort_Code, Account_Number, sec_code, total, valid_flag) " _ & "VALUES ('" & rstCharges(0).Value & "', '" & rstCharges(1).Value & "', '506', '" & rstCharges(2).Value * 100 & "', '1') " .Execute End With End If rstCharges.MoveNext Loop rstCharges.Close ' Vat Not Payable With cmd .ActiveConnection = ADODC2.ConnectionString .CommandText = "SELECT QryCustomerRegistration.ChargingSortCode, QryCustomerRegistration.ChargingAccountNo, " _ & "([QuarterlyNetBTCharge]+[QuarterlyNetCATCharge]+[QuarterlyNetPADCharge]+[Add itionalCharge])+(([QuarterlyNetBTCharge]+" _ & "[QuarterlyNetCATCharge]+[QuarterlyNetPADCharge]+[AdditionalCharge])/100*[VAT Rate]) AS TotalQuarterlyCharge " _ & "FROM (((TblVATRequired INNER JOIN QryCustomerRegistration ON TblVATRequired.VATRequired = QryCustomerRegistration.VATRequired) " _ & "INNER JOIN TblPadCharge ON QryCustomerRegistration.PadChargeLU = TblPadCharge.PadChargeLU) " _ & "INNER JOIN TblCatCharge ON QryCustomerRegistration.CatChargeLU = TblCatCharge.CatChargeLU) " _ & "INNER JOIN TblBTCharge ON QryCustomerRegistration.BTChargeLU = TblBTCharge.BTChargeLU " _ & "WHERE (((QryCustomerRegistration.PaymentMethod) <> 'Cheque') And ((QryCustomerRegistration.VATRequired) = 'Exempt') " _ & "And ((([QuarterlyNetBTCharge] + [QuarterlyNetCATCharge] + [QuarterlyNetPADCharge] + [AdditionalCharge]) + " _ & "(([QuarterlyNetBTCharge] + [QuarterlyNetCATCharge] + [QuarterlyNetPADCharge] + [AdditionalCharge]) / 100 * [VATRate])) > 0) " _ & "And ((QryCustomerRegistration.ChargeCustomer) = Yes)) " _ & "ORDER BY QryCustomerRegistration.CustomerName; " .Execute End With Set rstCharges = cmd.Execute rstCharges.MoveFirst Do Until rstCharges.EOF = True strErrorMessage = "" ModulusCheck rstCharges(0).Value, rstCharges(1).Value CheckSortCode rstCharges(0).Value If strErrorMessage = "" Then 'record is OK With cmd .ActiveConnection = ADODC1.ConnectionString .CommandText = "INSERT INTO sbi_t_data (Sort_Code, Account_Number, sec_code, total, valid_flag) " _ & "VALUES ('" & rstCharges(0).Value & "', '" & rstCharges(1).Value & "', '506', '" & rstCharges(2).Value * 100 & "', '0') " .Execute End With Else 'Mod 10 or Sort Code failure. Write to table with a failed flag With cmd .ActiveConnection = ADODC1.ConnectionString .CommandText = "INSERT INTO sbi_t_data (Sort_Code, Account_Number, sec_code, total, valid_flag) " _ & "VALUES ('" & rstCharges(0).Value & "', '" & rstCharges(1).Value & "', '506', '" & rstCharges(2).Value * 100 & "', '1') " .Execute End With End If rstCharges.MoveNext Loop rstCharges.Close Screen.MousePointer = 0 MsgBox "SBI Billing run complete. Please inform Infrastructure Support", vbOKOnly, "SBI Billing" End Sub This e-mail and any attachments are confidential and intended solely for the addressee and may also be privileged or exempt from disclosure under applicable law. If you are not the addressee, or have received this e-mail in error, please notify the sender immediately, delete it from your system and do not copy, disclose or otherwise act upon any part of this e-mail or its attachments. Internet communications are not guaranteed to be secure or virus-free. The Barclays Group does not accept responsibility for any loss arising from unauthorised access to, or interference with, any Internet communications by any third party, or from the transmission of any viruses. Replies to this e-mail may be monitored by the Barclays Group for operational or business reasons. Any opinion or other information in this e-mail or its attachments that does not relate to the business of the Barclays Group is personal to the sender and is not given or endorsed by the Barclays Group. Barclays Bank PLC.Registered in England and Wales (registered no. 1026167). Registered Office: 1 Churchill Place, London, E14 5HP, United Kingdom. Barclays Bank PLC is authorised and regulated by the Financial Services Authority. From dbdoug at gmail.com Mon Mar 10 12:40:34 2008 From: dbdoug at gmail.com (Doug Steele) Date: Mon, 10 Mar 2008 10:40:34 -0700 Subject: [AccessD] Access 2007 Navigation Pane problem In-Reply-To: <000a01c88241$7b19e980$0300a8c0@danwaters> References: <4dd71a0c0803091647i5b9509a5i3afee35bbdab3488@mail.gmail.com> <000a01c88241$7b19e980$0300a8c0@danwaters> Message-ID: <4dd71a0c0803101040x2fed886dsa0152413838badc1@mail.gmail.com> Thanks for the suggestions. If I open the db holding the shift key, sure enough, the Nav Pane isn't locked. So it must be something in the startup options. I tried setting all the startup options to the defaults for Access 2007, but that didn't help. Rebuilding the db by importing all the objects did fix the problem. Unfortunately I have to support this db in both Access 2003 and Access 2007 - what a pain to have to rebuild it each time I make any changes! The rebuild always hangs at the last code module, as well, but appears to be complete. But on the other hand, I did advise my client NOT to get Office 2007.... Doug Steele On Sun, Mar 9, 2008 at 4:58 PM, Dan Waters wrote: > Doug, > > I have no experience with A2007 - but with problems like this I try to > import all the database objects into a new blank database. > > When you do this, be sure to look at the options for importing - you have > to > check yes to import any custom toolbars you've made (at least for A2003). > > From John.Clark at niagaracounty.com Mon Mar 10 13:33:36 2008 From: John.Clark at niagaracounty.com (John Clark) Date: Mon, 10 Mar 2008 14:33:36 -0400 Subject: [AccessD] Creating a Login form & check PW...how? In-Reply-To: <010901c87fb6$fbba11b0$0201a8c0@M90> References: <29f585dd0803031407g20c20a59j953b286deadd69ae@mail.gmail.com> <47CEAD90.167F.006B.0@niagaracounty.com> <010901c87fb6$fbba11b0$0201a8c0@M90> Message-ID: <47D546BA.167F.006B.0@niagaracounty.com> Thanks John. I think I will try this approach. Sorry for the delay getting back to you...I got tied up w/some personal junk. John W. Clark Computer Programmer Niagara County Central Data Processing >>> "jwcolby" 3/6/2008 1:22 PM >>> John, I highly recommend that you go one step further and do a full on group / user / groupuser system. tblUser USR_ID USR_Initials USR_Name tblGroup GRP_ID GRP_Name tblGroupUser GU_ID GU_IDGRP GU_IDUSR Now you can create groups at will, and users at will, then assign users to groups. All basically just like in Windows itself. However I find it useful to have database groups separate and distinct from groups at the windows level. I decided to write a demo of how to do this and am almost finished. I will make it available tomorrow when I am done. I have what I call my LightWeight Security system embedded in my framework but like many things, I was not happy with my first pass. The version I am just now finishing looks much more polished and easier to comprehend and use. Anyone want to be a beta tester? 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 Clark Sent: Wednesday, March 05, 2008 2:26 PM To: Access Developers discussion and problem solving Subject: [AccessD] Creating a Login form & check PW...how? Easy one for y'all...(A03 by the way) I'm trying to add a login screen to a current db, so that I can divide users into three groups. Depending on your group, different buttons will be enabled/disabled. So far I've got a table (tblUsr) where I've got the individual users...txtUsrID, txtPW, txtSecLevel. I have a form w/they can type in their ID and PW, but I'm having trouble figuring out how to check that they have entered the correct PW. I figured this would be easy enough, and I thought I did it before, but I'm struggling here. Thanks! JClark PS...I haven't been out here much, because my programming duties were scant, but I've been assigned a couple more programs, so I'll probably be a pain again, until I get my wings back ;o) John W. Clark Computer Programmer Niagara County Central Data Processing -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Mon Mar 10 13:49:11 2008 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 10 Mar 2008 14:49:11 -0400 Subject: [AccessD] Creating a Login form & check PW...how? In-Reply-To: <47D546BA.167F.006B.0@niagaracounty.com> References: <29f585dd0803031407g20c20a59j953b286deadd69ae@mail.gmail.com><47CEAD90.167F.006B.0@niagaracounty.com><010901c87fb6$fbba11b0$0201a8c0@M90> <47D546BA.167F.006B.0@niagaracounty.com> Message-ID: <001201c882df$6ebbd2e0$0201a8c0@M90> I have a library written that is the stuff outlined below. If you would like to be a beta tester of the LWS just send me an email and I will include you in the list and send you what I have. I am applying this LWS library to a client system this week so I am actually using what I just built. 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 Clark Sent: Monday, March 10, 2008 2:34 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Creating a Login form & check PW...how? Thanks John. I think I will try this approach. Sorry for the delay getting back to you...I got tied up w/some personal junk. John W. Clark Computer Programmer Niagara County Central Data Processing >>> "jwcolby" 3/6/2008 1:22 PM >>> John, I highly recommend that you go one step further and do a full on group / user / groupuser system. tblUser USR_ID USR_Initials USR_Name tblGroup GRP_ID GRP_Name tblGroupUser GU_ID GU_IDGRP GU_IDUSR Now you can create groups at will, and users at will, then assign users to groups. All basically just like in Windows itself. However I find it useful to have database groups separate and distinct from groups at the windows level. I decided to write a demo of how to do this and am almost finished. I will make it available tomorrow when I am done. I have what I call my LightWeight Security system embedded in my framework but like many things, I was not happy with my first pass. The version I am just now finishing looks much more polished and easier to comprehend and use. Anyone want to be a beta tester? 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 Clark Sent: Wednesday, March 05, 2008 2:26 PM To: Access Developers discussion and problem solving Subject: [AccessD] Creating a Login form & check PW...how? Easy one for y'all...(A03 by the way) I'm trying to add a login screen to a current db, so that I can divide users into three groups. Depending on your group, different buttons will be enabled/disabled. So far I've got a table (tblUsr) where I've got the individual users...txtUsrID, txtPW, txtSecLevel. I have a form w/they can type in their ID and PW, but I'm having trouble figuring out how to check that they have entered the correct PW. I figured this would be easy enough, and I thought I did it before, but I'm struggling here. Thanks! JClark PS...I haven't been out here much, because my programming duties were scant, but I've been assigned a couple more programs, so I'll probably be a pain again, until I get my wings back ;o) John W. Clark Computer Programmer Niagara County Central Data Processing -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Mon Mar 10 14:57:16 2008 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 10 Mar 2008 12:57:16 -0700 Subject: [AccessD] Msadodc.ocx - or not In-Reply-To: <0F978DF74B416B44A351B9143EB0FD33037D7A3F@MUKPBCC1XMB0103.collab.barclayscorp.com> References: <038301c882d2$23e06270$4b3a8343@SusanOne> <0F978DF74B416B44A351B9143EB0FD33037D7A3F@MUKPBCC1XMB0103.collab.barclayscorp.com> Message-ID: I must not have read it closely enough, because I don't see anything in there that requires an ActiveX control. It looks like straightforward ADO to me. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of rosalyn.clarke at barclays.com Sent: Monday, March 10, 2008 10:30 AM To: accessd at databaseadvisors.com Subject: [AccessD] Msadodc.ocx - or not Hi all I have a bunch of Access databases I need to migrate from a local environment at one of my client's offices to their new standardised citrix environment. The developers have made liberal use of msadodc.ocx controls, but this control is not included in the new environment. I've never used an active x data control so I'm not sure what I'm losing by ditching these. Is there a performance benefit to using the data control? Sample of how it's used below (long - please snip if responding!!) TIA Roz From zora_db at yahoo.com Mon Mar 10 15:27:58 2008 From: zora_db at yahoo.com (Roz Clarke) Date: Mon, 10 Mar 2008 13:27:58 -0700 (PDT) Subject: [AccessD] Msadodc.ocx - or not Message-ID: <318717.7872.qm@web50105.mail.re2.yahoo.com> Thank you for ploughing through it Charlotte - ADODC1 and ADODC2 are the controls. I'm terribly out of practice, but I should just be able to replace them with connection objects, I think..? ----- Original Message ---- From: Charlotte Foust To: Access Developers discussion and problem solving Sent: Monday, 10 March, 2008 7:57:16 PM Subject: Re: [AccessD] Msadodc.ocx - or not I must not have read it closely enough, because I don't see anything in there that requires an ActiveX control. It looks like straightforward ADO to me. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of rosalyn.clarke at barclays.com Sent: Monday, March 10, 2008 10:30 AM To: accessd at databaseadvisors.com Subject: [AccessD] Msadodc.ocx - or not Hi all I have a bunch of Access databases I need to migrate from a local environment at one of my client's offices to their new standardised citrix environment. The developers have made liberal use of msadodc.ocx controls, but this control is not included in the new environment. I've never used an active x data control so I'm not sure what I'm losing by ditching these. Is there a performance benefit to using the data control? Sample of how it's used below (long - please snip if responding!!) TIA Roz -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com __________________________________________________________ Sent from Yahoo! Mail. The World's Favourite Email http://uk.docs.yahoo.com/nowyoucan.html From cfoust at infostatsystems.com Mon Mar 10 15:46:22 2008 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 10 Mar 2008 13:46:22 -0700 Subject: [AccessD] Msadodc.ocx - or not In-Reply-To: <318717.7872.qm@web50105.mail.re2.yahoo.com> References: <318717.7872.qm@web50105.mail.re2.yahoo.com> Message-ID: But what kind of controls are they? The Provider is one I'm unfamiliar with, but a cursory web sueach suggests it's for Oracle. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Roz Clarke Sent: Monday, March 10, 2008 1:28 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Msadodc.ocx - or not Thank you for ploughing through it Charlotte - ADODC1 and ADODC2 are the controls. I'm terribly out of practice, but I should just be able to replace them with connection objects, I think..? ----- Original Message ---- From: Charlotte Foust To: Access Developers discussion and problem solving Sent: Monday, 10 March, 2008 7:57:16 PM Subject: Re: [AccessD] Msadodc.ocx - or not I must not have read it closely enough, because I don't see anything in there that requires an ActiveX control. It looks like straightforward ADO to me. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of rosalyn.clarke at barclays.com Sent: Monday, March 10, 2008 10:30 AM To: accessd at databaseadvisors.com Subject: [AccessD] Msadodc.ocx - or not Hi all I have a bunch of Access databases I need to migrate from a local environment at one of my client's offices to their new standardised citrix environment. The developers have made liberal use of msadodc.ocx controls, but this control is not included in the new environment. I've never used an active x data control so I'm not sure what I'm losing by ditching these. Is there a performance benefit to using the data control? Sample of how it's used below (long - please snip if responding!!) TIA Roz -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com __________________________________________________________ Sent from Yahoo! Mail. The World's Favourite Email http://uk.docs.yahoo.com/nowyoucan.html -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Mon Mar 10 21:03:34 2008 From: accessd at shaw.ca (Jim Lawrence) Date: Mon, 10 Mar 2008 19:03:34 -0700 Subject: [AccessD] Ziff-Davis goes bust (was: Good article) In-Reply-To: References: Message-ID: <8F70F9ED7E5348588D36299B07D79249@creativesystemdesigns.com> I use to have a subscription to BYTE magazine. It was very popular, at the time and was a very thick publication. The magazine slowly became thinner and I let my subscription lapse and in the mid 90s, it was gone. Also had a subscription to PC Magazine for years and am sorry to see it go. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, March 10, 2008 2:17 AM To: accessd at databaseadvisors.com Subject: [AccessD] Ziff-Davis goes bust (was: Good article) Hi Susan et al Something indicates that times are tough for publishers when even Ziff-Davis is in trouble: http://blog.wired.com/business/2008/03/ziff-davis-succ.html PC Magazine used to be my bible. /gustav >>> ssharkins at gmail.com 08-03-2008 13:53 >>> My problem is finding publications that pay responsibly. .. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Mon Mar 10 21:40:17 2008 From: accessd at shaw.ca (Jim Lawrence) Date: Mon, 10 Mar 2008 19:40:17 -0700 Subject: [AccessD] Msadodc.ocx - or not In-Reply-To: <0F978DF74B416B44A351B9143EB0FD33037D7A3F@MUKPBCC1XMB0103.collab.barclayscorp.com> References: <038301c882d2$23e06270$4b3a8343@SusanOne> <0F978DF74B416B44A351B9143EB0FD33037D7A3F@MUKPBCC1XMB0103.collab.barclayscorp.com> Message-ID: <7B18A9FBF832459384398C8C8756762E@creativesystemdesigns.com> Hi Roz: I have used these controls ADO-OLE for years (since 1997) but generally with MS SQL databases. There is no advantage to using these with MDB as they are not as optimized. These controls should work in any Windows environment. They install by default and are stored within your Program Files directory > common files > System > ADO. I found these controls great as no matter where a remote system was setup the applications would always work without any further management. That is why I find it hard to believe they do not work in your current environment. Another good reason to use them other than they are so standardized virtually the same code will work with any Oracle, MS SQL and MDB database... or any DB for that matter There is also a whole group of great ADO functionality available like steaming controls for images, video and large files and data shaping capabilities (pseudo cubes and data arrays) that are very fast. I would recommend you get this common directory block installed on your new system and get the latest MSADOxxx files registered. It would be far better than having to redo all the code and still not have a superior product. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of rosalyn.clarke at barclays.com Sent: Monday, March 10, 2008 10:30 AM To: accessd at databaseadvisors.com Subject: [AccessD] Msadodc.ocx - or not Hi all I have a bunch of Access databases I need to migrate from a local environment at one of my client's offices to their new standardised citrix environment. The developers have made liberal use of msadodc.ocx controls, but this control is not included in the new environment. I've never used an active x data control so I'm not sure what I'm losing by ditching these. Is there a performance benefit to using the data control? Sample of how it's used below (long - please snip if responding!!) TIA Roz From Darryl.Collins at coles.com.au Mon Mar 10 23:24:00 2008 From: Darryl.Collins at coles.com.au (Darryl Collins) Date: Tue, 11 Mar 2008 15:24:00 +1100 Subject: [AccessD] TabControlSheet Page Event? Message-ID: <49DFE57FB126044B8A8B934E7AEA09ED09FD704E@WPEXCH05.colesmyer.ad.cmltd.net.au> Hey all, I am stuck on with this, It is probably easy but been up since 4am (it is now 3:20pm) so I am not the sharpest tool in the shed right now! I have a form with sheet tabs, currently when a user opens the form it is populating all the tabs with data, but this seems a lot of overhead as some users will only look at one or two of the Tab pages. I wanted to capture when a user click on the tab page so I can call some VBA that will load the sub forms for that page only. I have the code to populate the sheet tabs etc, but I cannot seem to capture the "click on page tab" event at all. I can get "Click on TabControlSheet" but that is for the whole sheet and/or other such unhelpful combos of events. I thought this would be simple, but maybe I am wrong? '------------------------------------------------ ' Something like: Private Sub TabControlSheet.Pages(2)_Click() ' Then call the modules I want End sub '------------------------------------------------ would be great, but that doesn't seem to be an option. Any advice? cheers Darryl. This email and any attachments may contain privileged and confidential information and are intended for the named addressee only. If you have received this e-mail in error, please notify the sender and delete this e-mail immediately. Any confidentiality, privilege or copyright is not waived or lost because this e-mail has been sent to you in error. It is your responsibility to check this e-mail and any attachments for viruses. No warranty is made that this material is free from computer virus or any other defect or error. Any loss/damage incurred by using this material is not the sender's responsibility. The sender's entire liability will be limited to resupplying the material. From accessd at shaw.ca Mon Mar 10 23:57:43 2008 From: accessd at shaw.ca (Jim Lawrence) Date: Mon, 10 Mar 2008 21:57:43 -0700 Subject: [AccessD] TabControlSheet Page Event? In-Reply-To: <49DFE57FB126044B8A8B934E7AEA09ED09FD704E@WPEXCH05.colesmyer.ad.cmltd.net.au> References: <49DFE57FB126044B8A8B934E7AEA09ED09FD704E@WPEXCH05.colesmyer.ad.cmltd.net.au> Message-ID: Hi Darryl: You have run into the problem that many before you have collided with. The person that could best help with this is John Colby.... he is probably asleep now. He has perfected a JIT system that does not populate the tab with objects until the tab is selected. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darryl Collins Sent: Monday, March 10, 2008 9:24 PM To: Access Developers discussion and problem solving Subject: [AccessD] TabControlSheet Page Event? Hey all, I am stuck on with this, It is probably easy but been up since 4am (it is now 3:20pm) so I am not the sharpest tool in the shed right now! I have a form with sheet tabs, currently when a user opens the form it is populating all the tabs with data, but this seems a lot of overhead as some users will only look at one or two of the Tab pages. I wanted to capture when a user click on the tab page so I can call some VBA that will load the sub forms for that page only. I have the code to populate the sheet tabs etc, but I cannot seem to capture the "click on page tab" event at all. I can get "Click on TabControlSheet" but that is for the whole sheet and/or other such unhelpful combos of events. I thought this would be simple, but maybe I am wrong? '------------------------------------------------ ' Something like: Private Sub TabControlSheet.Pages(2)_Click() ' Then call the modules I want End sub '------------------------------------------------ would be great, but that doesn't seem to be an option. Any advice? cheers Darryl. This email and any attachments may contain privileged and confidential information and are intended for the named addressee only. If you have received this e-mail in error, please notify the sender and delete this e-mail immediately. Any confidentiality, privilege or copyright is not waived or lost because this e-mail has been sent to you in error. It is your responsibility to check this e-mail and any attachments for viruses. No warranty is made that this material is free from computer virus or any other defect or error. Any loss/damage incurred by using this material is not the sender's responsibility. The sender's entire liability will be limited to resupplying the material. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From kp at sdsonline.net Tue Mar 11 00:00:07 2008 From: kp at sdsonline.net (Kath Pelletti) Date: Tue, 11 Mar 2008 16:00:07 +1100 Subject: [AccessD] TabControlSheet Page Event? References: <49DFE57FB126044B8A8B934E7AEA09ED09FD704E@WPEXCH05.colesmyer.ad.cmltd.net.au> Message-ID: <000701c88334$c8390fe0$6401a8c0@DELLAPTOP> Darryl - you need the tab control's 'On Change' event. For each 'tab' on the tab control, the tabs have a value starting from 0 (ie. the first tab is 0, the second is 1 etc). So then you can say if on the first tab, load subform a, if on 2nd tab, load subform b etc. My code looks something like this: '---------------------------------------------------------- Private Sub TabChosen_Change() Dim strerrormsg As String On Error GoTo Err_Handler If Me.Dirty Then DoCmd.RunCommand acCmdSaveRecord End If If Me.TabChosen.Value = 1 Then 'On borrowers subform. 'If subform not loaded then load it. If IsNull(Me.FrmClientContractPrincipalSecuritiesSubform.SourceObject) Or _ Me.FrmClientContractPrincipalSecuritiesSubform.SourceObject = "" Then Me.FrmClientContractPrincipalSecuritiesSubform.SourceObject = "FrmClientContractPrincipalSecuritiesSubform" End If Me.FrmClientContractPrincipalSecuritiesSubform![OfferedBy].Requery ElseIf Me.TabChosen.Value = 2 Then 'On Collateral securities subform. 'If subform not loaded then load it. If IsNull(Me.FrmClientContractCollateralSecuritiesSubform.SourceObject) Or _ Me.FrmClientContractCollateralSecuritiesSubform.SourceObject = "" Then Me.FrmClientContractCollateralSecuritiesSubform.SourceObject = "FrmClientContractCollateralSecuritiesSubform" End If ElseIf Me.TabChosen.Value = 3 Then 'On IPF data tab subform If IsNull(Me.FrmClientContractIPFData.SourceObject) Or _ Me.FrmClientContractIPFData.SourceObject = "" Then Me.FrmClientContractIPFData.SourceObject = "FrmClientContractIPFData" End If End If Normal_exit: Application.Echo True Exit Sub Err_Handler: MsgBox "Error: [" & Err.Number & "] " & IIf(Len(strerrormsg) > 0, strerrormsg, Err.Description), vbCritical, "Error Message" Resume Normal_exit End Sub '---------------------------------------------------------- Kath ----- Original Message ----- From: "Darryl Collins" To: "Access Developers discussion and problem solving" Sent: Tuesday, March 11, 2008 3:24 PM Subject: [AccessD] TabControlSheet Page Event? > Hey all, > > I am stuck on with this, It is probably easy but been up since 4am (it is > now 3:20pm) so I am not the sharpest tool in the shed right now! > > I have a form with sheet tabs, currently when a user opens the form it is > populating all the tabs with data, but this seems a lot of overhead as > some users will only look at one or two of the Tab pages. I wanted to > capture when a user click on the tab page so I can call some VBA that will > load the sub forms for that page only. I have the code to populate the > sheet tabs etc, but I cannot seem to capture the "click on page tab" event > at all. > > I can get "Click on TabControlSheet" but that is for the whole sheet > and/or other such unhelpful combos of events. I thought this would be > simple, but maybe I am wrong? > > > '------------------------------------------------ > ' Something like: > > Private Sub TabControlSheet.Pages(2)_Click() > > ' Then call the modules I want > > End sub > '------------------------------------------------ > > would be great, but that doesn't seem to be an option. > > Any advice? > > cheers > > Darryl. > > This email and any attachments may contain privileged and confidential > information and are intended for the named addressee only. If you have > received this e-mail in error, please notify the sender and delete this > e-mail immediately. Any confidentiality, privilege or copyright is not > waived or lost because this e-mail has been sent to you in error. It is > your responsibility to check this e-mail and any attachments for viruses. > No warranty is made that this material is free from computer virus or any > other defect or error. Any loss/damage incurred by using this material is > not the sender's responsibility. The sender's entire liability will be > limited to resupplying the material. > > -- > 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 Mar 11 03:31:29 2008 From: newsgrps at dalyn.co.nz (David Emerson) Date: Tue, 11 Mar 2008 21:31:29 +1300 Subject: [AccessD] Faxing reports from Access In-Reply-To: <000501c8678c$4d28a1d0$6401a8c0@DELLAPTOP> References: <20080204010420.EBOI18083.fep03.xtra.co.nz@Dalyn.dalyn.co.nz> <014e01c86780$951e12b0$6401a8c0@DELLAPTOP> <20080204235917.POLZ18083.fep03.xtra.co.nz@Dalyn.dalyn.co.nz> <000501c8678c$4d28a1d0$6401a8c0@DELLAPTOP> Message-ID: <20080311083230.MCBF17371.fep04.xtra.co.nz@Dalyn.dalyn.co.nz> Ok, I have made some progress. We have WinFax Pro set up on the server and it is linked to another computer on the network with a modem. I have code from Helen Feddema of Woody's Access Watch but it doesn't include attachments. Does anyone know of where I can get code to add attachments to the fax? Also, whether pdf files can be used as attachments or whether they need to be saved in a Winfax format before they can be added to a fax. David At 5/02/2008, you wrote: >Great if you can keep us posted - the next app I am writing (2003) will also >require faxing from the db. > >Kath > >----- Original Message ----- >From: "David Emerson" >To: "Access Developers discussion and problem solving" > >Sent: Tuesday, February 05, 2008 11:01 AM >Subject: Re: [AccessD] Faxing reports from Access > > > > Thanks Kath, > > > > I have that article and was going to use it, but then found that the > > server that it would be run on doesn't have a modem or phone attached to > > it :'( > > > > They do have a couple of printers that are available, and these do > > have fax software but neither of them seem to enable external > > commands from within other applications like WinFax does :-( > > > > Will keep everyone posted. > > > > Regards > > > > David > > > > > > At 5/02/2008, you wrote: > >>David - There was an article in Woody's Access Watch about faxing from > >>Access. I will forward the Part 2 of it to you offline - > >> > >>Kath > >> > >> > >>----- Original Message ----- > >>From: "David Emerson" > >>To: > >>Sent: Monday, February 04, 2008 12:06 PM > >>Subject: [AccessD] Faxing reports from Access > >> > >> > >> >I have a client who want to fax two reports to their clients (a cover > >> > sheet, and a second report). They have WinFax 10 Pro installed but I > >> > am having problems getting technical information on how to use it. > >> > > >> > Does anyone have any code for sending Faxes using WinFax? > >> > > >> > Regards > >> > > >> > David Emerson > >> > Dalyn Software Ltd > >> > Wellington, New Zealand > >> > > >> > -- > >> > AccessD mailing list > >> > AccessD at databaseadvisors.com > >> > http://databaseadvisors.com/mailman/listinfo/accessd > >> > Website: http://www.databaseadvisors.com > >> > > >> > >> > >>-- > >>AccessD mailing list > >>AccessD at databaseadvisors.com > >>http://databaseadvisors.com/mailman/listinfo/accessd > >>Website: http://www.databaseadvisors.com > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > 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 Mar 11 03:56:27 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 11 Mar 2008 09:56:27 +0100 Subject: [AccessD] Faxing reports from Access Message-ID: Hi David You will have to "print" the attachments as individual documents to the fax (printer) driver. Somehow you need to tell the fax driver when faxing the main document that more pages will follow. /gustav >>> newsgrps at dalyn.co.nz 11-03-2008 09:31:29 >>> Ok, I have made some progress. We have WinFax Pro set up on the server and it is linked to another computer on the network with a modem. I have code from Helen Feddema of Woody's Access Watch but it doesn't include attachments. Does anyone know of where I can get code to add attachments to the fax? Also, whether pdf files can be used as attachments or whether they need to be saved in a Winfax format before they can be added to a fax. David At 5/02/2008, you wrote: >Great if you can keep us posted - the next app I am writing (2003) will also >require faxing from the db. > >Kath > >----- Original Message ----- >From: "David Emerson" >To: "Access Developers discussion and problem solving" > >Sent: Tuesday, February 05, 2008 11:01 AM >Subject: Re: [AccessD] Faxing reports from Access > > > > Thanks Kath, > > > > I have that article and was going to use it, but then found that the > > server that it would be run on doesn't have a modem or phone attached to > > it :'( > > > > They do have a couple of printers that are available, and these do > > have fax software but neither of them seem to enable external > > commands from within other applications like WinFax does :-( > > > > Will keep everyone posted. > > > > Regards > > > > David > > > > > > At 5/02/2008, you wrote: > >>David - There was an article in Woody's Access Watch about faxing from > >>Access. I will forward the Part 2 of it to you offline - > >> > >>Kath > >> > >> > >>----- Original Message ----- > >>From: "David Emerson" > >>To: > >>Sent: Monday, February 04, 2008 12:06 PM > >>Subject: [AccessD] Faxing reports from Access > >> > >> > >> >I have a client who want to fax two reports to their clients (a cover > >> > sheet, and a second report). They have WinFax 10 Pro installed but I > >> > am having problems getting technical information on how to use it. > >> > > >> > Does anyone have any code for sending Faxes using WinFax? > >> > > >> > Regards > >> > > >> > David Emerson > >> > Dalyn Software Ltd > >> > Wellington, New Zealand From bbruen at unwired.com.au Tue Mar 11 05:21:00 2008 From: bbruen at unwired.com.au (Bruce Bruen) Date: Tue, 11 Mar 2008 21:21:00 +1100 Subject: [AccessD] OT: Do not open till Friday Message-ID: <200803112121.01312.bbruen@unwired.com.au> I have no idea why, but this amuses the hell out of me. http://www.mywestnet.com.au/members/newsletter/2008/february_wacky.htm -- regards Bruce From rosalyn.clarke at barclays.com Tue Mar 11 05:37:26 2008 From: rosalyn.clarke at barclays.com (rosalyn.clarke at barclays.com) Date: Tue, 11 Mar 2008 10:37:26 -0000 Subject: [AccessD] Msadodc.ocx - or not In-Reply-To: <7B18A9FBF832459384398C8C8756762E@creativesystemdesigns.com> Message-ID: <0F978DF74B416B44A351B9143EB0FD33037D7A6E@MUKPBCC1XMB0103.collab.barclayscorp.com> Thanks Jim, that's really useful. For some reason, though other ADO tools are available and other .ocx files are available, this one is not installed. I have raised a request to have it added, but have been told that adding anything to the new environment takes 8-12 weeks and costs ?8000. I am a small cog in a very big machine. :( -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: 11 March 2008 02:40 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Msadodc.ocx - or not Hi Roz: I have used these controls ADO-OLE for years (since 1997) but generally with MS SQL databases. There is no advantage to using these with MDB as they are not as optimized. These controls should work in any Windows environment. They install by default and are stored within your Program Files directory > common files > System > ADO. I found these controls great as no matter where a remote system was setup the applications would always work without any further management. That is why I find it hard to believe they do not work in your current environment. Another good reason to use them other than they are so standardized virtually the same code will work with any Oracle, MS SQL and MDB database... or any DB for that matter There is also a whole group of great ADO functionality available like steaming controls for images, video and large files and data shaping capabilities (pseudo cubes and data arrays) that are very fast. I would recommend you get this common directory block installed on your new system and get the latest MSADOxxx files registered. It would be far better than having to redo all the code and still not have a superior product. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of rosalyn.clarke at barclays.com Sent: Monday, March 10, 2008 10:30 AM To: accessd at databaseadvisors.com Subject: [AccessD] Msadodc.ocx - or not Hi all I have a bunch of Access databases I need to migrate from a local environment at one of my client's offices to their new standardised citrix environment. The developers have made liberal use of msadodc.ocx controls, but this control is not included in the new environment. I've never used an active x data control so I'm not sure what I'm losing by ditching these. Is there a performance benefit to using the data control? Sample of how it's used below (long - please snip if responding!!) TIA Roz -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This e-mail and any attachments are confidential and intended solely for the addressee and may also be privileged or exempt from disclosure under applicable law. If you are not the addressee, or have received this e-mail in error, please notify the sender immediately, delete it from your system and do not copy, disclose or otherwise act upon any part of this e-mail or its attachments. Internet communications are not guaranteed to be secure or virus-free. The Barclays Group does not accept responsibility for any loss arising from unauthorised access to, or interference with, any Internet communications by any third party, or from the transmission of any viruses. Replies to this e-mail may be monitored by the Barclays Group for operational or business reasons. Any opinion or other information in this e-mail or its attachments that does not relate to the business of the Barclays Group is personal to the sender and is not given or endorsed by the Barclays Group. Barclays Bank PLC.Registered in England and Wales (registered no. 1026167). Registered Office: 1 Churchill Place, London, E14 5HP, United Kingdom. Barclays Bank PLC is authorised and regulated by the Financial Services Authority. From max.wanadoo at gmail.com Tue Mar 11 05:50:20 2008 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Tue, 11 Mar 2008 10:50:20 -0000 Subject: [AccessD] TabControlSheet Page Event? In-Reply-To: <000701c88334$c8390fe0$6401a8c0@DELLAPTOP> References: <49DFE57FB126044B8A8B934E7AEA09ED09FD704E@WPEXCH05.colesmyer.ad.cmltd.net.au> <000701c88334$c8390fe0$6401a8c0@DELLAPTOP> Message-ID: <003c01c88365$b53c42a0$8119fea9@LTVM> Hi Kath, As an aside, you can change this: If Me.Dirty Then DoCmd.RunCommand acCmdSaveRecord End If to this: me.dirty = false It does the same thing without having to do a check first or invoking another function. all happens within the Form. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kath Pelletti Sent: Tuesday, March 11, 2008 5:00 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] TabControlSheet Page Event? Darryl - you need the tab control's 'On Change' event. For each 'tab' on the tab control, the tabs have a value starting from 0 (ie. the first tab is 0, the second is 1 etc). So then you can say if on the first tab, load subform a, if on 2nd tab, load subform b etc. My code looks something like this: '---------------------------------------------------------- Private Sub TabChosen_Change() Dim strerrormsg As String On Error GoTo Err_Handler If Me.Dirty Then DoCmd.RunCommand acCmdSaveRecord End If If Me.TabChosen.Value = 1 Then 'On borrowers subform. 'If subform not loaded then load it. If IsNull(Me.FrmClientContractPrincipalSecuritiesSubform.SourceObject) Or _ Me.FrmClientContractPrincipalSecuritiesSubform.SourceObject = "" Then Me.FrmClientContractPrincipalSecuritiesSubform.SourceObject = "FrmClientContractPrincipalSecuritiesSubform" End If Me.FrmClientContractPrincipalSecuritiesSubform![OfferedBy].Requery ElseIf Me.TabChosen.Value = 2 Then 'On Collateral securities subform. 'If subform not loaded then load it. If IsNull(Me.FrmClientContractCollateralSecuritiesSubform.SourceObject) Or _ Me.FrmClientContractCollateralSecuritiesSubform.SourceObject = "" Then Me.FrmClientContractCollateralSecuritiesSubform.SourceObject = "FrmClientContractCollateralSecuritiesSubform" End If ElseIf Me.TabChosen.Value = 3 Then 'On IPF data tab subform If IsNull(Me.FrmClientContractIPFData.SourceObject) Or _ Me.FrmClientContractIPFData.SourceObject = "" Then Me.FrmClientContractIPFData.SourceObject = "FrmClientContractIPFData" End If End If Normal_exit: Application.Echo True Exit Sub Err_Handler: MsgBox "Error: [" & Err.Number & "] " & IIf(Len(strerrormsg) > 0, strerrormsg, Err.Description), vbCritical, "Error Message" Resume Normal_exit End Sub '---------------------------------------------------------- Kath ----- Original Message ----- From: "Darryl Collins" To: "Access Developers discussion and problem solving" Sent: Tuesday, March 11, 2008 3:24 PM Subject: [AccessD] TabControlSheet Page Event? > Hey all, > > I am stuck on with this, It is probably easy but been up since 4am (it is > now 3:20pm) so I am not the sharpest tool in the shed right now! > > I have a form with sheet tabs, currently when a user opens the form it is > populating all the tabs with data, but this seems a lot of overhead as > some users will only look at one or two of the Tab pages. I wanted to > capture when a user click on the tab page so I can call some VBA that will > load the sub forms for that page only. I have the code to populate the > sheet tabs etc, but I cannot seem to capture the "click on page tab" event > at all. > > I can get "Click on TabControlSheet" but that is for the whole sheet > and/or other such unhelpful combos of events. I thought this would be > simple, but maybe I am wrong? > > > '------------------------------------------------ > ' Something like: > > Private Sub TabControlSheet.Pages(2)_Click() > > ' Then call the modules I want > > End sub > '------------------------------------------------ > > would be great, but that doesn't seem to be an option. > > Any advice? > > cheers > > Darryl. > > This email and any attachments may contain privileged and confidential > information and are intended for the named addressee only. If you have > received this e-mail in error, please notify the sender and delete this > e-mail immediately. Any confidentiality, privilege or copyright is not > waived or lost because this e-mail has been sent to you in error. It is > your responsibility to check this e-mail and any attachments for viruses. > No warranty is made that this material is free from computer virus or any > other defect or error. Any loss/damage incurred by using this material is > not the sender's responsibility. The sender's entire liability will be > limited to resupplying the material. > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Mar 11 06:19:20 2008 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 11 Mar 2008 07:19:20 -0400 Subject: [AccessD] TabControlSheet Page Event? In-Reply-To: <49DFE57FB126044B8A8B934E7AEA09ED09FD704E@WPEXCH05.colesmyer.ad.cmltd.net.au> References: <49DFE57FB126044B8A8B934E7AEA09ED09FD704E@WPEXCH05.colesmyer.ad.cmltd.net.au> Message-ID: <002c01c88369$c11ee010$0201a8c0@M90> Darryl The following code is what I used in the LWS you have seen me mention. The tab controls themselves do not have a click event, and while the tab form does, it does not fire when you click on a tab, but rather when you click on some part of the tab control itself - mostly useless IMHO. So we use the change event which does fire when you click a tab page. This code assumes that ONLY subforms are on the tabs, if you have other controls then you will need to do a check that the control selected is in fact a subform. pgOld.Controls(0).SourceObject = "" I pull the code out into a function because I manually load the main form on the main tab. I also UNLOAD the form on the tab clicked off of. I do this for a variety of reasons including the fact that it makes things faster and uses less resources. Enjoy, '--------------------------------------------------------------------------- ------------ ' Procedure : mLoadsubform ' Author : jwcolby ' Date : 3/6/2008 ' Purpose : Implements Just-In-Time subforms '--------------------------------------------------------------------------- ------------ ' Private Function mLoadsubform() Dim pgNew As Page Dim pgOld As Page Static intOldPageIndex As Integer On Error GoTo mLoadsubform_Error ' 'Get the currently selected page Set pgNew = tabLWSCtl.Pages(tabLWSCtl.Value) Set pgOld = tabLWSCtl.Pages(intOldPageIndex) ' 'Unload the old page's subform ' pgOld.Controls(0).SourceObject = "" ' 'Move the tag into the source object. This will cause the subform to load 'assuming that the control is a subform control of course pgNew.Controls(0).SourceObject = pgNew.Controls(0).Tag intOldPageIndex = tabLWSCtl.Value mLoadsubform_Exit: On Error Resume Next Exit Function mLoadsubform_Error: Select Case Err Case 0 '.insert Errors you wish to ignore here Resume Next Case Else '.All other errors will trap Beep LogErr Err.Number, Err.Description, Erl, Me.Name, "mLoadsubform" Resume mLoadsubform_Exit End Select Resume 0 '.FOR TROUBLESHOOTING End Function '--------------------------------------------------------------------------- ------------ ' Procedure : tabLWSCtl_Change ' Author : jwcolby ' Date : 3/6/2008 ' Purpose : Implements Just-In-Time subforms '--------------------------------------------------------------------------- ------------ ' Private Sub tabLWSCtl_Change() mLoadsubform tabLWSCtl_Change_Exit: On Error Resume Next Exit Sub tabLWSCtl_Change_Error: Select Case Err Case 0 '.insert Errors you wish to ignore here Resume Next Case Else '.All other errors will trap Beep LogErr Err.Number, Err.Description, Erl, Me.Name, "tabLWSCtl_Change" Resume tabLWSCtl_Change_Exit End Select Resume 0 '.FOR TROUBLESHOOTING End Sub 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 Darryl Collins Sent: Tuesday, March 11, 2008 12:24 AM To: Access Developers discussion and problem solving Subject: [AccessD] TabControlSheet Page Event? Hey all, I am stuck on with this, It is probably easy but been up since 4am (it is now 3:20pm) so I am not the sharpest tool in the shed right now! I have a form with sheet tabs, currently when a user opens the form it is populating all the tabs with data, but this seems a lot of overhead as some users will only look at one or two of the Tab pages. I wanted to capture when a user click on the tab page so I can call some VBA that will load the sub forms for that page only. I have the code to populate the sheet tabs etc, but I cannot seem to capture the "click on page tab" event at all. I can get "Click on TabControlSheet" but that is for the whole sheet and/or other such unhelpful combos of events. I thought this would be simple, but maybe I am wrong? '------------------------------------------------ ' Something like: Private Sub TabControlSheet.Pages(2)_Click() ' Then call the modules I want End sub '------------------------------------------------ would be great, but that doesn't seem to be an option. Any advice? cheers Darryl. This email and any attachments may contain privileged and confidential information and are intended for the named addressee only. If you have received this e-mail in error, please notify the sender and delete this e-mail immediately. Any confidentiality, privilege or copyright is not waived or lost because this e-mail has been sent to you in error. It is your responsibility to check this e-mail and any attachments for viruses. No warranty is made that this material is free from computer virus or any other defect or error. Any loss/damage incurred by using this material is not the sender's responsibility. The sender's entire liability will be limited to resupplying the material. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Tue Mar 11 06:25:24 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 11 Mar 2008 12:25:24 +0100 Subject: [AccessD] OT: Do not open till Friday Message-ID: Hi Bruce But the outline of the seagull on the sign matches the outline of the real seagull exactly which is totally unlikely, so someone created this - perhaps just for fun. /gustav >>> bbruen at unwired.com.au 11-03-2008 11:21:00 >>> I have no idea why, but this amuses the hell out of me. http://www.mywestnet.com.au/members/newsletter/2008/february_wacky.htm -- regards Bruce From iggy at nanaimo.ark.com Tue Mar 11 07:51:15 2008 From: iggy at nanaimo.ark.com (Tony Septav) Date: Tue, 11 Mar 2008 04:51:15 -0800 Subject: [AccessD] Compare Text and Memo fields Message-ID: <47D68043.7050404@nanaimo.ark.com> Hey All I have an application that imports ongoing data from EXCEL (each time its imported it gets put in a temp table). Before I attempt to do this. Is there a function available that allows one to compare memo and text fields (between the temp table and the access table) and pull out the difference in the text? I want to be able to indicate to a user if the information has been changed or updated, and then show them in a form where within the text, the change has occurred. Thanks From markamatte at hotmail.com Tue Mar 11 10:32:43 2008 From: markamatte at hotmail.com (Mark A Matte) Date: Tue, 11 Mar 2008 15:32:43 +0000 Subject: [AccessD] Record Count for all tables In-Reply-To: References: <318717.7872.qm@web50105.mail.re2.yahoo.com> Message-ID: Hello All, I need to get a record count for all tables. I'm using Access XP. I thought there was a way to have the documentor output to a table...but can't seem to get past the report. The report has a record count but I'd rather not read though 100's of pages and write it down. Any suggestions? Thanks, Mark A. Matte _________________________________________________________________ Helping your favorite cause is as easy as instant messaging.?You IM, we give. http://im.live.com/Messenger/IM/Home/?source=text_hotmail_join From reuben at gfconsultants.com Tue Mar 11 10:53:17 2008 From: reuben at gfconsultants.com (Reuben Cummings) Date: Tue, 11 Mar 2008 11:53:17 -0400 Subject: [AccessD] Record Count for all tables In-Reply-To: Message-ID: I'm not going to write any code, but... couldn't you loop thru and get a record count for each table and keep a running total of the record counts you might also need to account for the table being local or linked if you only want one of the other. Reuben Cummings GFC, LLC 812.523.1017 > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark A Matte > Sent: Tuesday, March 11, 2008 11:33 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] Record Count for all tables > > > > Hello All, > > I need to get a record count for all tables. I'm using Access > XP. I thought there was a way to have the documentor output to a > table...but can't seem to get past the report. The report has a > record count but I'd rather not read though 100's of pages and > write it down. > > Any suggestions? > > Thanks, > > Mark A. Matte > _________________________________________________________________ > Helping your favorite cause is as easy as instant messaging.?You > IM, we give. > http://im.live.com/Messenger/IM/Home/?source=text_hotmail_join > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From paul.hartland at fsmail.net Tue Mar 11 10:58:56 2008 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 11 Mar 2008 16:58:56 +0100 (CET) Subject: [AccessD] Counting Tables In A Database Message-ID: <1161087.128021205251136278.JavaMail.www@wwinf3207> To all, deleted a message where I think someone wanted a count of the tables within the current database, could you not use the following in a function: Dim db As Database Set db = DBEngine.Workspaces(0).Databases(0) db.TableDefs.Refresh MsgBox db.TableDefs.Count Set db = Nothing Paul Hartland paul.hartland at fsmail.net 07730 523179 From DWUTKA at Marlow.com Tue Mar 11 11:24:12 2008 From: DWUTKA at Marlow.com (Drew Wutka) Date: Tue, 11 Mar 2008 11:24:12 -0500 Subject: [AccessD] Record Count for all tables In-Reply-To: Message-ID: Watch for wordwrap here. Paste this in a module, and go to the immediate window. Put in: ?GetAllTableRecordCount( And you'll get the option in the enum below. Select the option you want, close the parenthesis, and hit enter. Whalla! Public Enum RecCountType intTableOnly = 1 intQueryOnly = 2 intTableAndQuery = 3 End Enum Function GetAllTableRecordCount(intCountType As RecCountType) Dim rsTables As ADODB.Recordset Dim rs As ADODB.Recordset Set rsTables = CurrentProject.Connection.OpenSchema(adSchemaTables) If rsTables.EOF = False Then rsTables.MoveFirst Do Until rsTables.EOF = True If intCountType = intTableOnly Or intCountType = intTableAndQuery Then If rsTables.Fields("TABLE_TYPE") = "TABLE" Then Set rs = New ADODB.Recordset rs.Open "SELECT Count(*) FROM " & rsTables.Fields("TABLE_NAME").Value, CurrentProject.Connection, adOpenKeyset, adLockReadOnly rs.MoveFirst Debug.Print rsTables.Fields("TABLE_NAME") & " - Record Count: " & rs.Fields(0).Value rs.Close Set rs = Nothing End If End If If intCountType = intQueryOnly Or intCountType = intTableAndQuery Then If rsTables.Fields("TABLE_TYPE") = "VIEW" Then Set rs = New ADODB.Recordset rs.Open "SELECT Count(*) FROM " & rsTables.Fields("TABLE_NAME").Value, CurrentProject.Connection, adOpenKeyset, adLockReadOnly rs.MoveFirst Debug.Print rsTables.Fields("TABLE_NAME") & " - Record Count: " & rs.Fields(0).Value rs.Close Set rs = Nothing End If End If rsTables.MoveNext Loop rsTables.Close Set rsTables = Nothing End Function -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Tuesday, March 11, 2008 10:33 AM To: Access Developers discussion and problem solving Subject: [AccessD] Record Count for all tables Hello All, I need to get a record count for all tables. I'm using Access XP. I thought there was a way to have the documentor output to a table...but can't seem to get past the report. The report has a record count but I'd rather not read though 100's of pages and write it down. Any suggestions? Thanks, Mark A. Matte _________________________________________________________________ Helping your favorite cause is as easy as instant messaging.?You IM, we give. http://im.live.com/Messenger/IM/Home/?source=text_hotmail_join -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From Donald.A.McGillivray at sprint.com Tue Mar 11 11:56:09 2008 From: Donald.A.McGillivray at sprint.com (McGillivray, Don [IT]) Date: Tue, 11 Mar 2008 11:56:09 -0500 Subject: [AccessD] Record Count for all tables In-Reply-To: References: <318717.7872.qm@web50105.mail.re2.yahoo.com> Message-ID: <310215F6BEEEA84A8D6366F219C76331377376C35D@PDAWM07C.ad.sprint.com> Mark, Something like this should get you started . . . Dim tdf As DAO.TableDef, rsCurrent As DAO.Recordset, lngRecords As Long For Each tdf In CurrentDb.TableDefs If Left(tdf.Name, 4) <> "MSys" Then Set rsCurrent = CurrentDb.OpenRecordset(tdf.Name) With rsCurrent If Not .EOF Then .MoveLast lngRecords = lngRecords + .RecordCount Debug.Print tdf.Name & " - " & .RecordCount End If End With Set rsCurrent = Nothing End If Next Debug.Print "Total records: " & lngRecords If your tables are large, it may take a while, but better than poring over hundreds of pages with a pencil. Don -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Tuesday, March 11, 2008 8:33 AM To: Access Developers discussion and problem solving Subject: [AccessD] Record Count for all tables Hello All, I need to get a record count for all tables. I'm using Access XP. I thought there was a way to have the documentor output to a table...but can't seem to get past the report. The report has a record count but I'd rather not read though 100's of pages and write it down. Any suggestions? Thanks, Mark A. Matte _________________________________________________________________ Helping your favorite cause is as easy as instant messaging. You IM, we give. http://im.live.com/Messenger/IM/Home/?source=text_hotmail_join -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From fuller.artful at gmail.com Tue Mar 11 12:01:43 2008 From: fuller.artful at gmail.com (Arthur Fuller) Date: Tue, 11 Mar 2008 13:01:43 -0400 Subject: [AccessD] Record Count for all tables In-Reply-To: References: Message-ID: <29f585dd0803111001w5f025d74icae8f90b5a9ce096@mail.gmail.com> For some odd reason, Access 2003 doesn't like this: Set rsTables = CurrentProject.Connection.OpenSchema(adSchemaTables) What's strange is that Intellisense likes it fine, but the compiler bitches about it. A. From DWUTKA at Marlow.com Tue Mar 11 12:43:32 2008 From: DWUTKA at Marlow.com (Drew Wutka) Date: Tue, 11 Mar 2008 12:43:32 -0500 Subject: [AccessD] Record Count for all tables In-Reply-To: <29f585dd0803111001w5f025d74icae8f90b5a9ce096@mail.gmail.com> Message-ID: That's odd, I wrote it with Access 2003...compiles fine on my end. Is ADO set as a reference? Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Tuesday, March 11, 2008 12:02 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Record Count for all tables For some odd reason, Access 2003 doesn't like this: Set rsTables = CurrentProject.Connection.OpenSchema(adSchemaTables) What's strange is that Intellisense likes it fine, but the compiler bitches about it. A. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From dwaters at usinternet.com Tue Mar 11 13:02:22 2008 From: dwaters at usinternet.com (Dan Waters) Date: Tue, 11 Mar 2008 13:02:22 -0500 Subject: [AccessD] Record Count for all tables In-Reply-To: References: <29f585dd0803111001w5f025d74icae8f90b5a9ce096@mail.gmail.com> Message-ID: <000001c883a2$0e061780$0300a8c0@danwaters> Once in a while I get a compile error that shouldn't error out. Usually, there is something wrong with one of the parameters or methods somewhere else in the code, but the compiler isn't selecting what actually needs to be changed. Try commenting sections of code and then compiling to eventually find what the issue actually is. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Tuesday, March 11, 2008 12:44 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Record Count for all tables That's odd, I wrote it with Access 2003...compiles fine on my end. Is ADO set as a reference? Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Tuesday, March 11, 2008 12:02 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Record Count for all tables For some odd reason, Access 2003 doesn't like this: Set rsTables = CurrentProject.Connection.OpenSchema(adSchemaTables) What's strange is that Intellisense likes it fine, but the compiler bitches about it. A. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From fuller.artful at gmail.com Tue Mar 11 13:13:12 2008 From: fuller.artful at gmail.com (Arthur Fuller) Date: Tue, 11 Mar 2008 14:13:12 -0400 Subject: [AccessD] Record Count for all tables In-Reply-To: References: <29f585dd0803111001w5f025d74icae8f90b5a9ce096@mail.gmail.com> Message-ID: <29f585dd0803111113v703c73aev46476a83133c9386@mail.gmail.com> It compiles fine, which is even stranger. ADO 2.6 is set as a reference. It's a run-time error, "cannot create object". A. On 3/11/08, Drew Wutka wrote: > > That's odd, I wrote it with Access 2003...compiles fine on my end. Is > ADO set as a reference? > > > Drew > From markamatte at hotmail.com Tue Mar 11 13:38:07 2008 From: markamatte at hotmail.com (Mark A Matte) Date: Tue, 11 Mar 2008 18:38:07 +0000 Subject: [AccessD] Record Count for all tables In-Reply-To: References: Message-ID: Thanks to everyone for the feedback... I guess my confusion was from A97...where you could use the documentor...and then under FILE you had the option of 'Save as Table'...this is not available in XP? 'Save As' is grayed out? Thanks, Mark A. Matte > Date: Tue, 11 Mar 2008 11:24:12 -0500 > From: DWUTKA at marlow.com > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] Record Count for all tables > > Watch for wordwrap here. > > Paste this in a module, and go to the immediate window. > Put in: ?GetAllTableRecordCount( > And you'll get the option in the enum below. Select the option you want, close the parenthesis, and hit enter. Whalla! > > Public Enum RecCountType > intTableOnly = 1 > intQueryOnly = 2 > intTableAndQuery = 3 > End Enum > > Function GetAllTableRecordCount(intCountType As RecCountType) > Dim rsTables As ADODB.Recordset > Dim rs As ADODB.Recordset > Set rsTables = CurrentProject.Connection.OpenSchema(adSchemaTables) > If rsTables.EOF = False Then rsTables.MoveFirst > Do Until rsTables.EOF = True > If intCountType = intTableOnly Or intCountType = intTableAndQuery Then > If rsTables.Fields("TABLE_TYPE") = "TABLE" Then > Set rs = New ADODB.Recordset > rs.Open "SELECT Count(*) FROM " & rsTables.Fields("TABLE_NAME").Value, CurrentProject.Connection, adOpenKeyset, adLockReadOnly > rs.MoveFirst > Debug.Print rsTables.Fields("TABLE_NAME") & " - Record Count: " & rs.Fields(0).Value > rs.Close > Set rs = Nothing > End If > End If > If intCountType = intQueryOnly Or intCountType = intTableAndQuery Then > If rsTables.Fields("TABLE_TYPE") = "VIEW" Then > Set rs = New ADODB.Recordset > rs.Open "SELECT Count(*) FROM " & rsTables.Fields("TABLE_NAME").Value, CurrentProject.Connection, adOpenKeyset, adLockReadOnly > rs.MoveFirst > Debug.Print rsTables.Fields("TABLE_NAME") & " - Record Count: " & rs.Fields(0).Value > rs.Close > Set rs = Nothing > End If > End If > rsTables.MoveNext > Loop > rsTables.Close > Set rsTables = Nothing > End Function > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte > Sent: Tuesday, March 11, 2008 10:33 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] Record Count for all tables > > > Hello All, > > I need to get a record count for all tables. I'm using Access XP. I thought there was a way to have the documentor output to a table...but can't seem to get past the report. The report has a record count but I'd rather not read though 100's of pages and write it down. > > Any suggestions? > > Thanks, > > Mark A. Matte > _________________________________________________________________ > Helping your favorite cause is as easy as instant messaging. You IM, we give. > http://im.live.com/Messenger/IM/Home/?source=text_hotmail_join > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com _________________________________________________________________ Shed those extra pounds with MSN and The Biggest Loser! http://biggestloser.msn.com/ From markamatte at hotmail.com Tue Mar 11 14:26:43 2008 From: markamatte at hotmail.com (Mark A Matte) Date: Tue, 11 Mar 2008 19:26:43 +0000 Subject: [AccessD] Record Count for all tables PART 2 In-Reply-To: References: Message-ID: Drew, Worked like a charm!!!...But I guess I didn't ask enough detail...because I was thought I would get the same Documentor functionality like in A97...anyway... Is there a similar way to get field names and types? (Sorry for having to ask twice) Thanks, Mark A. Matte > Date: Tue, 11 Mar 2008 11:24:12 -0500 > From: DWUTKA at marlow.com > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] Record Count for all tables > > Watch for wordwrap here. > > Paste this in a module, and go to the immediate window. > Put in: ?GetAllTableRecordCount( > And you'll get the option in the enum below. Select the option you want, close the parenthesis, and hit enter. Whalla! > > Public Enum RecCountType > intTableOnly = 1 > intQueryOnly = 2 > intTableAndQuery = 3 > End Enum > > Function GetAllTableRecordCount(intCountType As RecCountType) > Dim rsTables As ADODB.Recordset > Dim rs As ADODB.Recordset > Set rsTables = CurrentProject.Connection.OpenSchema(adSchemaTables) > If rsTables.EOF = False Then rsTables.MoveFirst > Do Until rsTables.EOF = True > If intCountType = intTableOnly Or intCountType = intTableAndQuery Then > If rsTables.Fields("TABLE_TYPE") = "TABLE" Then > Set rs = New ADODB.Recordset > rs.Open "SELECT Count(*) FROM " & rsTables.Fields("TABLE_NAME").Value, CurrentProject.Connection, adOpenKeyset, adLockReadOnly > rs.MoveFirst > Debug.Print rsTables.Fields("TABLE_NAME") & " - Record Count: " & rs.Fields(0).Value > rs.Close > Set rs = Nothing > End If > End If > If intCountType = intQueryOnly Or intCountType = intTableAndQuery Then > If rsTables.Fields("TABLE_TYPE") = "VIEW" Then > Set rs = New ADODB.Recordset > rs.Open "SELECT Count(*) FROM " & rsTables.Fields("TABLE_NAME").Value, CurrentProject.Connection, adOpenKeyset, adLockReadOnly > rs.MoveFirst > Debug.Print rsTables.Fields("TABLE_NAME") & " - Record Count: " & rs.Fields(0).Value > rs.Close > Set rs = Nothing > End If > End If > rsTables.MoveNext > Loop > rsTables.Close > Set rsTables = Nothing > End Function > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte > Sent: Tuesday, March 11, 2008 10:33 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] Record Count for all tables > > > Hello All, > > I need to get a record count for all tables. I'm using Access XP. I thought there was a way to have the documentor output to a table...but can't seem to get past the report. The report has a record count but I'd rather not read though 100's of pages and write it down. > > Any suggestions? > > Thanks, > > Mark A. Matte > _________________________________________________________________ > Helping your favorite cause is as easy as instant messaging. You IM, we give. > http://im.live.com/Messenger/IM/Home/?source=text_hotmail_join > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com _________________________________________________________________ Climb to the top of the charts!?Play the word scramble challenge with star power. http://club.live.com/star_shuffle.aspx?icid=starshuffle_wlmailtextlink_jan From DWUTKA at Marlow.com Tue Mar 11 16:00:44 2008 From: DWUTKA at Marlow.com (Drew Wutka) Date: Tue, 11 Mar 2008 16:00:44 -0500 Subject: [AccessD] Record Count for all tables PART 2 In-Reply-To: Message-ID: No problem, here's one option, though the debug print may not work right, since it might be longer then the list allows, I'll post a modified solution in a minute. Option Compare Database Public Enum RecCountType intTableOnly = 1 intQueryOnly = 2 intTableAndQuery = 3 End Enum Private Function FieldDataTypeString(intType As ADODB.DataTypeEnum) As String Dim strTemp As String Select Case intType Case adInteger strTemp = "Long" Case adDouble strTemp = "Double" Case adCurrency strTemp = "Currency" Case adUnsignedTinyInt strTemp = "Byte" Case adVarWChar, adLongVarWChar strTemp = "String" Case adDate strTemp = "Date" Case adBoolean strTemp = "Boolean" End Select If strTemp <> "" Then FieldDataTypeString = strTemp Else FieldDataTypeString = "UNKNOWN" End If End Function Function GetAllTableRecordCount(intCountType As RecCountType, Optional ShowFields As Boolean = False) Dim rsTables As ADODB.Recordset Dim rs As ADODB.Recordset Dim i As Long Set rsTables = CurrentProject.Connection.OpenSchema(adSchemaTables) If rsTables.EOF = False Then rsTables.MoveFirst Do Until rsTables.EOF = True If intCountType = intTableOnly Or intCountType = intTableAndQuery Then If rsTables.Fields("TABLE_TYPE") = "TABLE" Then Set rs = New ADODB.Recordset rs.Open "SELECT Count(*) FROM " & rsTables.Fields("TABLE_NAME").Value, CurrentProject.Connection, adOpenKeyset, adLockReadOnly rs.MoveFirst Debug.Print rsTables.Fields("TABLE_NAME") & " - Record Count: " & rs.Fields(0).Value rs.Close Set rs = Nothing If ShowFields Then Set rs = New ADODB.Recordset rs.Open "SELECT TOP 1 * FROM " & rsTables.Fields("TABLE_NAME").Value, CurrentProject.Connection, adOpenKeyset, adLockReadOnly For i = 0 To rs.Fields.Count - 1 Debug.Print rsTables.Fields("TABLE_NAME").Value & " Field: " & rs.Fields(i).Name & " Type: " & FieldDataTypeString(rs.Fields(i).Type) Next i rs.Close Set rs = Nothing End If End If End If If intCountType = intQueryOnly Or intCountType = intTableAndQuery Then If rsTables.Fields("TABLE_TYPE") = "VIEW" Then Set rs = New ADODB.Recordset rs.Open "SELECT Count(*) FROM " & rsTables.Fields("TABLE_NAME").Value, CurrentProject.Connection, adOpenKeyset, adLockReadOnly rs.MoveFirst Debug.Print rsTables.Fields("TABLE_NAME") & " - Record Count: " & rs.Fields(0).Value rs.Close Set rs = Nothing End If If ShowFields Then Set rs = New ADODB.Recordset rs.Open "SELECT TOP 1 * FROM " & rsTables.Fields("TABLE_NAME").Value, CurrentProject.Connection, adOpenKeyset, adLockReadOnly For i = 0 To rs.Fields.Count - 1 Debug.Print rsTables.Fields("TABLE_NAME").Value & " Field: " & rs.Fields(i).Name & " Type: " & FieldDataTypeString(rs.Fields(i).Type) Next i rs.Close Set rs = Nothing End If End If rsTables.MoveNext Loop rsTables.Close Set rsTables = Nothing End Function -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Tuesday, March 11, 2008 2:27 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Record Count for all tables PART 2 Drew, Worked like a charm!!!...But I guess I didn't ask enough detail...because I was thought I would get the same Documentor functionality like in A97...anyway... Is there a similar way to get field names and types? (Sorry for having to ask twice) Thanks, Mark A. Matte The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From DWUTKA at Marlow.com Tue Mar 11 16:21:12 2008 From: DWUTKA at Marlow.com (Drew Wutka) Date: Tue, 11 Mar 2008 16:21:12 -0500 Subject: [AccessD] Record Count for all tables PART 2 In-Reply-To: Message-ID: The attached is a .txt doc with a modified version of that function I posted earlier. The debug.print lines are commented out, instead, the function creates two tables, one for table and recordcounts, and one for table/query fields. Same function, so you have the option of selecting tables, queries, or both, and the second optional argument, when set to true, will get you field information too. I'm only getting the basic field type, if you want more information, like if the fields are indexed, etc, it's just a matter of getting more data out of the items in the Fields collection. Another FYI, this code, when placed in a module, is going to work on the local database because of currentproject.connection. If you replace all 'currentproject.connection' with a different (but valid) ADODB connection object, it will do the same process for any database (Access, MySQL, Oracle, etc.) (The beauty of ADO) Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Tuesday, March 11, 2008 2:27 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Record Count for all tables PART 2 Drew, Worked like a charm!!!...But I guess I didn't ask enough detail...because I was thought I would get the same Documentor functionality like in A97...anyway... Is there a similar way to get field names and types? (Sorry for having to ask twice) Thanks, Mark A. Matte The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From markamatte at hotmail.com Tue Mar 11 16:24:20 2008 From: markamatte at hotmail.com (Mark A Matte) Date: Tue, 11 Mar 2008 21:24:20 +0000 Subject: [AccessD] Record Count for all tables PART 2 In-Reply-To: References: Message-ID: Thanks Drew, Looks great...I'll test tomorrow. Thanks Again, Mark A. Matte > Date: Tue, 11 Mar 2008 16:00:44 -0500 > From: DWUTKA at marlow.com > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] Record Count for all tables PART 2 > > No problem, here's one option, though the debug print may not work > right, since it might be longer then the list allows, I'll post a > modified solution in a minute. > > Option Compare Database > Public Enum RecCountType > intTableOnly = 1 > intQueryOnly = 2 > intTableAndQuery = 3 > End Enum > Private Function FieldDataTypeString(intType As ADODB.DataTypeEnum) As > String > Dim strTemp As String > Select Case intType > Case adInteger > strTemp = "Long" > Case adDouble > strTemp = "Double" > Case adCurrency > strTemp = "Currency" > Case adUnsignedTinyInt > strTemp = "Byte" > Case adVarWChar, adLongVarWChar > strTemp = "String" > Case adDate > strTemp = "Date" > Case adBoolean > strTemp = "Boolean" > End Select > If strTemp <> "" Then > FieldDataTypeString = strTemp > Else > FieldDataTypeString = "UNKNOWN" > End If > End Function > Function GetAllTableRecordCount(intCountType As RecCountType, Optional > ShowFields As Boolean = False) > Dim rsTables As ADODB.Recordset > Dim rs As ADODB.Recordset > Dim i As Long > Set rsTables = CurrentProject.Connection.OpenSchema(adSchemaTables) > If rsTables.EOF = False Then rsTables.MoveFirst > Do Until rsTables.EOF = True > If intCountType = intTableOnly Or intCountType = intTableAndQuery > Then > If rsTables.Fields("TABLE_TYPE") = "TABLE" Then > Set rs = New ADODB.Recordset > rs.Open "SELECT Count(*) FROM " & > rsTables.Fields("TABLE_NAME").Value, CurrentProject.Connection, > adOpenKeyset, adLockReadOnly > rs.MoveFirst > Debug.Print rsTables.Fields("TABLE_NAME") & " - Record > Count: " & rs.Fields(0).Value > rs.Close > Set rs = Nothing > If ShowFields Then > Set rs = New ADODB.Recordset > rs.Open "SELECT TOP 1 * FROM " & > rsTables.Fields("TABLE_NAME").Value, CurrentProject.Connection, > adOpenKeyset, adLockReadOnly > For i = 0 To rs.Fields.Count - 1 > Debug.Print rsTables.Fields("TABLE_NAME").Value & " > Field: " & rs.Fields(i).Name & " Type: " & > FieldDataTypeString(rs.Fields(i).Type) > Next i > rs.Close > Set rs = Nothing > End If > End If > End If > If intCountType = intQueryOnly Or intCountType = intTableAndQuery > Then > If rsTables.Fields("TABLE_TYPE") = "VIEW" Then > Set rs = New ADODB.Recordset > rs.Open "SELECT Count(*) FROM " & > rsTables.Fields("TABLE_NAME").Value, CurrentProject.Connection, > adOpenKeyset, adLockReadOnly > rs.MoveFirst > Debug.Print rsTables.Fields("TABLE_NAME") & " - Record > Count: " & rs.Fields(0).Value > rs.Close > Set rs = Nothing > End If > If ShowFields Then > Set rs = New ADODB.Recordset > rs.Open "SELECT TOP 1 * FROM " & > rsTables.Fields("TABLE_NAME").Value, CurrentProject.Connection, > adOpenKeyset, adLockReadOnly > For i = 0 To rs.Fields.Count - 1 > Debug.Print rsTables.Fields("TABLE_NAME").Value & " > Field: " & rs.Fields(i).Name & " Type: " & > FieldDataTypeString(rs.Fields(i).Type) > Next i > rs.Close > Set rs = Nothing > End If > End If > rsTables.MoveNext > Loop > rsTables.Close > Set rsTables = Nothing > End Function > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte > Sent: Tuesday, March 11, 2008 2:27 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Record Count for all tables PART 2 > > > Drew, > > Worked like a charm!!!...But I guess I didn't ask enough > detail...because I was thought I would get the same Documentor > functionality like in A97...anyway... > > Is there a similar way to get field names and types? > > (Sorry for having to ask twice) > > Thanks, > > Mark A. Matte > The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com _________________________________________________________________ Climb to the top of the charts!?Play the word scramble challenge with star power. http://club.live.com/star_shuffle.aspx?icid=starshuffle_wlmailtextlink_jan From DWUTKA at Marlow.com Tue Mar 11 16:36:05 2008 From: DWUTKA at Marlow.com (Drew Wutka) Date: Tue, 11 Mar 2008 16:36:05 -0500 Subject: [AccessD] Record Count for all tables PART 2 In-Reply-To: Message-ID: Darn, didn't keep the attachment, here it is: http://www.marlow.com/GetAllTableRecordCount.zip Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Tuesday, March 11, 2008 4:21 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Record Count for all tables PART 2 The attached is a .txt doc with a modified version of that function I posted earlier. The debug.print lines are commented out, instead, the function creates two tables, one for table and recordcounts, and one for table/query fields. Same function, so you have the option of selecting tables, queries, or both, and the second optional argument, when set to true, will get you field information too. I'm only getting the basic field type, if you want more information, like if the fields are indexed, etc, it's just a matter of getting more data out of the items in the Fields collection. Another FYI, this code, when placed in a module, is going to work on the local database because of currentproject.connection. If you replace all 'currentproject.connection' with a different (but valid) ADODB connection object, it will do the same process for any database (Access, MySQL, Oracle, etc.) (The beauty of ADO) Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Tuesday, March 11, 2008 2:27 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Record Count for all tables PART 2 Drew, Worked like a charm!!!...But I guess I didn't ask enough detail...because I was thought I would get the same Documentor functionality like in A97...anyway... Is there a similar way to get field names and types? (Sorry for having to ask twice) Thanks, Mark A. Matte The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From accessd at shaw.ca Tue Mar 11 17:12:10 2008 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 11 Mar 2008 15:12:10 -0700 Subject: [AccessD] Msadodc.ocx - or not In-Reply-To: <0F978DF74B416B44A351B9143EB0FD33037D7A6E@MUKPBCC1XMB0103.collab.barclayscorp.com> References: <7B18A9FBF832459384398C8C8756762E@creativesystemdesigns.com> <0F978DF74B416B44A351B9143EB0FD33037D7A6E@MUKPBCC1XMB0103.collab.barclayscorp.com> Message-ID: <160F3178EDBE4298993A804C1B455683@creativesystemdesigns.com> Hi Roz: How anyone would dare charge ?8000 for 10 minutes work is beyond comprehension. At ?48000 (or 65,000.00 US) per hour, the system guys probably makes more than you or I. ;-) If the application connects with an Oracle DB, Access must have direct ADO-OLE connections or no one will want to use it.... trust me an ODBC link doesn't cut it. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of rosalyn.clarke at barclays.com Sent: Tuesday, March 11, 2008 3:37 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Msadodc.ocx - or not Thanks Jim, that's really useful. For some reason, though other ADO tools are available and other .ocx files are available, this one is not installed. I have raised a request to have it added, but have been told that adding anything to the new environment takes 8-12 weeks and costs ?8000. I am a small cog in a very big machine. :( -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: 11 March 2008 02:40 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Msadodc.ocx - or not Hi Roz: I have used these controls ADO-OLE for years (since 1997) but generally with MS SQL databases. There is no advantage to using these with MDB as they are not as optimized. These controls should work in any Windows environment. They install by default and are stored within your Program Files directory > common files > System > ADO. I found these controls great as no matter where a remote system was setup the applications would always work without any further management. That is why I find it hard to believe they do not work in your current environment. Another good reason to use them other than they are so standardized virtually the same code will work with any Oracle, MS SQL and MDB database... or any DB for that matter There is also a whole group of great ADO functionality available like steaming controls for images, video and large files and data shaping capabilities (pseudo cubes and data arrays) that are very fast. I would recommend you get this common directory block installed on your new system and get the latest MSADOxxx files registered. It would be far better than having to redo all the code and still not have a superior product. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of rosalyn.clarke at barclays.com Sent: Monday, March 10, 2008 10:30 AM To: accessd at databaseadvisors.com Subject: [AccessD] Msadodc.ocx - or not Hi all I have a bunch of Access databases I need to migrate from a local environment at one of my client's offices to their new standardised citrix environment. The developers have made liberal use of msadodc.ocx controls, but this control is not included in the new environment. I've never used an active x data control so I'm not sure what I'm losing by ditching these. Is there a performance benefit to using the data control? Sample of how it's used below (long - please snip if responding!!) TIA Roz -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This e-mail and any attachments are confidential and intended solely for the addressee and may also be privileged or exempt from disclosure under applicable law. If you are not the addressee, or have received this e-mail in error, please notify the sender immediately, delete it from your system and do not copy, disclose or otherwise act upon any part of this e-mail or its attachments. Internet communications are not guaranteed to be secure or virus-free. The Barclays Group does not accept responsibility for any loss arising from unauthorised access to, or interference with, any Internet communications by any third party, or from the transmission of any viruses. Replies to this e-mail may be monitored by the Barclays Group for operational or business reasons. Any opinion or other information in this e-mail or its attachments that does not relate to the business of the Barclays Group is personal to the sender and is not given or endorsed by the Barclays Group. Barclays Bank PLC.Registered in England and Wales (registered no. 1026167). Registered Office: 1 Churchill Place, London, E14 5HP, United Kingdom. Barclays Bank PLC is authorised and regulated by the Financial Services Authority. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From kp at sdsonline.net Tue Mar 11 17:26:44 2008 From: kp at sdsonline.net (Kath Pelletti) Date: Wed, 12 Mar 2008 09:26:44 +1100 Subject: [AccessD] TabControlSheet Page Event? References: <49DFE57FB126044B8A8B934E7AEA09ED09FD704E@WPEXCH05.colesmyer.ad.cmltd.net.au><000701c88334$c8390fe0$6401a8c0@DELLAPTOP> <003c01c88365$b53c42a0$8119fea9@LTVM> Message-ID: <000901c883c6$fe160b80$6401a8c0@DELLAPTOP> Thanks Max. Much simpler. Kath ----- Original Message ----- From: "Max Wanadoo" To: "'Access Developers discussion and problem solving'" Sent: Tuesday, March 11, 2008 9:50 PM Subject: Re: [AccessD] TabControlSheet Page Event? > Hi Kath, > As an aside, you can change this: > > If Me.Dirty Then > DoCmd.RunCommand acCmdSaveRecord > End If > > to this: > > me.dirty = false > > It does the same thing without having to do a check first or invoking > another function. all happens within the Form. > > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kath Pelletti > Sent: Tuesday, March 11, 2008 5:00 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] TabControlSheet Page Event? > > Darryl - you need the tab control's 'On Change' event. For each 'tab' on > the > tab control, the tabs have a value starting from 0 (ie. the first tab is > 0, > the second is 1 etc). So then you can say if on the first tab, load > subform > a, if on 2nd tab, load subform b etc. > > My code looks something like this: > '---------------------------------------------------------- > Private Sub TabChosen_Change() > Dim strerrormsg As String > On Error GoTo Err_Handler > > If Me.Dirty Then > DoCmd.RunCommand acCmdSaveRecord > End If > > If Me.TabChosen.Value = 1 Then 'On borrowers subform. > 'If subform not loaded then load it. > If IsNull(Me.FrmClientContractPrincipalSecuritiesSubform.SourceObject) > Or _ > Me.FrmClientContractPrincipalSecuritiesSubform.SourceObject = "" Then > Me.FrmClientContractPrincipalSecuritiesSubform.SourceObject = > "FrmClientContractPrincipalSecuritiesSubform" > End If > Me.FrmClientContractPrincipalSecuritiesSubform![OfferedBy].Requery > > ElseIf Me.TabChosen.Value = 2 Then 'On Collateral securities > subform. > 'If subform not loaded then load it. > If IsNull(Me.FrmClientContractCollateralSecuritiesSubform.SourceObject) > Or _ > Me.FrmClientContractCollateralSecuritiesSubform.SourceObject = "" Then > Me.FrmClientContractCollateralSecuritiesSubform.SourceObject = > "FrmClientContractCollateralSecuritiesSubform" > End If > > ElseIf Me.TabChosen.Value = 3 Then 'On IPF data tab subform > If IsNull(Me.FrmClientContractIPFData.SourceObject) Or _ > Me.FrmClientContractIPFData.SourceObject = "" Then > Me.FrmClientContractIPFData.SourceObject = > "FrmClientContractIPFData" > End If > > End If > > Normal_exit: > Application.Echo True > Exit Sub > Err_Handler: > MsgBox "Error: [" & Err.Number & "] " & IIf(Len(strerrormsg) > 0, > strerrormsg, Err.Description), vbCritical, "Error Message" > Resume Normal_exit > End Sub > > '---------------------------------------------------------- > > Kath > > ----- Original Message ----- > From: "Darryl Collins" > To: "Access Developers discussion and problem solving" > > Sent: Tuesday, March 11, 2008 3:24 PM > Subject: [AccessD] TabControlSheet Page Event? > > >> Hey all, >> >> I am stuck on with this, It is probably easy but been up since 4am (it is >> now 3:20pm) so I am not the sharpest tool in the shed right now! >> >> I have a form with sheet tabs, currently when a user opens the form it is >> populating all the tabs with data, but this seems a lot of overhead as >> some users will only look at one or two of the Tab pages. I wanted to >> capture when a user click on the tab page so I can call some VBA that >> will > >> load the sub forms for that page only. I have the code to populate the >> sheet tabs etc, but I cannot seem to capture the "click on page tab" >> event > >> at all. >> >> I can get "Click on TabControlSheet" but that is for the whole sheet >> and/or other such unhelpful combos of events. I thought this would be >> simple, but maybe I am wrong? >> >> >> '------------------------------------------------ >> ' Something like: >> >> Private Sub TabControlSheet.Pages(2)_Click() >> >> ' Then call the modules I want >> >> End sub >> '------------------------------------------------ >> >> would be great, but that doesn't seem to be an option. >> >> Any advice? >> >> cheers >> >> Darryl. >> >> This email and any attachments may contain privileged and confidential >> information and are intended for the named addressee only. If you have >> received this e-mail in error, please notify the sender and delete this >> e-mail immediately. Any confidentiality, privilege or copyright is not >> waived or lost because this e-mail has been sent to you in error. It is >> your responsibility to check this e-mail and any attachments for viruses. >> No warranty is made that this material is free from computer virus or any >> other defect or error. Any loss/damage incurred by using this material >> is > >> not the sender's responsibility. The sender's entire liability will be >> limited to resupplying the material. >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From zora_db at yahoo.com Tue Mar 11 17:43:08 2008 From: zora_db at yahoo.com (Roz Clarke) Date: Tue, 11 Mar 2008 15:43:08 -0700 (PDT) Subject: [AccessD] Msadodc.ocx - or not Message-ID: <594669.45498.qm@web50101.mail.re2.yahoo.com> It's the procedure - you have to put in a request, they schedule the work, they do the work, it gets scheduled into their testing programme - Lord knows why it's so expensive, except that the company is a monolith and it does. not. move. easily. But this is a project that affects 20,000 users so I suppose some bureacracy is inevitable. ----- Original Message ---- From: Jim Lawrence To: Access Developers discussion and problem solving Sent: Tuesday, 11 March, 2008 10:12:10 PM Subject: Re: [AccessD] Msadodc.ocx - or not Hi Roz: How anyone would dare charge ?8000 for 10 minutes work is beyond comprehension. At ?48000 (or 65,000.00 US) per hour, the system guys probably makes more than you or I. ;-) If the application connects with an Oracle DB, Access must have direct ADO-OLE connections or no one will want to use it.... trust me an ODBC link doesn't cut it. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of rosalyn.clarke at barclays.com Sent: Tuesday, March 11, 2008 3:37 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Msadodc.ocx - or not Thanks Jim, that's really useful. For some reason, though other ADO tools are available and other .ocx files are available, this one is not installed. I have raised a request to have it added, but have been told that adding anything to the new environment takes 8-12 weeks and costs ?8000. I am a small cog in a very big machine. :( -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: 11 March 2008 02:40 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Msadodc.ocx - or not Hi Roz: I have used these controls ADO-OLE for years (since 1997) but generally with MS SQL databases. There is no advantage to using these with MDB as they are not as optimized. These controls should work in any Windows environment. They install by default and are stored within your Program Files directory > common files > System > ADO. I found these controls great as no matter where a remote system was setup the applications would always work without any further management. That is why I find it hard to believe they do not work in your current environment. Another good reason to use them other than they are so standardized virtually the same code will work with any Oracle, MS SQL and MDB database... or any DB for that matter There is also a whole group of great ADO functionality available like steaming controls for images, video and large files and data shaping capabilities (pseudo cubes and data arrays) that are very fast. I would recommend you get this common directory block installed on your new system and get the latest MSADOxxx files registered. It would be far better than having to redo all the code and still not have a superior product. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of rosalyn.clarke at barclays.com Sent: Monday, March 10, 2008 10:30 AM To: accessd at databaseadvisors.com Subject: [AccessD] Msadodc.ocx - or not Hi all I have a bunch of Access databases I need to migrate from a local environment at one of my client's offices to their new standardised citrix environment. The developers have made liberal use of msadodc.ocx controls, but this control is not included in the new environment. I've never used an active x data control so I'm not sure what I'm losing by ditching these. Is there a performance benefit to using the data control? Sample of how it's used below (long - please snip if responding!!) TIA Roz -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This e-mail and any attachments are confidential and intended solely for the addressee and may also be privileged or exempt from disclosure under applicable law. If you are not the addressee, or have received this e-mail in error, please notify the sender immediately, delete it from your system and do not copy, disclose or otherwise act upon any part of this e-mail or its attachments. Internet communications are not guaranteed to be secure or virus-free. The Barclays Group does not accept responsibility for any loss arising from unauthorised access to, or interference with, any Internet communications by any third party, or from the transmission of any viruses. Replies to this e-mail may be monitored by the Barclays Group for operational or business reasons. Any opinion or other information in this e-mail or its attachments that does not relate to the business of the Barclays Group is personal to the sender and is not given or endorsed by the Barclays Group. Barclays Bank PLC.Registered in England and Wales (registered no. 1026167). Registered Office: 1 Churchill Place, London, E14 5HP, United Kingdom. Barclays Bank PLC is authorised and regulated by the Financial Services Authority. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com __________________________________________________________ Sent from Yahoo! Mail. The World's Favourite Email http://uk.docs.yahoo.com/nowyoucan.html From Gustav at cactus.dk Tue Mar 11 17:57:59 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 11 Mar 2008 23:57:59 +0100 Subject: [AccessD] Msadodc.ocx - or not Message-ID: Hi Roz I like your creative use of dots ... a good picture. /gustav >>> zora_db at yahoo.com 11-03-2008 23:43 >>> It's the procedure - you have to put in a request, they schedule the work, they do the work, it gets scheduled into their testing programme - Lord knows why it's so expensive, except that the company is a monolith and it does. not. move. easily. But this is a project that affects 20,000 users so I suppose some bureacracy is inevitable. From newsgrps at dalyn.co.nz Tue Mar 11 22:30:31 2008 From: newsgrps at dalyn.co.nz (David Emerson) Date: Wed, 12 Mar 2008 16:30:31 +1300 Subject: [AccessD] Running Sprocs from Access Message-ID: <20080312032956.EDYD18083.fep03.xtra.co.nz@Dalyn.dalyn.co.nz> Is it possible to run a Stored Procedure from within an Access mdb that links to an SQL database (I know that I can using an adp but what about an mdb)? From newsgrps at dalyn.co.nz Tue Mar 11 22:39:47 2008 From: newsgrps at dalyn.co.nz (David Emerson) Date: Wed, 12 Mar 2008 16:39:47 +1300 Subject: [AccessD] Faxing reports from Access In-Reply-To: References: Message-ID: <20080312033918.CEY17371.fep04.xtra.co.nz@Dalyn.dalyn.co.nz> I have just found out that WinFaxPro will not install on their server for some reason (Windows Server 2003), and the client has decided that they don't need to fax the reports after all. Thanks anyway for everyone's help. David At 11/03/2008, you wrote: >Hi David > >You will have to "print" the attachments as individual documents to >the fax (printer) driver. >Somehow you need to tell the fax driver when faxing the main >document that more pages will follow. > >/gustav > > >>> newsgrps at dalyn.co.nz 11-03-2008 09:31:29 >>> >Ok, I have made some progress. We have WinFax Pro set up on the >server and it is linked to another computer on the network with a >modem. I have code from Helen Feddema of Woody's Access Watch but it >doesn't include attachments. > >Does anyone know of where I can get code to add attachments to the >fax? Also, whether pdf files can be used as attachments or whether >they need to be saved in a Winfax format before they can be added to a fax. > >David > >At 5/02/2008, you wrote: > >Great if you can keep us posted - the next app I am writing (2003) will also > >require faxing from the db. > > > >Kath > > > >----- Original Message ----- > >From: "David Emerson" > >To: "Access Developers discussion and problem solving" > > > >Sent: Tuesday, February 05, 2008 11:01 AM > >Subject: Re: [AccessD] Faxing reports from Access > > > > > > > Thanks Kath, > > > > > > I have that article and was going to use it, but then found that the > > > server that it would be run on doesn't have a modem or phone attached to > > > it :'( > > > > > > They do have a couple of printers that are available, and these do > > > have fax software but neither of them seem to enable external > > > commands from within other applications like WinFax does :-( > > > > > > Will keep everyone posted. > > > > > > Regards > > > > > > David > > > > > > > > > At 5/02/2008, you wrote: > > >>David - There was an article in Woody's Access Watch about faxing from > > >>Access. I will forward the Part 2 of it to you offline - > > >> > > >>Kath > > >> > > >> > > >>----- Original Message ----- > > >>From: "David Emerson" > > >>To: > > >>Sent: Monday, February 04, 2008 12:06 PM > > >>Subject: [AccessD] Faxing reports from Access > > >> > > >> > > >> >I have a client who want to fax two reports to their clients (a cover > > >> > sheet, and a second report). They have WinFax 10 Pro installed but I > > >> > am having problems getting technical information on how to use it. > > >> > > > >> > Does anyone have any code for sending Faxes using WinFax? > > >> > > > >> > Regards > > >> > > > >> > David Emerson > > >> > Dalyn Software Ltd > > >> > Wellington, New Zealand > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From kp at sdsonline.net Tue Mar 11 23:52:56 2008 From: kp at sdsonline.net (Kath Pelletti) Date: Wed, 12 Mar 2008 15:52:56 +1100 Subject: [AccessD] Faxing reports from Access References: <20080312033918.CEY17371.fep04.xtra.co.nz@Dalyn.dalyn.co.nz> Message-ID: <002d01c883fc$f17a9900$6401a8c0@DELLAPTOP> God! What a lot of work in vain? Kath ----- Original Message ----- From: "David Emerson" To: "Access Developers discussion and problem solving" Sent: Wednesday, March 12, 2008 2:39 PM Subject: Re: [AccessD] Faxing reports from Access >I have just found out that WinFaxPro will not install on their server > for some reason (Windows Server 2003), and the client has decided > that they don't need to fax the reports after all. > > Thanks anyway for everyone's help. > > David > > At 11/03/2008, you wrote: >>Hi David >> >>You will have to "print" the attachments as individual documents to >>the fax (printer) driver. >>Somehow you need to tell the fax driver when faxing the main >>document that more pages will follow. >> >>/gustav >> >> >>> newsgrps at dalyn.co.nz 11-03-2008 09:31:29 >>> >>Ok, I have made some progress. We have WinFax Pro set up on the >>server and it is linked to another computer on the network with a >>modem. I have code from Helen Feddema of Woody's Access Watch but it >>doesn't include attachments. >> >>Does anyone know of where I can get code to add attachments to the >>fax? Also, whether pdf files can be used as attachments or whether >>they need to be saved in a Winfax format before they can be added to a >>fax. >> >>David >> >>At 5/02/2008, you wrote: >> >Great if you can keep us posted - the next app I am writing (2003) will >> >also >> >require faxing from the db. >> > >> >Kath >> > >> >----- Original Message ----- >> >From: "David Emerson" >> >To: "Access Developers discussion and problem solving" >> > >> >Sent: Tuesday, February 05, 2008 11:01 AM >> >Subject: Re: [AccessD] Faxing reports from Access >> > >> > >> > > Thanks Kath, >> > > >> > > I have that article and was going to use it, but then found that the >> > > server that it would be run on doesn't have a modem or phone attached >> > > to >> > > it :'( >> > > >> > > They do have a couple of printers that are available, and these do >> > > have fax software but neither of them seem to enable external >> > > commands from within other applications like WinFax does :-( >> > > >> > > Will keep everyone posted. >> > > >> > > Regards >> > > >> > > David >> > > >> > > >> > > At 5/02/2008, you wrote: >> > >>David - There was an article in Woody's Access Watch about faxing >> > >>from >> > >>Access. I will forward the Part 2 of it to you offline - >> > >> >> > >>Kath >> > >> >> > >> >> > >>----- Original Message ----- >> > >>From: "David Emerson" >> > >>To: >> > >>Sent: Monday, February 04, 2008 12:06 PM >> > >>Subject: [AccessD] Faxing reports from Access >> > >> >> > >> >> > >> >I have a client who want to fax two reports to their clients (a >> > >> >cover >> > >> > sheet, and a second report). They have WinFax 10 Pro installed >> > >> > but I >> > >> > am having problems getting technical information on how to use it. >> > >> > >> > >> > Does anyone have any code for sending Faxes using WinFax? >> > >> > >> > >> > Regards >> > >> > >> > >> > David Emerson >> > >> > Dalyn Software Ltd >> > >> > Wellington, New Zealand >> >> >>-- >>AccessD mailing list >>AccessD at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/accessd >>Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From newsgrps at dalyn.co.nz Wed Mar 12 00:19:35 2008 From: newsgrps at dalyn.co.nz (David Emerson) Date: Wed, 12 Mar 2008 18:19:35 +1300 Subject: [AccessD] Faxing reports from Access In-Reply-To: <002d01c883fc$f17a9900$6401a8c0@DELLAPTOP> References: <20080312033918.CEY17371.fep04.xtra.co.nz@Dalyn.dalyn.co.nz> <002d01c883fc$f17a9900$6401a8c0@DELLAPTOP> Message-ID: <20080312051850.ENEX9910.fep05.xtra.co.nz@Dalyn.dalyn.co.nz> Oh well, fortunately the client will still pay for the work done :-) David At 12/03/2008, you wrote: >God! What a lot of work in vain? > >Kath >----- Original Message ----- >From: "David Emerson" >To: "Access Developers discussion and problem solving" > >Sent: Wednesday, March 12, 2008 2:39 PM >Subject: Re: [AccessD] Faxing reports from Access > > > >I have just found out that WinFaxPro will not install on their server > > for some reason (Windows Server 2003), and the client has decided > > that they don't need to fax the reports after all. > > > > Thanks anyway for everyone's help. > > > > David > > > > At 11/03/2008, you wrote: > >>Hi David > >> > >>You will have to "print" the attachments as individual documents to > >>the fax (printer) driver. > >>Somehow you need to tell the fax driver when faxing the main > >>document that more pages will follow. > >> > >>/gustav > >> > >> >>> newsgrps at dalyn.co.nz 11-03-2008 09:31:29 >>> > >>Ok, I have made some progress. We have WinFax Pro set up on the > >>server and it is linked to another computer on the network with a > >>modem. I have code from Helen Feddema of Woody's Access Watch but it > >>doesn't include attachments. > >> > >>Does anyone know of where I can get code to add attachments to the > >>fax? Also, whether pdf files can be used as attachments or whether > >>they need to be saved in a Winfax format before they can be added to a > >>fax. > >> > >>David > >> > >>At 5/02/2008, you wrote: > >> >Great if you can keep us posted - the next app I am writing (2003) will > >> >also > >> >require faxing from the db. > >> > > >> >Kath > >> > > >> >----- Original Message ----- > >> >From: "David Emerson" > >> >To: "Access Developers discussion and problem solving" > >> > > >> >Sent: Tuesday, February 05, 2008 11:01 AM > >> >Subject: Re: [AccessD] Faxing reports from Access > >> > > >> > > >> > > Thanks Kath, > >> > > > >> > > I have that article and was going to use it, but then found that the > >> > > server that it would be run on doesn't have a modem or phone attached > >> > > to > >> > > it :'( > >> > > > >> > > They do have a couple of printers that are available, and these do > >> > > have fax software but neither of them seem to enable external > >> > > commands from within other applications like WinFax does :-( > >> > > > >> > > Will keep everyone posted. > >> > > > >> > > Regards > >> > > > >> > > David > >> > > > >> > > > >> > > At 5/02/2008, you wrote: > >> > >>David - There was an article in Woody's Access Watch about faxing > >> > >>from > >> > >>Access. I will forward the Part 2 of it to you offline - > >> > >> > >> > >>Kath > >> > >> > >> > >> > >> > >>----- Original Message ----- > >> > >>From: "David Emerson" > >> > >>To: > >> > >>Sent: Monday, February 04, 2008 12:06 PM > >> > >>Subject: [AccessD] Faxing reports from Access > >> > >> > >> > >> > >> > >> >I have a client who want to fax two reports to their clients (a > >> > >> >cover > >> > >> > sheet, and a second report). They have WinFax 10 Pro installed > >> > >> > but I > >> > >> > am having problems getting technical information on how to use it. > >> > >> > > >> > >> > Does anyone have any code for sending Faxes using WinFax? > >> > >> > > >> > >> > Regards > >> > >> > > >> > >> > David Emerson > >> > >> > Dalyn Software Ltd > >> > >> > Wellington, New Zealand > >> > >> > >>-- > >>AccessD mailing list > >>AccessD at databaseadvisors.com > >>http://databaseadvisors.com/mailman/listinfo/accessd > >>Website: http://www.databaseadvisors.com > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From ch.souch at yahoo.com Wed Mar 12 04:07:56 2008 From: ch.souch at yahoo.com (C (Soucheray) Reitzel) Date: Wed, 12 Mar 2008 04:07:56 -0500 Subject: [AccessD] VBA and SQL for Access Message-ID: <00d501c88420$979c9360$88fea8c0@GATEWAY> Hi, I am wanting to kick my career up a notch by beefing up my knowledge of SQL and VBA for Access. Can anyone recommend any good how-to books for someone with a base-line knowledge of programming and querying? Thanks, Cynthia From jwcolby at colbyconsulting.com Wed Mar 12 05:22:42 2008 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 12 Mar 2008 06:22:42 -0400 Subject: [AccessD] Feeding an paramarray to a paramarray Message-ID: <001401c8842b$022553c0$0201a8c0@M90> Paramarrays are very useful. function ListGrpMembers(ParamArray GrpMembers() as variant) dim varGrpMember for each varGrpMember in GrpMembers debug.print varGrpMember next varGrpMember end function ListGrpMembers "John", "Mary", "Robbie", "Allie" Paramarrays allow you to feed a variable number of values into a function, and then easily manipulate the array that they are placed in using a for each iterator. The problem lies if you then need to feed that array off to another function. function LogGrpMembers(Paramarray GrpMembers() as variant) end function Using a function as shown above doesn't work. If you pass the GrpMembers() array assembled in ListGrpMembers into LogGrpMembers you get a runtime error. I have "solved" this problem by unpacking the array into a collection and passing the collection into the next function. function LogGrpMembers( GrpMembers as collection) end function function ListGrpMembers(ParamArray GrpMembers() as variant) dim varGrpMember dim colGrpMembers as collection set col for each varGrpMember in GrpMembers colGrpMembers.Add varGrpMember next varGrpMember LogGrpMembers colGrpMembers end function While that works, it is cumbersome and there are times where you would really like the second function to be a ParamArray as well, perhaps so that it can be called directly if required. Am I missing something? Is there a syntax for passing a paramarray into another paramarray? John W. Colby Colby Consulting www.ColbyConsulting.com From Gustav at cactus.dk Wed Mar 12 05:38:48 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 12 Mar 2008 11:38:48 +0100 Subject: [AccessD] Feeding an paramarray to a paramarray Message-ID: Hi John As far as I know, a Variant can hold an array. Thus you should be able to pass your modified array as a Variant to the next function. Not very elegant and leads to not so easy to read code. Your use of a Collection might be preferable. /gustav >>> jwcolby at colbyconsulting.com 12-03-2008 11:22 >>> Paramarrays are very useful. function ListGrpMembers(ParamArray GrpMembers() as variant) dim varGrpMember for each varGrpMember in GrpMembers debug.print varGrpMember next varGrpMember end function ListGrpMembers "John", "Mary", "Robbie", "Allie" Paramarrays allow you to feed a variable number of values into a function, and then easily manipulate the array that they are placed in using a for each iterator. The problem lies if you then need to feed that array off to another function. function LogGrpMembers(Paramarray GrpMembers() as variant) end function Using a function as shown above doesn't work. If you pass the GrpMembers() array assembled in ListGrpMembers into LogGrpMembers you get a runtime error. I have "solved" this problem by unpacking the array into a collection and passing the collection into the next function. function LogGrpMembers( GrpMembers as collection) end function function ListGrpMembers(ParamArray GrpMembers() as variant) dim varGrpMember dim colGrpMembers as collection set col for each varGrpMember in GrpMembers colGrpMembers.Add varGrpMember next varGrpMember LogGrpMembers colGrpMembers end function While that works, it is cumbersome and there are times where you would really like the second function to be a ParamArray as well, perhaps so that it can be called directly if required. Am I missing something? Is there a syntax for passing a paramarray into another paramarray? John W. Colby Colby Consulting www.ColbyConsulting.com From drawbridgej at sympatico.ca Wed Mar 12 07:10:37 2008 From: drawbridgej at sympatico.ca (Jack and Pat) Date: Wed, 12 Mar 2008 08:10:37 -0400 Subject: [AccessD] VBA and SQL for Access . In-Reply-To: <00d501c88420$979c9360$88fea8c0@GATEWAY> References: <00d501c88420$979c9360$88fea8c0@GATEWAY> Message-ID: <026b01c8843a$15041da0$6501a8c0@home6399619597> Cynthia, Here are a couple of links with tutorial and sample resources. I have found them very helpful. http://www.fontstuff.com/index.html http://allenbrowne.com/tips.html http://www.allenbrowne.com/casu-22.html Good luck jack -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of C (Soucheray) Reitzel Sent: Wednesday, March 12, 2008 5:08 AM To: accessd at databaseadvisors.com Subject: [AccessD] VBA and SQL for Access Hi, I am wanting to kick my career up a notch by beefing up my knowledge of SQL and VBA for Access. Can anyone recommend any good how-to books for someone with a base-line knowledge of programming and querying? Thanks, Cynthia -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Wed Mar 12 08:14:37 2008 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 12 Mar 2008 09:14:37 -0400 Subject: [AccessD] VBA and SQL for Access . In-Reply-To: <026b01c8843a$15041da0$6501a8c0@home6399619597> References: <00d501c88420$979c9360$88fea8c0@GATEWAY> <026b01c8843a$15041da0$6501a8c0@home6399619597> Message-ID: <001801c88443$06480e80$0201a8c0@M90> Cynthia, While I wholeheartedly approve of learning VBA and SQL, might I also suggest that you start learning VB.Net. Microsoft Access and Office are salable skills but they don't hold a candle to the .Net environment in terms of opportunity. 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 Jack and Pat Sent: Wednesday, March 12, 2008 8:11 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] VBA and SQL for Access . Cynthia, Here are a couple of links with tutorial and sample resources. I have found them very helpful. http://www.fontstuff.com/index.html http://allenbrowne.com/tips.html http://www.allenbrowne.com/casu-22.html Good luck jack -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of C (Soucheray) Reitzel Sent: Wednesday, March 12, 2008 5:08 AM To: accessd at databaseadvisors.com Subject: [AccessD] VBA and SQL for Access Hi, I am wanting to kick my career up a notch by beefing up my knowledge of SQL and VBA for Access. Can anyone recommend any good how-to books for someone with a base-line knowledge of programming and querying? Thanks, Cynthia -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Wed Mar 12 08:52:07 2008 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 12 Mar 2008 09:52:07 -0400 Subject: [AccessD] Query becomes uneditable Message-ID: <001d01c88448$43330cf0$0201a8c0@M90> I have a fairly simple query, with a people table, with outer joins to tlkpState on stateID etc. It is editable as it sits. I need to provide a county population of the county for the zip code in the address. I have a table of zip code information which includes this information, however the zip codes are not unique, i.e. there are potentially multiple rows for a given zip, for reasons like the name of suburbs inside of a "town" etc. Because the zips are not unique, the table has a "primary" field which holds a "P" in the field for the "primary" zip record. Don't look at me like that, I did not do this!!! This table does not have a PK of any kind, probably because it would be extremely difficult to discover a natural key, and an autonumber is less than useful anyway. To make matters worse, we get an update to this table periodically. I have a query that pulls a single record per zip based on a "P"rimary field which holds that "P" in that field for exactly one record for each zip. If I join that query to my updateable query on the zip, my query becomes non-updateable. If I join the table itself on the zip all hell breaks loose as you might imagine. Is there an answer to my quandary? Is there a way to get a zip / county name out of this table, joined to my query while still having the query updateable? The county field should not be updateable anyway. I think I could just put a subform in that displays the county but I am just wondering if there is a "cleaner" way. John W. Colby Colby Consulting www.ColbyConsulting.com From robert at webedb.com Wed Mar 12 09:03:18 2008 From: robert at webedb.com (Robert L. Stewart) Date: Wed, 12 Mar 2008 09:03:18 -0500 Subject: [AccessD] Running Sprocs from Access In-Reply-To: References: Message-ID: <200803121406.m2CE6tV2001272@databaseadvisors.com> You can do it through code (ADO) or by using a pass-through query. Robert At 05:39 AM 3/12/2008, you wrote: >Date: Wed, 12 Mar 2008 16:30:31 +1300 >From: David Emerson >Subject: [AccessD] Running Sprocs from Access >To: accessd at databaseadvisors.com >Message-ID: > <20080312032956.EDYD18083.fep03.xtra.co.nz at Dalyn.dalyn.co.nz> >Content-Type: text/plain; charset="us-ascii"; format=flowed > >Is it possible to run a Stored Procedure from within an Access mdb >that links to an SQL database (I know that I can using an adp but >what about an mdb)? From rusty.hammond at cpiqpc.com Wed Mar 12 09:10:08 2008 From: rusty.hammond at cpiqpc.com (rusty.hammond at cpiqpc.com) Date: Wed, 12 Mar 2008 09:10:08 -0500 Subject: [AccessD] Query becomes uneditable Message-ID: <8301C8A868251E4C8ECD3D4FFEA40F8A2584C437@cpixchng-1.cpiqpc.net> John, Would changing the recordset type of the query to "Dynaset (Inconsistent Updates)" make it updateable? Rusty -----Original Message----- From: jwcolby [mailto:jwcolby at colbyconsulting.com] Sent: Wednesday, March 12, 2008 8:52 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Query becomes uneditable I have a fairly simple query, with a people table, with outer joins to tlkpState on stateID etc. It is editable as it sits. I need to provide a county population of the county for the zip code in the address. I have a table of zip code information which includes this information, however the zip codes are not unique, i.e. there are potentially multiple rows for a given zip, for reasons like the name of suburbs inside of a "town" etc. Because the zips are not unique, the table has a "primary" field which holds a "P" in the field for the "primary" zip record. Don't look at me like that, I did not do this!!! This table does not have a PK of any kind, probably because it would be extremely difficult to discover a natural key, and an autonumber is less than useful anyway. To make matters worse, we get an update to this table periodically. I have a query that pulls a single record per zip based on a "P"rimary field which holds that "P" in that field for exactly one record for each zip. If I join that query to my updateable query on the zip, my query becomes non-updateable. If I join the table itself on the zip all hell breaks loose as you might imagine. Is there an answer to my quandary? Is there a way to get a zip / county name out of this table, joined to my query while still having the query updateable? The county field should not be updateable anyway. I think I could just put a subform in that displays the county but I am just wondering if there is a "cleaner" way. 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 jimdettman at verizon.net Wed Mar 12 09:17:07 2008 From: jimdettman at verizon.net (Jim Dettman) Date: Wed, 12 Mar 2008 10:17:07 -0400 Subject: [AccessD] Msadodc.ocx - or not In-Reply-To: <594669.45498.qm@web50101.mail.re2.yahoo.com> References: <594669.45498.qm@web50101.mail.re2.yahoo.com> Message-ID: <009801c8844b$c16dc7b0$8abea8c0@XPS> Roz, I'm curious; do they outsource their IT support? What I've found is that if so, things move at a glacial pace. Outsourcing companies want a change notice on *everything*, then full testing, etc because they want to cover their butt contract wise (which includes penalty clauses for non-performance). When I deal with a client that has outsourced, it takes a minimum of a week to get anything done unless it's a crises and they are seen as bailing you out. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Roz Clarke Sent: Tuesday, March 11, 2008 6:43 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Msadodc.ocx - or not It's the procedure - you have to put in a request, they schedule the work, they do the work, it gets scheduled into their testing programme - Lord knows why it's so expensive, except that the company is a monolith and it does. not. move. easily. But this is a project that affects 20,000 users so I suppose some bureacracy is inevitable. ----- Original Message ---- From: Jim Lawrence To: Access Developers discussion and problem solving Sent: Tuesday, 11 March, 2008 10:12:10 PM Subject: Re: [AccessD] Msadodc.ocx - or not Hi Roz: How anyone would dare charge ?8000 for 10 minutes work is beyond comprehension. At ?48000 (or 65,000.00 US) per hour, the system guys probably makes more than you or I. ;-) If the application connects with an Oracle DB, Access must have direct ADO-OLE connections or no one will want to use it.... trust me an ODBC link doesn't cut it. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of rosalyn.clarke at barclays.com Sent: Tuesday, March 11, 2008 3:37 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Msadodc.ocx - or not Thanks Jim, that's really useful. For some reason, though other ADO tools are available and other .ocx files are available, this one is not installed. I have raised a request to have it added, but have been told that adding anything to the new environment takes 8-12 weeks and costs ?8000. I am a small cog in a very big machine. :( -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: 11 March 2008 02:40 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Msadodc.ocx - or not Hi Roz: I have used these controls ADO-OLE for years (since 1997) but generally with MS SQL databases. There is no advantage to using these with MDB as they are not as optimized. These controls should work in any Windows environment. They install by default and are stored within your Program Files directory > common files > System > ADO. I found these controls great as no matter where a remote system was setup the applications would always work without any further management. That is why I find it hard to believe they do not work in your current environment. Another good reason to use them other than they are so standardized virtually the same code will work with any Oracle, MS SQL and MDB database... or any DB for that matter There is also a whole group of great ADO functionality available like steaming controls for images, video and large files and data shaping capabilities (pseudo cubes and data arrays) that are very fast. I would recommend you get this common directory block installed on your new system and get the latest MSADOxxx files registered. It would be far better than having to redo all the code and still not have a superior product. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of rosalyn.clarke at barclays.com Sent: Monday, March 10, 2008 10:30 AM To: accessd at databaseadvisors.com Subject: [AccessD] Msadodc.ocx - or not Hi all I have a bunch of Access databases I need to migrate from a local environment at one of my client's offices to their new standardised citrix environment. The developers have made liberal use of msadodc.ocx controls, but this control is not included in the new environment. I've never used an active x data control so I'm not sure what I'm losing by ditching these. Is there a performance benefit to using the data control? Sample of how it's used below (long - please snip if responding!!) TIA Roz -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This e-mail and any attachments are confidential and intended solely for the addressee and may also be privileged or exempt from disclosure under applicable law. If you are not the addressee, or have received this e-mail in error, please notify the sender immediately, delete it from your system and do not copy, disclose or otherwise act upon any part of this e-mail or its attachments. Internet communications are not guaranteed to be secure or virus-free. The Barclays Group does not accept responsibility for any loss arising from unauthorised access to, or interference with, any Internet communications by any third party, or from the transmission of any viruses. Replies to this e-mail may be monitored by the Barclays Group for operational or business reasons. Any opinion or other information in this e-mail or its attachments that does not relate to the business of the Barclays Group is personal to the sender and is not given or endorsed by the Barclays Group. Barclays Bank PLC.Registered in England and Wales (registered no. 1026167). Registered Office: 1 Churchill Place, London, E14 5HP, United Kingdom. Barclays Bank PLC is authorised and regulated by the Financial Services Authority. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com __________________________________________________________ Sent from Yahoo! Mail. The World's Favourite Email http://uk.docs.yahoo.com/nowyoucan.html -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Wed Mar 12 09:35:55 2008 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 12 Mar 2008 07:35:55 -0700 Subject: [AccessD] Feeding an paramarray to a paramarray In-Reply-To: <001401c8842b$022553c0$0201a8c0@M90> References: <001401c8842b$022553c0$0201a8c0@M90> Message-ID: Could you use split to dismantle the paramarray and pass that result to your LogGrpMembers? Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, March 12, 2008 3:23 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Feeding an paramarray to a paramarray Paramarrays are very useful. function ListGrpMembers(ParamArray GrpMembers() as variant) dim varGrpMember for each varGrpMember in GrpMembers debug.print varGrpMember next varGrpMember end function ListGrpMembers "John", "Mary", "Robbie", "Allie" Paramarrays allow you to feed a variable number of values into a function, and then easily manipulate the array that they are placed in using a for each iterator. The problem lies if you then need to feed that array off to another function. function LogGrpMembers(Paramarray GrpMembers() as variant) end function Using a function as shown above doesn't work. If you pass the GrpMembers() array assembled in ListGrpMembers into LogGrpMembers you get a runtime error. I have "solved" this problem by unpacking the array into a collection and passing the collection into the next function. function LogGrpMembers( GrpMembers as collection) end function function ListGrpMembers(ParamArray GrpMembers() as variant) dim varGrpMember dim colGrpMembers as collection set col for each varGrpMember in GrpMembers colGrpMembers.Add varGrpMember next varGrpMember LogGrpMembers colGrpMembers end function While that works, it is cumbersome and there are times where you would really like the second function to be a ParamArray as well, perhaps so that it can be called directly if required. Am I missing something? Is there a syntax for passing a paramarray into another paramarray? 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 rosalyn.clarke at barclays.com Wed Mar 12 09:38:35 2008 From: rosalyn.clarke at barclays.com (rosalyn.clarke at barclays.com) Date: Wed, 12 Mar 2008 14:38:35 -0000 Subject: [AccessD] Msadodc.ocx - or not In-Reply-To: <009801c8844b$c16dc7b0$8abea8c0@XPS> Message-ID: <0F978DF74B416B44A351B9143EB0FD33037D7BDF@MUKPBCC1XMB0103.collab.barclayscorp.com> Jim - at risk of vexing the list by wandering off topic - ! They have a fantastically complicated IT support arrangement. In fact arrangement is too gracious a word. Because the bank is so big, and has so many sites and so many legacy systems, finding out who supports something can be fraught. There are local support people, central support people (two entire sets), outsourced onshore support for specific systems or projects, offshore support for others. I'm learning not to think of this as a company, but as about 25 companies wrestling a big sack. The project I'm working on is staffed by a mixture of contractors and permanents. Some are small independents (like me) some are the big guns (Accenture) and some come bundled with a particular software package or whatever. Everyone wants their butt covered! It's fun. Roz -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: 12 March 2008 14:17 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Msadodc.ocx - or not Roz, I'm curious; do they outsource their IT support? What I've found is that if so, things move at a glacial pace. Outsourcing companies want a change notice on *everything*, then full testing, etc because they want to cover their butt contract wise (which includes penalty clauses for non-performance). When I deal with a client that has outsourced, it takes a minimum of a week to get anything done unless it's a crises and they are seen as bailing you out. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Roz Clarke Sent: Tuesday, March 11, 2008 6:43 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Msadodc.ocx - or not It's the procedure - you have to put in a request, they schedule the work, they do the work, it gets scheduled into their testing programme - Lord knows why it's so expensive, except that the company is a monolith and it does. not. move. easily. But this is a project that affects 20,000 users so I suppose some bureacracy is inevitable. ----- Original Message ---- From: Jim Lawrence To: Access Developers discussion and problem solving Sent: Tuesday, 11 March, 2008 10:12:10 PM Subject: Re: [AccessD] Msadodc.ocx - or not Hi Roz: How anyone would dare charge ?8000 for 10 minutes work is beyond comprehension. At ?48000 (or 65,000.00 US) per hour, the system guys probably makes more than you or I. ;-) If the application connects with an Oracle DB, Access must have direct ADO-OLE connections or no one will want to use it.... trust me an ODBC link doesn't cut it. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of rosalyn.clarke at barclays.com Sent: Tuesday, March 11, 2008 3:37 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Msadodc.ocx - or not Thanks Jim, that's really useful. For some reason, though other ADO tools are available and other .ocx files are available, this one is not installed. I have raised a request to have it added, but have been told that adding anything to the new environment takes 8-12 weeks and costs ?8000. I am a small cog in a very big machine. :( -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: 11 March 2008 02:40 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Msadodc.ocx - or not Hi Roz: I have used these controls ADO-OLE for years (since 1997) but generally with MS SQL databases. There is no advantage to using these with MDB as they are not as optimized. These controls should work in any Windows environment. They install by default and are stored within your Program Files directory > common files > System > ADO. I found these controls great as no matter where a remote system was setup the applications would always work without any further management. That is why I find it hard to believe they do not work in your current environment. Another good reason to use them other than they are so standardized virtually the same code will work with any Oracle, MS SQL and MDB database... or any DB for that matter There is also a whole group of great ADO functionality available like steaming controls for images, video and large files and data shaping capabilities (pseudo cubes and data arrays) that are very fast. I would recommend you get this common directory block installed on your new system and get the latest MSADOxxx files registered. It would be far better than having to redo all the code and still not have a superior product. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of rosalyn.clarke at barclays.com Sent: Monday, March 10, 2008 10:30 AM To: accessd at databaseadvisors.com Subject: [AccessD] Msadodc.ocx - or not Hi all I have a bunch of Access databases I need to migrate from a local environment at one of my client's offices to their new standardised citrix environment. The developers have made liberal use of msadodc.ocx controls, but this control is not included in the new environment. I've never used an active x data control so I'm not sure what I'm losing by ditching these. Is there a performance benefit to using the data control? Sample of how it's used below (long - please snip if responding!!) TIA Roz -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This e-mail and any attachments are confidential and intended solely for the addressee and may also be privileged or exempt from disclosure under applicable law. If you are not the addressee, or have received this e-mail in error, please notify the sender immediately, delete it from your system and do not copy, disclose or otherwise act upon any part of this e-mail or its attachments. Internet communications are not guaranteed to be secure or virus-free. The Barclays Group does not accept responsibility for any loss arising from unauthorised access to, or interference with, any Internet communications by any third party, or from the transmission of any viruses. Replies to this e-mail may be monitored by the Barclays Group for operational or business reasons. Any opinion or other information in this e-mail or its attachments that does not relate to the business of the Barclays Group is personal to the sender and is not given or endorsed by the Barclays Group. Barclays Bank PLC.Registered in England and Wales (registered no. 1026167). Registered Office: 1 Churchill Place, London, E14 5HP, United Kingdom. Barclays Bank PLC is authorised and regulated by the Financial Services Authority. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com __________________________________________________________ Sent from Yahoo! Mail. The World's Favourite Email http://uk.docs.yahoo.com/nowyoucan.html -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This e-mail and any attachments are confidential and intended solely for the addressee and may also be privileged or exempt from disclosure under applicable law. If you are not the addressee, or have received this e-mail in error, please notify the sender immediately, delete it from your system and do not copy, disclose or otherwise act upon any part of this e-mail or its attachments. Internet communications are not guaranteed to be secure or virus-free. The Barclays Group does not accept responsibility for any loss arising from unauthorised access to, or interference with, any Internet communications by any third party, or from the transmission of any viruses. Replies to this e-mail may be monitored by the Barclays Group for operational or business reasons. Any opinion or other information in this e-mail or its attachments that does not relate to the business of the Barclays Group is personal to the sender and is not given or endorsed by the Barclays Group. Barclays Bank PLC.Registered in England and Wales (registered no. 1026167). Registered Office: 1 Churchill Place, London, E14 5HP, United Kingdom. Barclays Bank PLC is authorised and regulated by the Financial Services Authority. From cfoust at infostatsystems.com Wed Mar 12 09:38:46 2008 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 12 Mar 2008 07:38:46 -0700 Subject: [AccessD] Query becomes uneditable In-Reply-To: <001d01c88448$43330cf0$0201a8c0@M90> References: <001d01c88448$43330cf0$0201a8c0@M90> Message-ID: I think you'r stuck if you use that table because it has to have a PK to be updateable. One non-updateable table in a query makes the whole thing not updateable. Any way to give that wretched table an autonumber or something? Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, March 12, 2008 6:52 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Query becomes uneditable I have a fairly simple query, with a people table, with outer joins to tlkpState on stateID etc. It is editable as it sits. I need to provide a county population of the county for the zip code in the address. I have a table of zip code information which includes this information, however the zip codes are not unique, i.e. there are potentially multiple rows for a given zip, for reasons like the name of suburbs inside of a "town" etc. Because the zips are not unique, the table has a "primary" field which holds a "P" in the field for the "primary" zip record. Don't look at me like that, I did not do this!!! This table does not have a PK of any kind, probably because it would be extremely difficult to discover a natural key, and an autonumber is less than useful anyway. To make matters worse, we get an update to this table periodically. I have a query that pulls a single record per zip based on a "P"rimary field which holds that "P" in that field for exactly one record for each zip. If I join that query to my updateable query on the zip, my query becomes non-updateable. If I join the table itself on the zip all hell breaks loose as you might imagine. Is there an answer to my quandary? Is there a way to get a zip / county name out of this table, joined to my query while still having the query updateable? The county field should not be updateable anyway. I think I could just put a subform in that displays the county but I am just wondering if there is a "cleaner" way. 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 Wed Mar 12 09:52:54 2008 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 12 Mar 2008 10:52:54 -0400 Subject: [AccessD] Query becomes uneditable In-Reply-To: References: <001d01c88448$43330cf0$0201a8c0@M90> Message-ID: <002201c88450$c105c4d0$0201a8c0@M90> Charlotte, I could add an autonumber PK but then I would have to do it all over again when the update comes in. Additionally it would be likely to be used as a FK somewhere and then when the new update comes in (with more / different Zips) the PKs would point to the wrong zip etc. Not a good idea. I implemented the county subform idea and that works. 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, March 12, 2008 10:39 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Query becomes uneditable I think you'r stuck if you use that table because it has to have a PK to be updateable. One non-updateable table in a query makes the whole thing not updateable. Any way to give that wretched table an autonumber or something? Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, March 12, 2008 6:52 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Query becomes uneditable I have a fairly simple query, with a people table, with outer joins to tlkpState on stateID etc. It is editable as it sits. I need to provide a county population of the county for the zip code in the address. I have a table of zip code information which includes this information, however the zip codes are not unique, i.e. there are potentially multiple rows for a given zip, for reasons like the name of suburbs inside of a "town" etc. Because the zips are not unique, the table has a "primary" field which holds a "P" in the field for the "primary" zip record. Don't look at me like that, I did not do this!!! This table does not have a PK of any kind, probably because it would be extremely difficult to discover a natural key, and an autonumber is less than useful anyway. To make matters worse, we get an update to this table periodically. I have a query that pulls a single record per zip based on a "P"rimary field which holds that "P" in that field for exactly one record for each zip. If I join that query to my updateable query on the zip, my query becomes non-updateable. If I join the table itself on the zip all hell breaks loose as you might imagine. Is there an answer to my quandary? Is there a way to get a zip / county name out of this table, joined to my query while still having the query updateable? The county field should not be updateable anyway. I think I could just put a subform in that displays the county but I am just wondering if there is a "cleaner" way. 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 DWUTKA at Marlow.com Wed Mar 12 10:14:08 2008 From: DWUTKA at Marlow.com (Drew Wutka) Date: Wed, 12 Mar 2008 10:14:08 -0500 Subject: [AccessD] Feeding an paramarray to a paramarray In-Reply-To: <001401c8842b$022553c0$0201a8c0@M90> Message-ID: Ya learn something new everyday. Never even knew about the ParamArray option. Pretty slick. Anyhow, I whipped out my trusty 'solve all my problems' tool, otherwise known as Google, and on the second page of hits for ParamArray, I found this: http://support.microsoft.com/kb/157351 Sure enough, changing this: Function TestParamArray(strSomething As String, ParamArray tmpParams() As Variant) Dim varMember For Each varMember In tmpParams Debug.Print strSomething & " " & varMember SecondParamFunction tmpParams Next End Function Function SecondParamFunction(ParamArray tmpParams() As Variant) Dim varMember For Each varMember In tmpParams Debug.Print varMember Next End Function To this: Function TestParamArray(strSomething As String, ParamArray tmpParams() As Variant) Dim varMember For Each varMember In tmpParams Debug.Print strSomething & " " & varMember SecondParamFunction tmpParams Next End Function Function SecondParamFunction(ByVal tmpParams As Variant) Dim varMember For Each varMember In tmpParams Debug.Print varMember Next End Function Did the trick! Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, March 12, 2008 5:23 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Feeding an paramarray to a paramarray Paramarrays are very useful. function ListGrpMembers(ParamArray GrpMembers() as variant) dim varGrpMember for each varGrpMember in GrpMembers debug.print varGrpMember next varGrpMember end function ListGrpMembers "John", "Mary", "Robbie", "Allie" Paramarrays allow you to feed a variable number of values into a function, and then easily manipulate the array that they are placed in using a for each iterator. The problem lies if you then need to feed that array off to another function. function LogGrpMembers(Paramarray GrpMembers() as variant) end function Using a function as shown above doesn't work. If you pass the GrpMembers() array assembled in ListGrpMembers into LogGrpMembers you get a runtime error. I have "solved" this problem by unpacking the array into a collection and passing the collection into the next function. function LogGrpMembers( GrpMembers as collection) end function function ListGrpMembers(ParamArray GrpMembers() as variant) dim varGrpMember dim colGrpMembers as collection set col for each varGrpMember in GrpMembers colGrpMembers.Add varGrpMember next varGrpMember LogGrpMembers colGrpMembers end function While that works, it is cumbersome and there are times where you would really like the second function to be a ParamArray as well, perhaps so that it can be called directly if required. Am I missing something? Is there a syntax for passing a paramarray into another paramarray? 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 The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From jwcolby at colbyconsulting.com Wed Mar 12 10:49:27 2008 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 12 Mar 2008 11:49:27 -0400 Subject: [AccessD] Feeding an paramarray to a paramarray In-Reply-To: References: <001401c8842b$022553c0$0201a8c0@M90> Message-ID: <002301c88458$a76fa740$0201a8c0@M90> Drew, LOL. >Ya learn something new everyday. Would you speak into the microphone please... The "solution" did the trick, but at the expense of eliminating the ability to pass in multiple arguments to SecondParamfunction. It is the keyword ParamArray that allows the passing in of multiple arguments. It is often useful to have two functions, BOTH of which have param arrays, and be able to call either one directly, but also call one from the other. It is the "call one from the other" that is not possible if both have paramarrays. ParamArrays are indeed a neat trick and one I use all of the time. What would be REALLY cool would be to be able to pass into TWO paramarrays but that is syntactically impossible - there is no way to denote where parameters aimed at one array ends and where the parameters aimed at the next array begins. The language could be expanded to allow a semicolon to denote the end of one list and the beginning of the next but that doesn't currently exist. 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 Drew Wutka Sent: Wednesday, March 12, 2008 11:14 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Feeding an paramarray to a paramarray Ya learn something new everyday. Never even knew about the ParamArray option. Pretty slick. Anyhow, I whipped out my trusty 'solve all my problems' tool, otherwise known as Google, and on the second page of hits for ParamArray, I found this: http://support.microsoft.com/kb/157351 Sure enough, changing this: Function TestParamArray(strSomething As String, ParamArray tmpParams() As Variant) Dim varMember For Each varMember In tmpParams Debug.Print strSomething & " " & varMember SecondParamFunction tmpParams Next End Function Function SecondParamFunction(ParamArray tmpParams() As Variant) Dim varMember For Each varMember In tmpParams Debug.Print varMember Next End Function To this: Function TestParamArray(strSomething As String, ParamArray tmpParams() As Variant) Dim varMember For Each varMember In tmpParams Debug.Print strSomething & " " & varMember SecondParamFunction tmpParams Next End Function Function SecondParamFunction(ByVal tmpParams As Variant) Dim varMember For Each varMember In tmpParams Debug.Print varMember Next End Function Did the trick! Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, March 12, 2008 5:23 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Feeding an paramarray to a paramarray Paramarrays are very useful. function ListGrpMembers(ParamArray GrpMembers() as variant) dim varGrpMember for each varGrpMember in GrpMembers debug.print varGrpMember next varGrpMember end function ListGrpMembers "John", "Mary", "Robbie", "Allie" Paramarrays allow you to feed a variable number of values into a function, and then easily manipulate the array that they are placed in using a for each iterator. The problem lies if you then need to feed that array off to another function. function LogGrpMembers(Paramarray GrpMembers() as variant) end function Using a function as shown above doesn't work. If you pass the GrpMembers() array assembled in ListGrpMembers into LogGrpMembers you get a runtime error. I have "solved" this problem by unpacking the array into a collection and passing the collection into the next function. function LogGrpMembers( GrpMembers as collection) end function function ListGrpMembers(ParamArray GrpMembers() as variant) dim varGrpMember dim colGrpMembers as collection set col for each varGrpMember in GrpMembers colGrpMembers.Add varGrpMember next varGrpMember LogGrpMembers colGrpMembers end function While that works, it is cumbersome and there are times where you would really like the second function to be a ParamArray as well, perhaps so that it can be called directly if required. Am I missing something? Is there a syntax for passing a paramarray into another paramarray? 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 The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at Marlow.com Wed Mar 12 11:21:09 2008 From: DWUTKA at Marlow.com (Drew Wutka) Date: Wed, 12 Mar 2008 11:21:09 -0500 Subject: [AccessD] Feeding an paramarray to a paramarray In-Reply-To: <002301c88458$a76fa740$0201a8c0@M90> Message-ID: Ah, here's the problem. Function Something(ParamArray tmpGroup() as variant) Calling Something("1","2","3","4") isn't sending 'Something' an array. ParamArray is required to be the last argument. It is also ByVal. It's not 'accepting' an array (though it will), it is accepting multiple arguments and turning them into an array. If we do this: Dim tmp(1) Tmp(0)=1 Tmp(1)=2 Something(tmp) What we get is an array WITHIN an Array. Tmp is ONE argument. The Something Function actually creates an array with the first element as the tmp array. If we send THAT array to another function, we are getting an array with the first element the paramarray array, with it's first element the tmp array. If we send it through again, we'd get a four level deep array. So, it is sending the data through, but the way you are dealing with the ParamArray argument in the second function is based on the conceptual error that you are getting a single level array. Let me see if I can give you a better work around. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, March 12, 2008 10:49 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding an paramarray to a paramarray Drew, LOL. >Ya learn something new everyday. Would you speak into the microphone please... The "solution" did the trick, but at the expense of eliminating the ability to pass in multiple arguments to SecondParamfunction. It is the keyword ParamArray that allows the passing in of multiple arguments. It is often useful to have two functions, BOTH of which have param arrays, and be able to call either one directly, but also call one from the other. It is the "call one from the other" that is not possible if both have paramarrays. ParamArrays are indeed a neat trick and one I use all of the time. What would be REALLY cool would be to be able to pass into TWO paramarrays but that is syntactically impossible - there is no way to denote where parameters aimed at one array ends and where the parameters aimed at the next array begins. The language could be expanded to allow a semicolon to denote the end of one list and the beginning of the next but that doesn't currently exist. John W. Colby Colby Consulting www.ColbyConsulting.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From DWUTKA at Marlow.com Wed Mar 12 11:55:45 2008 From: DWUTKA at Marlow.com (Drew Wutka) Date: Wed, 12 Mar 2008 11:55:45 -0500 Subject: [AccessD] Feeding an paramarray to a paramarray In-Reply-To: <002301c88458$a76fa740$0201a8c0@M90> Message-ID: Ok, one method would be to hand off the actual work to another function, (a recursive function) that knows it's getting an array: Dim tmpSum As Long Dim strTemp As String Function RunningSum(ParamArray tmpValues() As Variant) Dim tmpCurrentValue As Long strTemp = "" tmpSum = 0 DoTheWorkForRunningSum tmpValues strTemp = Left(strTemp, Len(strTemp) - 3) If Val(strTemp) <> tmpSum Then Debug.Print strTemp & " = " & tmpSum tmpCurrentValue = tmpSum If tmpSum < 10000 Then RunningSum tmpCurrentValue, tmpValues End Function Function DoTheWorkForRunningSum(ByVal tmpPossibleArray As Variant) Dim tmpElement For Each tmpElement In tmpPossibleArray If IsArray(tmpElement) Then DoTheWorkForRunningSum tmpElement Else tmpSum = tmpSum + Val(tmpElement) strTemp = strTemp & tmpElement & " + " End If Next End Function ?RunningSum(1) 1 + 1 = 2 2 + 1 + 1 = 4 4 + 2 + 1 + 1 = 8 8 + 4 + 2 + 1 + 1 = 16 16 + 8 + 4 + 2 + 1 + 1 = 32 32 + 16 + 8 + 4 + 2 + 1 + 1 = 64 64 + 32 + 16 + 8 + 4 + 2 + 1 + 1 = 128 128 + 64 + 32 + 16 + 8 + 4 + 2 + 1 + 1 = 256 256 + 128 + 64 + 32 + 16 + 8 + 4 + 2 + 1 + 1 = 512 512 + 256 + 128 + 64 + 32 + 16 + 8 + 4 + 2 + 1 + 1 = 1024 1024 + 512 + 256 + 128 + 64 + 32 + 16 + 8 + 4 + 2 + 1 + 1 = 2048 2048 + 1024 + 512 + 256 + 128 + 64 + 32 + 16 + 8 + 4 + 2 + 1 + 1 = 4096 4096 + 2048 + 1024 + 512 + 256 + 128 + 64 + 32 + 16 + 8 + 4 + 2 + 1 + 1 = 8192 8192 + 4096 + 2048 + 1024 + 512 + 256 + 128 + 64 + 32 + 16 + 8 + 4 + 2 + 1 + 1 = 16384 To be continued..... -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, March 12, 2008 10:49 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding an paramarray to a paramarray Drew, LOL. >Ya learn something new everyday. Would you speak into the microphone please... The "solution" did the trick, but at the expense of eliminating the ability to pass in multiple arguments to SecondParamfunction. It is the keyword ParamArray that allows the passing in of multiple arguments. It is often useful to have two functions, BOTH of which have param arrays, and be able to call either one directly, but also call one from the other. It is the "call one from the other" that is not possible if both have paramarrays. ParamArrays are indeed a neat trick and one I use all of the time. What would be REALLY cool would be to be able to pass into TWO paramarrays but that is syntactically impossible - there is no way to denote where parameters aimed at one array ends and where the parameters aimed at the next array begins. The language could be expanded to allow a semicolon to denote the end of one list and the beginning of the next but that doesn't currently exist. John W. Colby Colby Consulting www.ColbyConsulting.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From DWUTKA at Marlow.com Wed Mar 12 11:57:23 2008 From: DWUTKA at Marlow.com (Drew Wutka) Date: Wed, 12 Mar 2008 11:57:23 -0500 Subject: [AccessD] Feeding an paramarray to a paramarray Part(2) In-Reply-To: <002301c88458$a76fa740$0201a8c0@M90> Message-ID: So, if we want one function with a paramarray argument to hand data to another function with a paramarray argument: Dim tmpSum As Long Dim strTemp As String Function MultipleRunningSums(ParamArray tmpValues() As Variant) Dim tmpValueToRunSumFor For Each tmpValueToRunSumFor In tmpValues RunningSum tmpValueToRunSumFor Next End Function Function RunningSum(ParamArray tmpValues() As Variant) Dim tmpCurrentValue As Long strTemp = "" tmpSum = 0 DoTheWorkForRunningSum tmpValues strTemp = Left(strTemp, Len(strTemp) - 3) If Val(strTemp) <> tmpSum Then Debug.Print strTemp & " = " & tmpSum tmpCurrentValue = tmpSum If tmpSum < 100 Then RunningSum tmpCurrentValue, tmpValues End Function Function DoTheWorkForRunningSum(ByVal tmpPossibleArray As Variant) Dim tmpElement For Each tmpElement In tmpPossibleArray If IsArray(tmpElement) Then DoTheWorkForRunningSum tmpElement Else tmpSum = tmpSum + Val(tmpElement) strTemp = strTemp & tmpElement & " + " End If Next End Function Testing Results: ?MultipleRunningSums(1,2,3,4) 1 + 1 = 2 2 + 1 + 1 = 4 4 + 2 + 1 + 1 = 8 8 + 4 + 2 + 1 + 1 = 16 16 + 8 + 4 + 2 + 1 + 1 = 32 32 + 16 + 8 + 4 + 2 + 1 + 1 = 64 64 + 32 + 16 + 8 + 4 + 2 + 1 + 1 = 128 2 + 2 = 4 4 + 2 + 2 = 8 8 + 4 + 2 + 2 = 16 16 + 8 + 4 + 2 + 2 = 32 32 + 16 + 8 + 4 + 2 + 2 = 64 64 + 32 + 16 + 8 + 4 + 2 + 2 = 128 3 + 3 = 6 6 + 3 + 3 = 12 12 + 6 + 3 + 3 = 24 24 + 12 + 6 + 3 + 3 = 48 48 + 24 + 12 + 6 + 3 + 3 = 96 96 + 48 + 24 + 12 + 6 + 3 + 3 = 192 4 + 4 = 8 8 + 4 + 4 = 16 16 + 8 + 4 + 4 = 32 32 + 16 + 8 + 4 + 4 = 64 64 + 32 + 16 + 8 + 4 + 4 = 128 Hope this helps. Drew The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From jwcolby at colbyconsulting.com Wed Mar 12 12:02:21 2008 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 12 Mar 2008 13:02:21 -0400 Subject: [AccessD] Feeding an paramarray to a paramarray In-Reply-To: References: <002301c88458$a76fa740$0201a8c0@M90> Message-ID: <002c01c88462$d6dc1c70$0201a8c0@M90> LOL. You have too much time on your hands. 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 Drew Wutka Sent: Wednesday, March 12, 2008 12:56 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Feeding an paramarray to a paramarray Ok, one method would be to hand off the actual work to another function, (a recursive function) that knows it's getting an array: Dim tmpSum As Long Dim strTemp As String Function RunningSum(ParamArray tmpValues() As Variant) Dim tmpCurrentValue As Long strTemp = "" tmpSum = 0 DoTheWorkForRunningSum tmpValues strTemp = Left(strTemp, Len(strTemp) - 3) If Val(strTemp) <> tmpSum Then Debug.Print strTemp & " = " & tmpSum tmpCurrentValue = tmpSum If tmpSum < 10000 Then RunningSum tmpCurrentValue, tmpValues End Function Function DoTheWorkForRunningSum(ByVal tmpPossibleArray As Variant) Dim tmpElement For Each tmpElement In tmpPossibleArray If IsArray(tmpElement) Then DoTheWorkForRunningSum tmpElement Else tmpSum = tmpSum + Val(tmpElement) strTemp = strTemp & tmpElement & " + " End If Next End Function ?RunningSum(1) 1 + 1 = 2 2 + 1 + 1 = 4 4 + 2 + 1 + 1 = 8 8 + 4 + 2 + 1 + 1 = 16 16 + 8 + 4 + 2 + 1 + 1 = 32 32 + 16 + 8 + 4 + 2 + 1 + 1 = 64 64 + 32 + 16 + 8 + 4 + 2 + 1 + 1 = 128 128 + 64 + 32 + 16 + 8 + 4 + 2 + 1 + 1 = 256 256 + 128 + 64 + 32 + 16 + 8 + 4 + 2 + 1 + 1 = 512 512 + 256 + 128 + 64 + 32 + 16 + 8 + 4 + 2 + 1 + 1 = 1024 1024 + 512 + 256 + 128 + 64 + 32 + 16 + 8 + 4 + 2 + 1 + 1 = 2048 2048 + 1024 + 512 + 256 + 128 + 64 + 32 + 16 + 8 + 4 + 2 + 1 + 1 = 4096 4096 + 2048 + 1024 + 512 + 256 + 128 + 64 + 32 + 16 + 8 + 4 + 2 + 1 + 1 = 8192 8192 + 4096 + 2048 + 1024 + 512 + 256 + 128 + 64 + 32 + 16 + 8 + 4 + 2 + 1 + 1 = 16384 To be continued..... -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, March 12, 2008 10:49 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding an paramarray to a paramarray Drew, LOL. >Ya learn something new everyday. Would you speak into the microphone please... The "solution" did the trick, but at the expense of eliminating the ability to pass in multiple arguments to SecondParamfunction. It is the keyword ParamArray that allows the passing in of multiple arguments. It is often useful to have two functions, BOTH of which have param arrays, and be able to call either one directly, but also call one from the other. It is the "call one from the other" that is not possible if both have paramarrays. ParamArrays are indeed a neat trick and one I use all of the time. What would be REALLY cool would be to be able to pass into TWO paramarrays but that is syntactically impossible - there is no way to denote where parameters aimed at one array ends and where the parameters aimed at the next array begins. The language could be expanded to allow a semicolon to denote the end of one list and the beginning of the next but that doesn't currently exist. John W. Colby Colby Consulting www.ColbyConsulting.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Wed Mar 12 12:04:09 2008 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 12 Mar 2008 13:04:09 -0400 Subject: [AccessD] Feeding an paramarray to a paramarray In-Reply-To: References: <001401c8842b$022553c0$0201a8c0@M90> Message-ID: <002d01c88463$173b9a70$0201a8c0@M90> Good idea but... the ParamArray can be anything from collections to strings to integers etc. Split expects a string, not an array of variants. 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, March 12, 2008 10:36 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Feeding an paramarray to a paramarray Could you use split to dismantle the paramarray and pass that result to your LogGrpMembers? Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, March 12, 2008 3:23 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Feeding an paramarray to a paramarray Paramarrays are very useful. function ListGrpMembers(ParamArray GrpMembers() as variant) dim varGrpMember for each varGrpMember in GrpMembers debug.print varGrpMember next varGrpMember end function ListGrpMembers "John", "Mary", "Robbie", "Allie" Paramarrays allow you to feed a variable number of values into a function, and then easily manipulate the array that they are placed in using a for each iterator. The problem lies if you then need to feed that array off to another function. function LogGrpMembers(Paramarray GrpMembers() as variant) end function Using a function as shown above doesn't work. If you pass the GrpMembers() array assembled in ListGrpMembers into LogGrpMembers you get a runtime error. I have "solved" this problem by unpacking the array into a collection and passing the collection into the next function. function LogGrpMembers( GrpMembers as collection) end function function ListGrpMembers(ParamArray GrpMembers() as variant) dim varGrpMember dim colGrpMembers as collection set col for each varGrpMember in GrpMembers colGrpMembers.Add varGrpMember next varGrpMember LogGrpMembers colGrpMembers end function While that works, it is cumbersome and there are times where you would really like the second function to be a ParamArray as well, perhaps so that it can be called directly if required. Am I missing something? Is there a syntax for passing a paramarray into another paramarray? 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 DWUTKA at Marlow.com Wed Mar 12 12:09:38 2008 From: DWUTKA at Marlow.com (Drew Wutka) Date: Wed, 12 Mar 2008 12:09:38 -0500 Subject: [AccessD] Feeding an paramarray to a paramarray In-Reply-To: <002c01c88462$d6dc1c70$0201a8c0@M90> Message-ID: Not really, but I'm like House when it comes to code, when I see a problem that I find intriguing, I have to fix it! ;) So, did this help ya? Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, March 12, 2008 12:02 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding an paramarray to a paramarray LOL. You have too much time on your hands. 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 Drew Wutka Sent: Wednesday, March 12, 2008 12:56 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Feeding an paramarray to a paramarray Ok, one method would be to hand off the actual work to another function, (a recursive function) that knows it's getting an array: Dim tmpSum As Long Dim strTemp As String Function RunningSum(ParamArray tmpValues() As Variant) Dim tmpCurrentValue As Long strTemp = "" tmpSum = 0 DoTheWorkForRunningSum tmpValues strTemp = Left(strTemp, Len(strTemp) - 3) If Val(strTemp) <> tmpSum Then Debug.Print strTemp & " = " & tmpSum tmpCurrentValue = tmpSum If tmpSum < 10000 Then RunningSum tmpCurrentValue, tmpValues End Function Function DoTheWorkForRunningSum(ByVal tmpPossibleArray As Variant) Dim tmpElement For Each tmpElement In tmpPossibleArray If IsArray(tmpElement) Then DoTheWorkForRunningSum tmpElement Else tmpSum = tmpSum + Val(tmpElement) strTemp = strTemp & tmpElement & " + " End If Next End Function ?RunningSum(1) 1 + 1 = 2 2 + 1 + 1 = 4 4 + 2 + 1 + 1 = 8 8 + 4 + 2 + 1 + 1 = 16 16 + 8 + 4 + 2 + 1 + 1 = 32 32 + 16 + 8 + 4 + 2 + 1 + 1 = 64 64 + 32 + 16 + 8 + 4 + 2 + 1 + 1 = 128 128 + 64 + 32 + 16 + 8 + 4 + 2 + 1 + 1 = 256 256 + 128 + 64 + 32 + 16 + 8 + 4 + 2 + 1 + 1 = 512 512 + 256 + 128 + 64 + 32 + 16 + 8 + 4 + 2 + 1 + 1 = 1024 1024 + 512 + 256 + 128 + 64 + 32 + 16 + 8 + 4 + 2 + 1 + 1 = 2048 2048 + 1024 + 512 + 256 + 128 + 64 + 32 + 16 + 8 + 4 + 2 + 1 + 1 = 4096 4096 + 2048 + 1024 + 512 + 256 + 128 + 64 + 32 + 16 + 8 + 4 + 2 + 1 + 1 = 8192 8192 + 4096 + 2048 + 1024 + 512 + 256 + 128 + 64 + 32 + 16 + 8 + 4 + 2 + 1 + 1 = 16384 To be continued..... -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, March 12, 2008 10:49 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding an paramarray to a paramarray Drew, LOL. >Ya learn something new everyday. Would you speak into the microphone please... The "solution" did the trick, but at the expense of eliminating the ability to pass in multiple arguments to SecondParamfunction. It is the keyword ParamArray that allows the passing in of multiple arguments. It is often useful to have two functions, BOTH of which have param arrays, and be able to call either one directly, but also call one from the other. It is the "call one from the other" that is not possible if both have paramarrays. ParamArrays are indeed a neat trick and one I use all of the time. What would be REALLY cool would be to be able to pass into TWO paramarrays but that is syntactically impossible - there is no way to denote where parameters aimed at one array ends and where the parameters aimed at the next array begins. The language could be expanded to allow a semicolon to denote the end of one list and the beginning of the next but that doesn't currently exist. John W. Colby Colby Consulting www.ColbyConsulting.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From jwcolby at colbyconsulting.com Wed Mar 12 12:09:48 2008 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 12 Mar 2008 13:09:48 -0400 Subject: [AccessD] Feeding an paramarray to a paramarray In-Reply-To: References: <002301c88458$a76fa740$0201a8c0@M90> Message-ID: <003801c88463$e13eff10$0201a8c0@M90> You are correct of course, the paramarray is an array of variant. The for each iterator does not know how to handle an array in the array. 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 Drew Wutka Sent: Wednesday, March 12, 2008 12:21 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Feeding an paramarray to a paramarray Ah, here's the problem. Function Something(ParamArray tmpGroup() as variant) Calling Something("1","2","3","4") isn't sending 'Something' an array. ParamArray is required to be the last argument. It is also ByVal. It's not 'accepting' an array (though it will), it is accepting multiple arguments and turning them into an array. If we do this: Dim tmp(1) Tmp(0)=1 Tmp(1)=2 Something(tmp) What we get is an array WITHIN an Array. Tmp is ONE argument. The Something Function actually creates an array with the first element as the tmp array. If we send THAT array to another function, we are getting an array with the first element the paramarray array, with it's first element the tmp array. If we send it through again, we'd get a four level deep array. So, it is sending the data through, but the way you are dealing with the ParamArray argument in the second function is based on the conceptual error that you are getting a single level array. Let me see if I can give you a better work around. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, March 12, 2008 10:49 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding an paramarray to a paramarray Drew, LOL. >Ya learn something new everyday. Would you speak into the microphone please... The "solution" did the trick, but at the expense of eliminating the ability to pass in multiple arguments to SecondParamfunction. It is the keyword ParamArray that allows the passing in of multiple arguments. It is often useful to have two functions, BOTH of which have param arrays, and be able to call either one directly, but also call one from the other. It is the "call one from the other" that is not possible if both have paramarrays. ParamArrays are indeed a neat trick and one I use all of the time. What would be REALLY cool would be to be able to pass into TWO paramarrays but that is syntactically impossible - there is no way to denote where parameters aimed at one array ends and where the parameters aimed at the next array begins. The language could be expanded to allow a semicolon to denote the end of one list and the beginning of the next but that doesn't currently exist. John W. Colby Colby Consulting www.ColbyConsulting.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mmattys at rochester.rr.com Wed Mar 12 12:13:35 2008 From: mmattys at rochester.rr.com (Michael R Mattys) Date: Wed, 12 Mar 2008 13:13:35 -0400 Subject: [AccessD] Feeding an paramarray to a paramarray References: <001401c8842b$022553c0$0201a8c0@M90> <002301c88458$a76fa740$0201a8c0@M90> Message-ID: <003301c88464$6947ac40$0402a8c0@Laptop> Hmmm. I've read about this before, pass in pointer to start of array, number elements, etc Declare Function SetBitmapBits Lib "gdi32" Alias _ "SetBitmapBits" (ByVal hBitmap As Long, _ ByVal dwCount As Long, lpBits As Any) As Long Michael R. Mattys MapPoint & Access Dev www.mattysconsulting.com ----- Original Message ----- From: "jwcolby" To: "'Access Developers discussion and problem solving'" Sent: Wednesday, March 12, 2008 11:49 AM Subject: Re: [AccessD] Feeding an paramarray to a paramarray > Drew, > > LOL. > >>Ya learn something new everyday. > > Would you speak into the microphone please... > > The "solution" did the trick, but at the expense of eliminating the > ability > to pass in multiple arguments to SecondParamfunction. It is the keyword > ParamArray that allows the passing in of multiple arguments. It is often > useful to have two functions, BOTH of which have param arrays, and be able > to call either one directly, but also call one from the other. It is the > "call one from the other" that is not possible if both have paramarrays. > > ParamArrays are indeed a neat trick and one I use all of the time. What > would be REALLY cool would be to be able to pass into TWO paramarrays but > that is syntactically impossible - there is no way to denote where > parameters aimed at one array ends and where the parameters aimed at the > next array begins. The language could be expanded to allow a semicolon to > denote the end of one list and the beginning of the next but that doesn't > currently exist. > > 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 Drew Wutka > Sent: Wednesday, March 12, 2008 11:14 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Feeding an paramarray to a paramarray > > Ya learn something new everyday. Never even knew about the ParamArray > option. Pretty slick. Anyhow, I whipped out my trusty 'solve all my > problems' tool, otherwise known as Google, and on the second page of hits > for ParamArray, I found this: > > http://support.microsoft.com/kb/157351 > > Sure enough, changing this: > > Function TestParamArray(strSomething As String, ParamArray tmpParams() As > Variant) Dim varMember For Each varMember In tmpParams > Debug.Print strSomething & " " & varMember > SecondParamFunction tmpParams > Next > End Function > Function SecondParamFunction(ParamArray tmpParams() As Variant) Dim > varMember For Each varMember In tmpParams > Debug.Print varMember > Next > End Function > > To this: > > Function TestParamArray(strSomething As String, ParamArray tmpParams() As > Variant) Dim varMember For Each varMember In tmpParams > Debug.Print strSomething & " " & varMember > SecondParamFunction tmpParams > Next > End Function > Function SecondParamFunction(ByVal tmpParams As Variant) Dim varMember For > Each varMember In tmpParams > Debug.Print varMember > Next > End Function > > Did the trick! > > Drew > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Wednesday, March 12, 2008 5:23 AM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Feeding an paramarray to a paramarray > > Paramarrays are very useful. > > function ListGrpMembers(ParamArray GrpMembers() as variant) dim > varGrpMember > for each varGrpMember in GrpMembers > debug.print varGrpMember > next varGrpMember > end function > > ListGrpMembers "John", "Mary", "Robbie", "Allie" > > Paramarrays allow you to feed a variable number of values into a function, > and then easily manipulate the array that they are placed in using a for > each iterator. > > The problem lies if you then need to feed that array off to another > function. > > function LogGrpMembers(Paramarray GrpMembers() as variant) end function > > Using a function as shown above doesn't work. If you pass the > GrpMembers() > array assembled in ListGrpMembers into LogGrpMembers you get a runtime > error. > > I have "solved" this problem by unpacking the array into a collection and > passing the collection into the next function. > > function LogGrpMembers( GrpMembers as collection) end function > > function ListGrpMembers(ParamArray GrpMembers() as variant) dim > varGrpMember > dim colGrpMembers as collection > set col > for each varGrpMember in GrpMembers > colGrpMembers.Add varGrpMember > next varGrpMember > LogGrpMembers colGrpMembers > > end function > > While that works, it is cumbersome and there are times where you would > really like the second function to be a ParamArray as well, perhaps so > that > it can be called directly if required. > > Am I missing something? Is there a syntax for passing a paramarray into > another paramarray? > > 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 The information contained in this > transmission is intended only for the person or entity to which it is > addressed and may contain II-VI Proprietary and/or II-VI Business > Sensitive > material. If you are not the intended recipient, please contact the sender > immediately and destroy the material in its entirety, whether electronic > or > hard copy. You are notified that any review, retransmission, copying, > disclosure, dissemination, or other use of, or taking of any action in > reliance upon this information by persons or entities other than the > intended recipient is prohibited. > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From adtp at airtelmail.in Wed Mar 12 12:29:02 2008 From: adtp at airtelmail.in (A.D.Tejpal) Date: Wed, 12 Mar 2008 22:59:02 +0530 Subject: [AccessD] Feeding an paramarray to a paramarray References: <001401c8842b$022553c0$0201a8c0@M90> Message-ID: <31fc01c88466$b81a2170$9557a27a@personald6374f> Nested Functions Using Arrays As Arguments ================================= This pertains to functions using array arguments and then returning an array as the result. Observations placed below are based upon tests conducted on Access XP desktop (running on Win XP). A function using ParamArray as the keyword for its array argument is governed by the following limitations. (a) Each element of the array is required to be mentioned individually. Simply using an array variable (or a function that returns an array) in lieu, will not do. (b) ParamArray keyword is not to be preceded with ByVal, ByRef, or Optional keywords. (c) ParamArray type argument is to be used only as the last argument in arglist to indicate that the final argument is an optional array of Variant elements. On the other hand, if the array argument is handled without using the keyword ParamArray, there is far greater flexibility regarding the manner in which the array argument can be supplied. Any of the following alternatives will do. (a) An array variable (b) A function returning an array (c) A literal array using the built-in Array() function. Example - Array(2,4,8,16,32,64) It would thus be seen that, if functions returning array values are to be nested, those having ParamArray as the keyword stand disqualified, except for being used as the very first step. All higher layer functions have to be those using an array variable as their argument, without ParamArray keyword. As an illustration, two sample functions are given below. Fn_PAr() uses ParamArray as the keyword for its array argument, while Fn_Ar() uses a normal array variable as its argument, without the keyword ParamArray. Both these functions double the value of each element of the input array argument and return the result as an array. Sample test procedures for verifying the performance of above functions under three layers of nesting are also given below. Brief details - (a) Sub P_TestArrayFunctions_A() Three level nesting of array functions. Function having ParamArray as its argument is used as an array argument for another function, which in turn, is used as an array argument for the final function. (b) Sub P_TestArrayFunctions_B() Three level nesting of array functions. Function having an array variable as its argument is used as an array argument for another function, which in turn, is used as an array argument for the final function. (c) Sub P_TestArrayFunctions_C() Three level nesting of array functions. Function having a literal Array() function as its argument is used as an array argument for another function, which in turn, is used as an array argument for the final function. Conclusion -------------- Considering its superior flexibility as explained above, a function using a straight array variable as its argument (without being preceded by the keyword ParamArray) should prove universally more convenient as compared to one with ParamArray keyword. While it is amenable to multi-level nesting, accepting array variable (or function returning an array) as its argument, it can also mimic the ParamArray style input (i.e. literal supply of individual elements of array argument) as demonstrated in test procedure Sub P_TestArrayFunctions_C() below. A.D.Tejpal -------------- =================================== Function Fn_PAr(ParamArray Pa() _ As Variant) As Variant ' Doubles each element of ParamArray ' argument Pa() and returns the result as an array Dim La As Variant, Cnt As Long ReDim La(UBound(Pa)) For Cnt = LBound(Pa) To UBound(Pa) La(Cnt) = 2 * Pa(Cnt) Next Fn_PAr = La End Function '------------------------------------ Function Fn_Ar(ByVal Ar As Variant) As Variant ' Doubles each element of array argument Ar ' and returns the result as an array Dim La As Variant, Cnt As Long ReDim La(UBound(Ar)) For Cnt = LBound(Ar) To UBound(Ar) La(Cnt) = 2 * Ar(Cnt) Next Fn_Ar = La End Function '------------------------------------ Sub P_TestArrayFunctions_A() ' Three level nesting of array functions. ' Function having ParamArray as its ' argument is used as an array argument for ' another function, which in turn, is used as ' an array argument for the final function. Dim Rtv As Variant, Cnt As Long Rtv = Fn_Ar(Fn_Ar(Fn_PAr(2, 4, 8, 16, 32, 64))) Debug.Print LBound(Rtv) & ", " & UBound(Rtv) For Cnt = LBound(Rtv) To UBound(Rtv) Debug.Print Rtv(Cnt) Next End Sub '------------------------------------ Sub P_TestArrayFunctions_B() ' Three level nesting of array functions. ' Function having an array variable as its ' argument is used as an array argument ' for another function, which in turn, is used ' as an array argument for the final function. Dim Rtv As Variant Dim Cnt As Long, Ar As Variant Ar = Array(2, 4, 8, 16, 32, 64) Rtv = Fn_Ar(Fn_Ar(Fn_Ar(Ar))) Debug.Print LBound(Rtv) & ", " & UBound(Rtv) For Cnt = LBound(Rtv) To UBound(Rtv) Debug.Print Rtv(Cnt) Next End Sub '------------------------------------ Sub P_TestArrayFunctions_C() ' Three level nesting of array functions. ' Function having a literal Array() function as ' its argument is used as an array argument for ' another function, which in turn, is used as an ' array argument for the final function. Dim Rtv As Variant, Cnt As Long Rtv = Fn_Ar(Fn_Ar(Fn_Ar(Array(2, 4, 8, 16, 32, 64)))) Debug.Print LBound(Rtv) & ", " & UBound(Rtv) For Cnt = LBound(Rtv) To UBound(Rtv) Debug.Print Rtv(Cnt) Next End Sub =================================== ----- Original Message ----- From: jwcolby To: 'Access Developers discussion and problem solving' Sent: Wednesday, March 12, 2008 15:52 Subject: [AccessD] Feeding an paramarray to a paramarray Paramarrays are very useful. From DWUTKA at Marlow.com Wed Mar 12 12:51:11 2008 From: DWUTKA at Marlow.com (Drew Wutka) Date: Wed, 12 Mar 2008 12:51:11 -0500 Subject: [AccessD] Feeding an paramarray to a paramarray In-Reply-To: <003801c88463$e13eff10$0201a8c0@M90> Message-ID: Not quite, it is handling it. What's failing is that the code you try to do something with, to handle the 'for each' object, isn't expecting an array. Ie, Dim tmpArray(2) Dim tmpArray2(2) tmpArray(1)=1 tmpArray(2)=tmpArray2 if your code goes: for each obj in tmparray msgbox obj next the first element '1', will work, the second element 'tmpArray2' won't work, because you aren't telling the process which element of obj/tmpArray2 to use. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, March 12, 2008 12:10 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding an paramarray to a paramarray You are correct of course, the paramarray is an array of variant. The for each iterator does not know how to handle an array in the array. 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 Drew Wutka Sent: Wednesday, March 12, 2008 12:21 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Feeding an paramarray to a paramarray Ah, here's the problem. Function Something(ParamArray tmpGroup() as variant) Calling Something("1","2","3","4") isn't sending 'Something' an array. ParamArray is required to be the last argument. It is also ByVal. It's not 'accepting' an array (though it will), it is accepting multiple arguments and turning them into an array. If we do this: Dim tmp(1) Tmp(0)=1 Tmp(1)=2 Something(tmp) What we get is an array WITHIN an Array. Tmp is ONE argument. The Something Function actually creates an array with the first element as the tmp array. If we send THAT array to another function, we are getting an array with the first element the paramarray array, with it's first element the tmp array. If we send it through again, we'd get a four level deep array. So, it is sending the data through, but the way you are dealing with the ParamArray argument in the second function is based on the conceptual error that you are getting a single level array. Let me see if I can give you a better work around. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, March 12, 2008 10:49 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding an paramarray to a paramarray Drew, LOL. >Ya learn something new everyday. Would you speak into the microphone please... The "solution" did the trick, but at the expense of eliminating the ability to pass in multiple arguments to SecondParamfunction. It is the keyword ParamArray that allows the passing in of multiple arguments. It is often useful to have two functions, BOTH of which have param arrays, and be able to call either one directly, but also call one from the other. It is the "call one from the other" that is not possible if both have paramarrays. ParamArrays are indeed a neat trick and one I use all of the time. What would be REALLY cool would be to be able to pass into TWO paramarrays but that is syntactically impossible - there is no way to denote where parameters aimed at one array ends and where the parameters aimed at the next array begins. The language could be expanded to allow a semicolon to denote the end of one list and the beginning of the next but that doesn't currently exist. John W. Colby Colby Consulting www.ColbyConsulting.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From robert at webedb.com Wed Mar 12 12:47:50 2008 From: robert at webedb.com (Robert L. Stewart) Date: Wed, 12 Mar 2008 12:47:50 -0500 Subject: [AccessD] VBA and SQL for Access In-Reply-To: References: Message-ID: <200803121752.m2CHpx6p029936@databaseadvisors.com> Cynthia, First, if you want to kick it up a notch, stop using Access for the data. Use SQL Server Express instead. Here are some Access VBA books: ISBN 0764559036 ISBN 0782123244 ISBN 0782140130 ISBN 0764525883 ISBN 047004702X ISBN 0789737310 For SQL Server 2005, Inside SQL Server 2005: T-SQL Programming is a good place to start. Robert At 05:39 AM 3/12/2008, you wrote: >Date: Wed, 12 Mar 2008 04:07:56 -0500 >From: "C \(Soucheray\) Reitzel" >Subject: [AccessD] VBA and SQL for Access >To: >Message-ID: <00d501c88420$979c9360$88fea8c0 at GATEWAY> >Content-Type: text/plain; charset="us-ascii" > >Hi, > >I am wanting to kick my career up a notch by beefing up my knowledge of SQL >and VBA for Access. Can anyone recommend any good how-to books for someone >with a base-line knowledge of programming and querying? > >Thanks, > >Cynthia From robert at webedb.com Wed Mar 12 12:50:25 2008 From: robert at webedb.com (Robert L. Stewart) Date: Wed, 12 Mar 2008 12:50:25 -0500 Subject: [AccessD] Query becomes uneditable In-Reply-To: References: Message-ID: <200803121752.m2CHq4G9029977@databaseadvisors.com> John, Create a table from the zip table that only has the "primary" in it. Robert At 12:09 PM 3/12/2008, you wrote: >Date: Wed, 12 Mar 2008 09:52:07 -0400 >From: "jwcolby" >Subject: [AccessD] Query becomes uneditable >To: "'Access Developers discussion and problem solving'" > >Message-ID: <001d01c88448$43330cf0$0201a8c0 at M90> >Content-Type: text/plain; charset="us-ascii" > >I have a fairly simple query, with a people table, with outer joins to >tlkpState on stateID etc. It is editable as it sits. > >I need to provide a county population of the county for the zip code in the >address. I have a table of zip code information which includes this >information, however the zip codes are not unique, i.e. there are >potentially multiple rows for a given zip, for reasons like the name of >suburbs inside of a "town" etc. Because the zips are not unique, the table >has a "primary" field which holds a "P" in the field for the "primary" zip >record. Don't look at me like that, I did not do this!!! This table does >not have a PK of any kind, probably because it would be extremely difficult >to discover a natural key, and an autonumber is less than useful anyway. To >make matters worse, we get an update to this table periodically. > >I have a query that pulls a single record per zip based on a "P"rimary field >which holds that "P" in that field for exactly one record for each zip. If >I join that query to my updateable query on the zip, my query becomes >non-updateable. If I join the table itself on the zip all hell breaks loose >as you might imagine. > >Is there an answer to my quandary? Is there a way to get a zip / county >name out of this table, joined to my query while still having the query >updateable? The county field should not be updateable anyway. > >I think I could just put a subform in that displays the county but I am just >wondering if there is a "cleaner" way. > >John W. Colby >Colby Consulting >www.ColbyConsulting.com From ssharkins at gmail.com Wed Mar 12 13:05:23 2008 From: ssharkins at gmail.com (Susan Harkins) Date: Wed, 12 Mar 2008 14:05:23 -0400 Subject: [AccessD] VBA and SQL for Access References: <200803121752.m2CHpx6p029936@databaseadvisors.com> Message-ID: <017c01c8846b$a9e651f0$4b3a8343@SusanOne> Okay, I'm going to step in now because nobody seems to really want to help Cynthia with the problem she has at hand, which is learning VBA/SQL and Access. She didn't ask about SQL Server or .NET -- she asked about Access. I'm not fussing because I know you guys mean well, but let's give her the help she asked for. :) I generally don't do this, and I gave them all plenty of time, but Cynthia try the following: I don't think you'll find a better SQL book than this one, although Martin's half is almost obsolete now. :( But most of the information in that half should still help you with SQL Server Express. Before you purchase either, see if your library has them, just to make sure they're really what you need. Also check out discount book stores, as they're both old and liable to be on sale tables. The VBA book was written before Access 2008. A lot of the code should still work, but the instructions will be vastly different, so I wouldn't suggest this book for 2008. Susan H. > Cynthia, > > First, if you want to kick it up a notch, stop using > Access for the data. Use SQL Server Express instead. > > Here are some Access VBA books: > > > ISBN 0764559036 > ISBN 0782123244 > ISBN 0782140130 > ISBN 0764525883 > ISBN 047004702X > ISBN 0789737310 > > For SQL Server 2005, Inside SQL Server 2005: T-SQL Programming > is a good place to start. > > Robert > > At 05:39 AM 3/12/2008, you wrote: >>Date: Wed, 12 Mar 2008 04:07:56 -0500 >>From: "C \(Soucheray\) Reitzel" >>Subject: [AccessD] VBA and SQL for Access >>To: >>Message-ID: <00d501c88420$979c9360$88fea8c0 at GATEWAY> >>Content-Type: text/plain; charset="us-ascii" >> >>Hi, >> >>I am wanting to kick my career up a notch by beefing up my knowledge of >>SQL >>and VBA for Access. Can anyone recommend any good how-to books for someone >>with a base-line knowledge of programming and querying? >> >>Thanks, >> >>Cynthia > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From EdTesiny at oasas.state.ny.us Wed Mar 12 13:15:54 2008 From: EdTesiny at oasas.state.ny.us (Tesiny, Ed) Date: Wed, 12 Mar 2008 14:15:54 -0400 Subject: [AccessD] VBA and SQL for Access In-Reply-To: <017c01c8846b$a9e651f0$4b3a8343@SusanOne> References: <200803121752.m2CHpx6p029936@databaseadvisors.com> <017c01c8846b$a9e651f0$4b3a8343@SusanOne> Message-ID: Drew Wutka had a nice little 40+ page tutorial on his web site where you could get your feet wet. Couldn't find a kink for you but maybe Drew does. If not, I'll try to hunt it up. Ed Tesiny EdTesiny at oasas.state.ny.us > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Susan Harkins > Sent: Wednesday, March 12, 2008 2:05 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] VBA and SQL for Access > > Okay, I'm going to step in now because nobody seems to really > want to help > Cynthia with the problem she has at hand, which is learning > VBA/SQL From jwcolby at colbyconsulting.com Wed Mar 12 13:22:15 2008 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 12 Mar 2008 14:22:15 -0400 Subject: [AccessD] Feeding an paramarray to a paramarray In-Reply-To: References: <002c01c88462$d6dc1c70$0201a8c0@M90> Message-ID: <003c01c8846e$0006e520$0201a8c0@M90> Well I'm sure it would except I already have a solution that is in place and works - unpacking the array into a collection and passing the collection from that point. A collection can be passed to a function that is expecting a collection, which can pass it to a function expecting a collection. IOW from the point that the array is unpacked into a collection, the collection can be passed as far down a function call chain as necessary without further worry, and always used with a simple for each iterator. A paramarray cannot be passed down a function call chain expecting a paramarray (without work in the receiving function). Neither your solution or mine "just works", both require interior code to perform a conversion at some level. The method I use requires the conversion once, at the top level. Passing a param array requires that conversion at each level of the chain. What I was trying to discover with the thread was whether there is "syntax" built into VBA that allows me to pass a paramarray to a paramarray and use the passed in array directly and without further decomposition. There is not. Personally if I have to perform a conversion, I prefer to convert to a collection and pass that. The conversion to a collection is trivial and readable. 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 Drew Wutka Sent: Wednesday, March 12, 2008 1:10 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Feeding an paramarray to a paramarray Not really, but I'm like House when it comes to code, when I see a problem that I find intriguing, I have to fix it! ;) So, did this help ya? Drew From newsgrps at dalyn.co.nz Wed Mar 12 13:16:25 2008 From: newsgrps at dalyn.co.nz (David Emerson) Date: Thu, 13 Mar 2008 07:16:25 +1300 Subject: [AccessD] Running Sprocs from Access In-Reply-To: <200803121406.m2CE6tV2001272@databaseadvisors.com> References: <200803121406.m2CE6tV2001272@databaseadvisors.com> Message-ID: <20080312181745.CZMU17371.fep04.xtra.co.nz@Dalyn.dalyn.co.nz> Thanks. At 13/03/2008, you wrote: >You can do it through code (ADO) or by using a >pass-through query. > >Robert > >At 05:39 AM 3/12/2008, you wrote: > >Date: Wed, 12 Mar 2008 16:30:31 +1300 > >From: David Emerson > >Subject: [AccessD] Running Sprocs from Access > >To: accessd at databaseadvisors.com > >Message-ID: > > <20080312032956.EDYD18083.fep03.xtra.co.nz at Dalyn.dalyn.co.nz> > >Content-Type: text/plain; charset="us-ascii"; format=flowed > > > >Is it possible to run a Stored Procedure from within an Access mdb > >that links to an SQL database (I know that I can using an adp but > >what about an mdb)? > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Wed Mar 12 13:23:51 2008 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 12 Mar 2008 14:23:51 -0400 Subject: [AccessD] VBA and SQL for Access In-Reply-To: References: <200803121752.m2CHpx6p029936@databaseadvisors.com><017c01c8846b$a9e651f0$4b3a8343@SusanOne> Message-ID: <003d01c8846e$39192f80$0201a8c0@M90> I thought Drew IS a kink? ;-) 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 Tesiny, Ed Sent: Wednesday, March 12, 2008 2:16 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] VBA and SQL for Access Drew Wutka had a nice little 40+ page tutorial on his web site where you could get your feet wet. Couldn't find a kink for you but maybe Drew does. If not, I'll try to hunt it up. Ed Tesiny EdTesiny at oasas.state.ny.us > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan > Harkins > Sent: Wednesday, March 12, 2008 2:05 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] VBA and SQL for Access > > Okay, I'm going to step in now because nobody seems to really want to > help Cynthia with the problem she has at hand, which is learning > VBA/SQL -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Wed Mar 12 14:29:36 2008 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 12 Mar 2008 15:29:36 -0400 Subject: [AccessD] copy paste across remote access not working Message-ID: <004901c88477$6882db00$0201a8c0@M90> I have used copy / paste across remote access. Copy something to the paste buffer, switch to "the other side" of a remote access, and then paste SHOULD get you whatever you placed in the paste buffer on "the other side". It is not right now and I have run into this before. Any idea why? Is there a setting somewhere that turns this on / off and perhaps it is off ATM? John W. Colby Colby Consulting www.ColbyConsulting.com From DWUTKA at Marlow.com Wed Mar 12 15:30:06 2008 From: DWUTKA at Marlow.com (Drew Wutka) Date: Wed, 12 Mar 2008 15:30:06 -0500 Subject: [AccessD] VBA and SQL for Access In-Reply-To: Message-ID: http://www.marlow.com/VBA_Training.zip (Haven't had my website up in years) Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Tesiny, Ed Sent: Wednesday, March 12, 2008 1:16 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] VBA and SQL for Access Drew Wutka had a nice little 40+ page tutorial on his web site where you could get your feet wet. Couldn't find a kink for you but maybe Drew does. If not, I'll try to hunt it up. Ed Tesiny EdTesiny at oasas.state.ny.us > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Susan Harkins > Sent: Wednesday, March 12, 2008 2:05 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] VBA and SQL for Access > > Okay, I'm going to step in now because nobody seems to really > want to help > Cynthia with the problem she has at hand, which is learning > VBA/SQL -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From DWUTKA at Marlow.com Wed Mar 12 15:34:57 2008 From: DWUTKA at Marlow.com (Drew Wutka) Date: Wed, 12 Mar 2008 15:34:57 -0500 Subject: [AccessD] Feeding an paramarray to a paramarray In-Reply-To: <003c01c8846e$0006e520$0201a8c0@M90> Message-ID: I hear ya. Not sure where I would use a ParamArray in stuff I do now anyways. It's a neat idea, but it seems that it is really designed to allow you to have multiple arguments to a function, without having to define them. Most of my logic is done in classes now, any functions I use are pretty straightforward, no need to be all that flexible. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, March 12, 2008 1:22 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding an paramarray to a paramarray Well I'm sure it would except I already have a solution that is in place and works - unpacking the array into a collection and passing the collection from that point. A collection can be passed to a function that is expecting a collection, which can pass it to a function expecting a collection. IOW from the point that the array is unpacked into a collection, the collection can be passed as far down a function call chain as necessary without further worry, and always used with a simple for each iterator. A paramarray cannot be passed down a function call chain expecting a paramarray (without work in the receiving function). Neither your solution or mine "just works", both require interior code to perform a conversion at some level. The method I use requires the conversion once, at the top level. Passing a param array requires that conversion at each level of the chain. What I was trying to discover with the thread was whether there is "syntax" built into VBA that allows me to pass a paramarray to a paramarray and use the passed in array directly and without further decomposition. There is not. Personally if I have to perform a conversion, I prefer to convert to a collection and pass that. The conversion to a collection is trivial and readable. John W. Colby Colby Consulting www.ColbyConsulting.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From jwcolby at colbyconsulting.com Wed Mar 12 15:52:07 2008 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 12 Mar 2008 16:52:07 -0400 Subject: [AccessD] Feeding an paramarray to a paramarray In-Reply-To: References: <003c01c8846e$0006e520$0201a8c0@M90> Message-ID: <004c01c88482$f0058e50$0201a8c0@M90> that is exactly what it is for and when it is needed it works well. For example I so stuff like allowing a form open for a set of Groups in my security. Thus in the form's OnOpen I call a function and pass in all the groups that are allowed to open the form. If the currently logged in user is in any of those groups the form stays open else the cancel is set and the OnOpen is exited. There is no way in advance to know what specific groups can open the form, it is hardcoded in the open event of each form. In cases like that it works quite well. 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 Drew Wutka Sent: Wednesday, March 12, 2008 4:35 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Feeding an paramarray to a paramarray I hear ya. Not sure where I would use a ParamArray in stuff I do now anyways. It's a neat idea, but it seems that it is really designed to allow you to have multiple arguments to a function, without having to define them. Most of my logic is done in classes now, any functions I use are pretty straightforward, no need to be all that flexible. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, March 12, 2008 1:22 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding an paramarray to a paramarray Well I'm sure it would except I already have a solution that is in place and works - unpacking the array into a collection and passing the collection from that point. A collection can be passed to a function that is expecting a collection, which can pass it to a function expecting a collection. IOW from the point that the array is unpacked into a collection, the collection can be passed as far down a function call chain as necessary without further worry, and always used with a simple for each iterator. A paramarray cannot be passed down a function call chain expecting a paramarray (without work in the receiving function). Neither your solution or mine "just works", both require interior code to perform a conversion at some level. The method I use requires the conversion once, at the top level. Passing a param array requires that conversion at each level of the chain. What I was trying to discover with the thread was whether there is "syntax" built into VBA that allows me to pass a paramarray to a paramarray and use the passed in array directly and without further decomposition. There is not. Personally if I have to perform a conversion, I prefer to convert to a collection and pass that. The conversion to a collection is trivial and readable. John W. Colby Colby Consulting www.ColbyConsulting.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From markamatte at hotmail.com Wed Mar 12 16:08:14 2008 From: markamatte at hotmail.com (Mark A Matte) Date: Wed, 12 Mar 2008 21:08:14 +0000 Subject: [AccessD] Record Count for all tables PART 2 In-Reply-To: References: Message-ID: Drew, So far beautiful...but I'm having a problem calling the function and get the field names. I think intelisense has confused me...after I pick the table parameter...it drops down true/false:GetAllTableRecordCount (1,True)...but this does not work...says 'expecting ='. Thanks again, Mark A. Matte > Date: Tue, 11 Mar 2008 16:36:05 -0500 > From: DWUTKA at marlow.com > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] Record Count for all tables PART 2 > > Darn, didn't keep the attachment, here it is: > > http://www.marlow.com/GetAllTableRecordCount.zip > > Drew > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka > Sent: Tuesday, March 11, 2008 4:21 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Record Count for all tables PART 2 > > The attached is a .txt doc with a modified version of that function I > posted earlier. The debug.print lines are commented out, instead, the > function creates two tables, one for table and recordcounts, and one for > table/query fields. > > Same function, so you have the option of selecting tables, queries, or > both, and the second optional argument, when set to true, will get you > field information too. > > I'm only getting the basic field type, if you want more information, > like if the fields are indexed, etc, it's just a matter of getting more > data out of the items in the Fields collection. > > Another FYI, this code, when placed in a module, is going to work on the > local database because of currentproject.connection. If you replace all > 'currentproject.connection' with a different (but valid) ADODB > connection object, it will do the same process for any database (Access, > MySQL, Oracle, etc.) (The beauty of ADO) > > Drew > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte > Sent: Tuesday, March 11, 2008 2:27 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Record Count for all tables PART 2 > > > Drew, > > Worked like a charm!!!...But I guess I didn't ask enough > detail...because I was thought I would get the same Documentor > functionality like in A97...anyway... > > Is there a similar way to get field names and types? > > (Sorry for having to ask twice) > > Thanks, > > Mark A. Matte > > > > The information contained in this transmission is intended only for the > person or entity to which it is addressed and may contain II-VI > Proprietary and/or II-VI Business Sensitive material. If you are not the > intended recipient, please contact the sender immediately and destroy > the material in its entirety, whether electronic or hard copy. You are > notified that any review, retransmission, copying, disclosure, > dissemination, or other use of, or taking of any action in reliance upon > this information by persons or entities other than the intended > recipient is prohibited. > > The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com _________________________________________________________________ Connect and share in new ways with Windows Live. http://www.windowslive.com/share.html?ocid=TXT_TAGHM_Wave2_sharelife_012008 From DWUTKA at Marlow.com Wed Mar 12 16:13:55 2008 From: DWUTKA at Marlow.com (Drew Wutka) Date: Wed, 12 Mar 2008 16:13:55 -0500 Subject: [AccessD] Feeding an paramarray to a paramarray In-Reply-To: <004c01c88482$f0058e50$0201a8c0@M90> Message-ID: Ok, a little off the original topic, but you shouldn't hard code permissions in code, because changing permissions then require code change. Instead, have the user's groups in a table, and the form's groups in a table, and have the two collections compare each other. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, March 12, 2008 3:52 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding an paramarray to a paramarray that is exactly what it is for and when it is needed it works well. For example I so stuff like allowing a form open for a set of Groups in my security. Thus in the form's OnOpen I call a function and pass in all the groups that are allowed to open the form. If the currently logged in user is in any of those groups the form stays open else the cancel is set and the OnOpen is exited. There is no way in advance to know what specific groups can open the form, it is hardcoded in the open event of each form. In cases like that it works quite well. 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 Drew Wutka Sent: Wednesday, March 12, 2008 4:35 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Feeding an paramarray to a paramarray I hear ya. Not sure where I would use a ParamArray in stuff I do now anyways. It's a neat idea, but it seems that it is really designed to allow you to have multiple arguments to a function, without having to define them. Most of my logic is done in classes now, any functions I use are pretty straightforward, no need to be all that flexible. Drew The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From DWUTKA at Marlow.com Wed Mar 12 16:28:05 2008 From: DWUTKA at Marlow.com (Drew Wutka) Date: Wed, 12 Mar 2008 16:28:05 -0500 Subject: [AccessD] Record Count for all tables PART 2 In-Reply-To: Message-ID: Drop the parenthesis. So in code: GetAllTableRecordCount 1, True Or Call GetAllTableRecordCount(1,True) GetAllTableRecordCount(1,True) 'This will kick up an 'Expecting =' error Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Wednesday, March 12, 2008 4:08 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Record Count for all tables PART 2 Drew, So far beautiful...but I'm having a problem calling the function and get the field names. I think intelisense has confused me...after I pick the table parameter...it drops down true/false:GetAllTableRecordCount (1,True)...but this does not work...says 'expecting ='. Thanks again, Mark A. Matte > Date: Tue, 11 Mar 2008 16:36:05 -0500 > From: DWUTKA at marlow.com > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] Record Count for all tables PART 2 > > Darn, didn't keep the attachment, here it is: > > http://www.marlow.com/GetAllTableRecordCount.zip > > Drew > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka > Sent: Tuesday, March 11, 2008 4:21 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Record Count for all tables PART 2 > > The attached is a .txt doc with a modified version of that function I > posted earlier. The debug.print lines are commented out, instead, the > function creates two tables, one for table and recordcounts, and one for > table/query fields. > > Same function, so you have the option of selecting tables, queries, or > both, and the second optional argument, when set to true, will get you > field information too. > > I'm only getting the basic field type, if you want more information, > like if the fields are indexed, etc, it's just a matter of getting more > data out of the items in the Fields collection. > > Another FYI, this code, when placed in a module, is going to work on the > local database because of currentproject.connection. If you replace all > 'currentproject.connection' with a different (but valid) ADODB > connection object, it will do the same process for any database (Access, > MySQL, Oracle, etc.) (The beauty of ADO) > > Drew > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte > Sent: Tuesday, March 11, 2008 2:27 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Record Count for all tables PART 2 > > > Drew, > > Worked like a charm!!!...But I guess I didn't ask enough > detail...because I was thought I would get the same Documentor > functionality like in A97...anyway... > > Is there a similar way to get field names and types? > > (Sorry for having to ask twice) > > Thanks, > > Mark A. Matte > > > > The information contained in this transmission is intended only for the > person or entity to which it is addressed and may contain II-VI > Proprietary and/or II-VI Business Sensitive material. If you are not the > intended recipient, please contact the sender immediately and destroy > the material in its entirety, whether electronic or hard copy. You are > notified that any review, retransmission, copying, disclosure, > dissemination, or other use of, or taking of any action in reliance upon > this information by persons or entities other than the intended > recipient is prohibited. > > The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com _________________________________________________________________ Connect and share in new ways with Windows Live. http://www.windowslive.com/share.html?ocid=TXT_TAGHM_Wave2_sharelife_012 008 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From accessd at shaw.ca Wed Mar 12 17:59:06 2008 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 12 Mar 2008 15:59:06 -0700 Subject: [AccessD] Msadodc.ocx - or not In-Reply-To: <0F978DF74B416B44A351B9143EB0FD33037D7BDF@MUKPBCC1XMB0103.collab.barclayscorp.com> References: <009801c8844b$c16dc7b0$8abea8c0@XPS> <0F978DF74B416B44A351B9143EB0FD33037D7BDF@MUKPBCC1XMB0103.collab.barclayscorp.com> Message-ID: <9A02DD12D65D4E088925D4FE5689C74B@creativesystemdesigns.com> Hi Roz: I will confirm with you Roz on Bank speed. It is something you can not perceive with the naked eye. I work as a small subcontractor for a number of Banks and even though the servers may be the state-of-the-art, the server software is many years out of date. They all use Windows2000 OS, after NT was reluctantly abandoned but my understanding is that they have started on researching 2003 and it will take a couple of years before it is tentatively implemented. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of rosalyn.clarke at barclays.com Sent: Wednesday, March 12, 2008 7:39 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Msadodc.ocx - or not Jim - at risk of vexing the list by wandering off topic - ! They have a fantastically complicated IT support arrangement. In fact arrangement is too gracious a word. Because the bank is so big, and has so many sites and so many legacy systems, finding out who supports something can be fraught. There are local support people, central support people (two entire sets), outsourced onshore support for specific systems or projects, offshore support for others. I'm learning not to think of this as a company, but as about 25 companies wrestling a big sack. The project I'm working on is staffed by a mixture of contractors and permanents. Some are small independents (like me) some are the big guns (Accenture) and some come bundled with a particular software package or whatever. Everyone wants their butt covered! It's fun. Roz -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: 12 March 2008 14:17 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Msadodc.ocx - or not Roz, I'm curious; do they outsource their IT support? What I've found is that if so, things move at a glacial pace. Outsourcing companies want a change notice on *everything*, then full testing, etc because they want to cover their butt contract wise (which includes penalty clauses for non-performance). When I deal with a client that has outsourced, it takes a minimum of a week to get anything done unless it's a crises and they are seen as bailing you out. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Roz Clarke Sent: Tuesday, March 11, 2008 6:43 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Msadodc.ocx - or not It's the procedure - you have to put in a request, they schedule the work, they do the work, it gets scheduled into their testing programme - Lord knows why it's so expensive, except that the company is a monolith and it does. not. move. easily. But this is a project that affects 20,000 users so I suppose some bureacracy is inevitable. ----- Original Message ---- From: Jim Lawrence To: Access Developers discussion and problem solving Sent: Tuesday, 11 March, 2008 10:12:10 PM Subject: Re: [AccessD] Msadodc.ocx - or not Hi Roz: How anyone would dare charge ?8000 for 10 minutes work is beyond comprehension. At ?48000 (or 65,000.00 US) per hour, the system guys probably makes more than you or I. ;-) If the application connects with an Oracle DB, Access must have direct ADO-OLE connections or no one will want to use it.... trust me an ODBC link doesn't cut it. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of rosalyn.clarke at barclays.com Sent: Tuesday, March 11, 2008 3:37 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Msadodc.ocx - or not Thanks Jim, that's really useful. For some reason, though other ADO tools are available and other .ocx files are available, this one is not installed. I have raised a request to have it added, but have been told that adding anything to the new environment takes 8-12 weeks and costs ?8000. I am a small cog in a very big machine. :( -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: 11 March 2008 02:40 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Msadodc.ocx - or not Hi Roz: I have used these controls ADO-OLE for years (since 1997) but generally with MS SQL databases. There is no advantage to using these with MDB as they are not as optimized. These controls should work in any Windows environment. They install by default and are stored within your Program Files directory > common files > System > ADO. I found these controls great as no matter where a remote system was setup the applications would always work without any further management. That is why I find it hard to believe they do not work in your current environment. Another good reason to use them other than they are so standardized virtually the same code will work with any Oracle, MS SQL and MDB database... or any DB for that matter There is also a whole group of great ADO functionality available like steaming controls for images, video and large files and data shaping capabilities (pseudo cubes and data arrays) that are very fast. I would recommend you get this common directory block installed on your new system and get the latest MSADOxxx files registered. It would be far better than having to redo all the code and still not have a superior product. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of rosalyn.clarke at barclays.com Sent: Monday, March 10, 2008 10:30 AM To: accessd at databaseadvisors.com Subject: [AccessD] Msadodc.ocx - or not Hi all I have a bunch of Access databases I need to migrate from a local environment at one of my client's offices to their new standardised citrix environment. The developers have made liberal use of msadodc.ocx controls, but this control is not included in the new environment. I've never used an active x data control so I'm not sure what I'm losing by ditching these. Is there a performance benefit to using the data control? Sample of how it's used below (long - please snip if responding!!) TIA Roz -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This e-mail and any attachments are confidential and intended solely for the addressee and may also be privileged or exempt from disclosure under applicable law. If you are not the addressee, or have received this e-mail in error, please notify the sender immediately, delete it from your system and do not copy, disclose or otherwise act upon any part of this e-mail or its attachments. Internet communications are not guaranteed to be secure or virus-free. The Barclays Group does not accept responsibility for any loss arising from unauthorised access to, or interference with, any Internet communications by any third party, or from the transmission of any viruses. Replies to this e-mail may be monitored by the Barclays Group for operational or business reasons. Any opinion or other information in this e-mail or its attachments that does not relate to the business of the Barclays Group is personal to the sender and is not given or endorsed by the Barclays Group. Barclays Bank PLC.Registered in England and Wales (registered no. 1026167). Registered Office: 1 Churchill Place, London, E14 5HP, United Kingdom. Barclays Bank PLC is authorised and regulated by the Financial Services Authority. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com __________________________________________________________ Sent from Yahoo! Mail. The World's Favourite Email http://uk.docs.yahoo.com/nowyoucan.html -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This e-mail and any attachments are confidential and intended solely for the addressee and may also be privileged or exempt from disclosure under applicable law. If you are not the addressee, or have received this e-mail in error, please notify the sender immediately, delete it from your system and do not copy, disclose or otherwise act upon any part of this e-mail or its attachments. Internet communications are not guaranteed to be secure or virus-free. The Barclays Group does not accept responsibility for any loss arising from unauthorised access to, or interference with, any Internet communications by any third party, or from the transmission of any viruses. Replies to this e-mail may be monitored by the Barclays Group for operational or business reasons. Any opinion or other information in this e-mail or its attachments that does not relate to the business of the Barclays Group is personal to the sender and is not given or endorsed by the Barclays Group. Barclays Bank PLC.Registered in England and Wales (registered no. 1026167). Registered Office: 1 Churchill Place, London, E14 5HP, United Kingdom. Barclays Bank PLC is authorised and regulated by the Financial Services Authority. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Wed Mar 12 18:07:24 2008 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 12 Mar 2008 19:07:24 -0400 Subject: [AccessD] Security permissions - was RE: Feeding an paramarray to a paramarray In-Reply-To: References: <004c01c88482$f0058e50$0201a8c0@M90> Message-ID: <005c01c88495$d5e5cd60$0201a8c0@M90> LOL, thanks for the advice. ;-) That is the next iteration. Do you perhaps do this already? I am struggling with how to manage the various permutations in a functional user interface (wizard) for setting such permissions. Any given form has a "cancel" which prevents opening, as well as the four properties - AllowAdditions, AllowDeletions, AllowEdits and DataEntry. My LWS allows setting these properties but making them table driven makes the editing of the tables necessary before a form can have such security. My experience so far has been that the groups that can perform specific functions in forms are rather stable and so having them hard coded is not a big issue. The bigger issue is KNOWING what the permissions are. For that I am working on having the forms log their permissions as they open (through the LWS code). Thus while the permissions are hard coded, there is a set of tables which can display the permissions so you know where to go to make needed changes. Loading the permissions from tables is a goal though. Unfortunately (or fortunately) the LWS also allows setting permissions for controls on forms. Thus the problem gets radically bigger immediately. 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 Drew Wutka Sent: Wednesday, March 12, 2008 5:14 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Feeding an paramarray to a paramarray Ok, a little off the original topic, but you shouldn't hard code permissions in code, because changing permissions then require code change. Instead, have the user's groups in a table, and the form's groups in a table, and have the two collections compare each other. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, March 12, 2008 3:52 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding an paramarray to a paramarray that is exactly what it is for and when it is needed it works well. For example I so stuff like allowing a form open for a set of Groups in my security. Thus in the form's OnOpen I call a function and pass in all the groups that are allowed to open the form. If the currently logged in user is in any of those groups the form stays open else the cancel is set and the OnOpen is exited. There is no way in advance to know what specific groups can open the form, it is hardcoded in the open event of each form. In cases like that it works quite well. John W. Colby Colby Consulting www.ColbyConsulting.com From ebarro at verizon.net Wed Mar 12 18:48:22 2008 From: ebarro at verizon.net (Eric Barro) Date: Wed, 12 Mar 2008 16:48:22 -0700 Subject: [AccessD] Msadodc.ocx - or not In-Reply-To: <9A02DD12D65D4E088925D4FE5689C74B@creativesystemdesigns.com> Message-ID: <0JXN00BI764QDOK0@vms044.mailsrvcs.net> I believe you can blame SARBOX or Sarbanes-Oxley for all of this pain. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Wednesday, March 12, 2008 3:59 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Msadodc.ocx - or not Hi Roz: I will confirm with you Roz on Bank speed. It is something you can not perceive with the naked eye. I work as a small subcontractor for a number of Banks and even though the servers may be the state-of-the-art, the server software is many years out of date. They all use Windows2000 OS, after NT was reluctantly abandoned but my understanding is that they have started on researching 2003 and it will take a couple of years before it is tentatively implemented. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of rosalyn.clarke at barclays.com Sent: Wednesday, March 12, 2008 7:39 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Msadodc.ocx - or not Jim - at risk of vexing the list by wandering off topic - ! They have a fantastically complicated IT support arrangement. In fact arrangement is too gracious a word. Because the bank is so big, and has so many sites and so many legacy systems, finding out who supports something can be fraught. There are local support people, central support people (two entire sets), outsourced onshore support for specific systems or projects, offshore support for others. I'm learning not to think of this as a company, but as about 25 companies wrestling a big sack. The project I'm working on is staffed by a mixture of contractors and permanents. Some are small independents (like me) some are the big guns (Accenture) and some come bundled with a particular software package or whatever. Everyone wants their butt covered! It's fun. Roz -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: 12 March 2008 14:17 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Msadodc.ocx - or not Roz, I'm curious; do they outsource their IT support? What I've found is that if so, things move at a glacial pace. Outsourcing companies want a change notice on *everything*, then full testing, etc because they want to cover their butt contract wise (which includes penalty clauses for non-performance). When I deal with a client that has outsourced, it takes a minimum of a week to get anything done unless it's a crises and they are seen as bailing you out. Jim. From Darryl.Collins at coles.com.au Thu Mar 13 01:27:56 2008 From: Darryl.Collins at coles.com.au (Darryl Collins) Date: Thu, 13 Mar 2008 17:27:56 +1100 Subject: [AccessD] TabControlSheet Page Event? Message-ID: <49DFE57FB126044B8A8B934E7AEA09ED09FD705E@WPEXCH05.colesmyer.ad.cmltd.net.au> Thanks everyone, Been up in Sydney for the Excel Conference so haven't been able to test this out, but it is looking most promising. Cheers Darryl :) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of jwcolby Sent: Tuesday, 11 March 2008 10:19 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] TabControlSheet Page Event? Darryl The following code is what I used in the LWS you have seen me mention. The tab controls themselves do not have a click event, and while the tab form does, it does not fire when you click on a tab, but rather when you click on some part of the tab control itself - mostly useless IMHO. So we use the change event which does fire when you click a tab page. This code assumes that ONLY subforms are on the tabs, if you have other controls then you will need to do a check that the control selected is in fact a subform. pgOld.Controls(0).SourceObject = "" I pull the code out into a function because I manually load the main form on the main tab. I also UNLOAD the form on the tab clicked off of. I do this for a variety of reasons including the fact that it makes things faster and uses less resources. Enjoy, '--------------------------------------------------------------------------- ------------ ' Procedure : mLoadsubform ' Author : jwcolby ' Date : 3/6/2008 ' Purpose : Implements Just-In-Time subforms '--------------------------------------------------------------------------- ------------ ' Private Function mLoadsubform() Dim pgNew As Page Dim pgOld As Page Static intOldPageIndex As Integer On Error GoTo mLoadsubform_Error ' 'Get the currently selected page Set pgNew = tabLWSCtl.Pages(tabLWSCtl.Value) Set pgOld = tabLWSCtl.Pages(intOldPageIndex) ' 'Unload the old page's subform ' pgOld.Controls(0).SourceObject = "" ' 'Move the tag into the source object. This will cause the subform to load 'assuming that the control is a subform control of course pgNew.Controls(0).SourceObject = pgNew.Controls(0).Tag intOldPageIndex = tabLWSCtl.Value mLoadsubform_Exit: On Error Resume Next Exit Function mLoadsubform_Error: Select Case Err Case 0 '.insert Errors you wish to ignore here Resume Next Case Else '.All other errors will trap Beep LogErr Err.Number, Err.Description, Erl, Me.Name, "mLoadsubform" Resume mLoadsubform_Exit End Select Resume 0 '.FOR TROUBLESHOOTING End Function '--------------------------------------------------------------------------- ------------ ' Procedure : tabLWSCtl_Change ' Author : jwcolby ' Date : 3/6/2008 ' Purpose : Implements Just-In-Time subforms '--------------------------------------------------------------------------- ------------ ' Private Sub tabLWSCtl_Change() mLoadsubform tabLWSCtl_Change_Exit: On Error Resume Next Exit Sub tabLWSCtl_Change_Error: Select Case Err Case 0 '.insert Errors you wish to ignore here Resume Next Case Else '.All other errors will trap Beep LogErr Err.Number, Err.Description, Erl, Me.Name, "tabLWSCtl_Change" Resume tabLWSCtl_Change_Exit End Select Resume 0 '.FOR TROUBLESHOOTING End Sub 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 Darryl Collins Sent: Tuesday, March 11, 2008 12:24 AM To: Access Developers discussion and problem solving Subject: [AccessD] TabControlSheet Page Event? Hey all, I am stuck on with this, It is probably easy but been up since 4am (it is now 3:20pm) so I am not the sharpest tool in the shed right now! I have a form with sheet tabs, currently when a user opens the form it is populating all the tabs with data, but this seems a lot of overhead as some users will only look at one or two of the Tab pages. I wanted to capture when a user click on the tab page so I can call some VBA that will load the sub forms for that page only. I have the code to populate the sheet tabs etc, but I cannot seem to capture the "click on page tab" event at all. I can get "Click on TabControlSheet" but that is for the whole sheet and/or other such unhelpful combos of events. I thought this would be simple, but maybe I am wrong? '------------------------------------------------ ' Something like: Private Sub TabControlSheet.Pages(2)_Click() ' Then call the modules I want End sub '------------------------------------------------ would be great, but that doesn't seem to be an option. Any advice? cheers Darryl. This email and any attachments may contain privileged and confidential information and are intended for the named addressee only. If you have received this e-mail in error, please notify the sender and delete this e-mail immediately. Any confidentiality, privilege or copyright is not waived or lost because this e-mail has been sent to you in error. It is your responsibility to check this e-mail and any attachments for viruses. No warranty is made that this material is free from computer virus or any other defect or error. Any loss/damage incurred by using this material is not the sender's responsibility. The sender's entire liability will be limited to resupplying the material. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This email and any attachments may contain privileged and confidential information and are intended for the named addressee only. If you have received this e-mail in error, please notify the sender and delete this e-mail immediately. Any confidentiality, privilege or copyright is not waived or lost because this e-mail has been sent to you in error. It is your responsibility to check this e-mail and any attachments for viruses. No warranty is made that this material is free from computer virus or any other defect or error. Any loss/damage incurred by using this material is not the sender's responsibility. The sender's entire liability will be limited to resupplying the material. From fuller.artful at gmail.com Thu Mar 13 07:25:05 2008 From: fuller.artful at gmail.com (Arthur Fuller) Date: Thu, 13 Mar 2008 08:25:05 -0400 Subject: [AccessD] Access 2003 problem with pivotchart Message-ID: <29f585dd0803130525l77b69124h8a05aa6889996d71@mail.gmail.com> I'm not sure whether my setup is gibbled or what, but I cannot go into PivotChart view on a form. I don't get any error messages or anything, just a simple refusal to switch to that view. I'm using the Northwind sample database and I can't make it happen. Any idea what might be wrong? TIA, Arthur From paul.hartland at fsmail.net Thu Mar 13 07:31:29 2008 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Thu, 13 Mar 2008 13:31:29 +0100 (CET) Subject: [AccessD] OT-Get Value Of @@ROWCOUNT Using VB6 Calling SQL Server 2005 Update Stored Procedure Message-ID: <20041434.34941205411489623.JavaMail.www@wwinf3107> To all, I have a vb6 app that executes an update SP on SQL 2005 as below: Genesis_Update_LogOnID ( @nvPayroll [nvarchar](100) ) AS UPDATE tblPersonnel SET LogOnID = SQ1.NewLogOn, NewRASUser = 1 FROM (SELECT dbo.tblPersonnel.PayrollNo, dbo.tblPersonnel.LogOnID, dbo.tblPersonnel.FinishDate, dbo.tblPersonnel.NewRASUser, CASE WHEN CHARINDEX(' ', [Forename/s]) < 1 THEN [Forename/s] ELSE LEFT([Forename/s], CHARINDEX(' ', [Forename/s]) - 1) END + '.' + CASE WHEN CHARINDEX(' ', [Surname]) < 1 THEN [Surname] ELSE LEFT([Surname], CHARINDEX(' ', [Surname]) - 1) END AS NewLogOn FROM dbo.tblPersonnel INNER JOIN dbo.tblPersonnelCategoriesSelected ON dbo.tblPersonnel.PayrollNo = dbo.tblPersonnelCategoriesSelected.PayrollNo INNER JOIN dbo.tblPersonnelCategories ON dbo.tblPersonnelCategoriesSelected.CategoryID = dbo.tblPersonnelCategories.CategoryID WHERE (dbo.tblPersonnelCategories.CategoryID <> 100) AND (dbo.tblPersonnelCategories.CategoryID <> 101) AND (dbo.tblPersonnelCategories.CategoryID <> 102) AND (dbo.tblPersonnelCategories.ManagementStaff = 1) AND dbo.tblPersonnel.PayrollNo = @nvPayroll GROUP BY dbo.tblPersonnel.PayrollNo, dbo.tblPersonnel.LogOnID, dbo.tblPersonnel.FinishDate, dbo.tblPersonnel.NewRASUser, CASE WHEN CHARINDEX(' ', [Forename/s]) < 1 THEN [Forename/s] ELSE LEFT([Forename/s], CHARINDEX(' ', [Forename/s]) - 1) END + '.' + CASE WHEN CHARINDEX(' ', [Surname]) < 1 THEN [Surname] ELSE LEFT([Surname], CHARINDEX(' ', [Surname]) - 1) END HAVING (dbo.tblPersonnel.LogOnID IS NULL OR dbo.tblPersonnel.LogOnID = N'' OR dbo.tblPersonnel.LogOnID = N' ') AND (dbo.tblPersonnel.FinishDate IS NULL) ) AS SQ1 The calling line is mydataconn.execute("Genesis_Update_LogOnID '" & PublicPayrollNo & "'") I have never really used @@ROWCOUNT and returning values before, could someone tell me how to modify my SP and calling line in VB6 to return the value of @@ROWCOUNT, have tried looking on the web but can't seem to find exactly what I am looking for (mind you I am having a few blonde moments today) Thanks in advance for all your help on this.... Paul Hartland paul.hartland at fsmail.net 07730 523179 From dwaters at usinternet.com Thu Mar 13 08:00:02 2008 From: dwaters at usinternet.com (Dan Waters) Date: Thu, 13 Mar 2008 08:00:02 -0500 Subject: [AccessD] Access 2003 problem with pivotchart In-Reply-To: <29f585dd0803130525l77b69124h8a05aa6889996d71@mail.gmail.com> References: <29f585dd0803130525l77b69124h8a05aa6889996d71@mail.gmail.com> Message-ID: <000f01c8850a$2786ec20$0300a8c0@danwaters> The form's property 'Allow PivotChart View' might be set to No. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Thursday, March 13, 2008 7:25 AM To: Access Developers discussion and problem solving Subject: [AccessD] Access 2003 problem with pivotchart I'm not sure whether my setup is gibbled or what, but I cannot go into PivotChart view on a form. I don't get any error messages or anything, just a simple refusal to switch to that view. I'm using the Northwind sample database and I can't make it happen. Any idea what might be wrong? TIA, Arthur -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From fuller.artful at gmail.com Thu Mar 13 08:08:19 2008 From: fuller.artful at gmail.com (Arthur Fuller) Date: Thu, 13 Mar 2008 09:08:19 -0400 Subject: [AccessD] OT-Get Value Of @@ROWCOUNT Using VB6 Calling SQL Server 2005 Update Stored Procedure In-Reply-To: <20041434.34941205411489623.JavaMail.www@wwinf3107> References: <20041434.34941205411489623.JavaMail.www@wwinf3107> Message-ID: <29f585dd0803130608o22222179i25ec1a2909089240@mail.gmail.com> The simplest thing to do is declare a variable in VB6 code, then pass it in as an OUT parameter. Sprocs recognize two kinds of parameters, IN and OUT. You can set the value of any of the OUT parameters within your sproc, and then when VB6 gets control again it will have access to the values. Like so: Dim lngMyVar as Long Create Procedure Genesis_Update_LogOnID ( @nvPayroll [nvarchar](100), @myOutVar [int] OUT ) .... -- somewhere near the end of your procedure SET @myVar = @@RowCount Now when you call your procedure, pass both the logon and the lngMyVar. When SQL finishes, lngMyVar will have the value you want. hth, Arthur On 3/13/08, paul.hartland at fsmail.net wrote: > > To all, > > I have a vb6 app that executes an update SP on SQL 2005 as below: > Genesis_Update_LogOnID > ( > @nvPayroll [nvarchar](100) > ) > AS > UPDATE tblPersonnel > SET LogOnID = SQ1.NewLogOn, NewRASUser = 1 > FROM (SELECT dbo.tblPersonnel.PayrollNo, dbo.tblPersonnel.LogOnID, > dbo.tblPersonnel.FinishDate, dbo.tblPersonnel.NewRASUser, CASE WHEN > CHARINDEX(' ', > [Forename/s]) < 1 THEN [Forename/s] ELSE LEFT([Forename/s], CHARINDEX(' ', > [Forename/s]) - 1) END + '.' + CASE WHEN CHARINDEX(' ', [Surname]) > < 1 THEN [Surname] ELSE LEFT([Surname], CHARINDEX(' ', [Surname]) - 1) END > AS NewLogOn > FROM dbo.tblPersonnel INNER JOIN > dbo.tblPersonnelCategoriesSelected ON dbo.tblPersonnel.PayrollNo = > dbo.tblPersonnelCategoriesSelected.PayrollNo INNER JOIN > dbo.tblPersonnelCategories ON > dbo.tblPersonnelCategoriesSelected.CategoryID = > dbo.tblPersonnelCategories.CategoryID > WHERE (dbo.tblPersonnelCategories.CategoryID <> 100) AND ( > dbo.tblPersonnelCategories.CategoryID <> 101) AND > (dbo.tblPersonnelCategories.CategoryID <> 102) AND ( > dbo.tblPersonnelCategories.ManagementStaff = 1) AND > dbo.tblPersonnel.PayrollNo = @nvPayroll > GROUP BY dbo.tblPersonnel.PayrollNo, dbo.tblPersonnel.LogOnID, > dbo.tblPersonnel.FinishDate, dbo.tblPersonnel.NewRASUser, CASE WHEN > CHARINDEX(' ', > [Forename/s]) < 1 THEN [Forename/s] ELSE LEFT([Forename/s], CHARINDEX(' ', > [Forename/s]) - 1) END + '.' + CASE WHEN CHARINDEX(' ', [Surname]) > < 1 THEN [Surname] ELSE LEFT([Surname], CHARINDEX(' ', [Surname]) - 1) END > HAVING (dbo.tblPersonnel.LogOnID IS NULL OR > dbo.tblPersonnel.LogOnID = N'' OR > dbo.tblPersonnel.LogOnID = N' ') AND (dbo.tblPersonnel.FinishDate IS NULL) > ) AS SQ1 > The calling line is mydataconn.execute("Genesis_Update_LogOnID '" & > PublicPayrollNo & "'") > I have never really used @@ROWCOUNT and returning values before, could > someone tell me how to modify my SP and calling line in VB6 to return the > value of @@ROWCOUNT, have tried looking on the web but can't seem to find > exactly what I am looking for (mind you I am having a few blonde moments > today) > > Thanks in advance for all your 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 fuller.artful at gmail.com Thu Mar 13 08:09:11 2008 From: fuller.artful at gmail.com (Arthur Fuller) Date: Thu, 13 Mar 2008 09:09:11 -0400 Subject: [AccessD] Access 2003 problem with pivotchart In-Reply-To: <000f01c8850a$2786ec20$0300a8c0@danwaters> References: <29f585dd0803130525l77b69124h8a05aa6889996d71@mail.gmail.com> <000f01c8850a$2786ec20$0300a8c0@danwaters> Message-ID: <29f585dd0803130609v4485b3b6j9ef548775a96db62@mail.gmail.com> Unfortunately, it is set to Yes and still no joy. Arthur On 3/13/08, Dan Waters wrote: > > The form's property 'Allow PivotChart View' might be set to No. > > Dan > From EdTesiny at oasas.state.ny.us Thu Mar 13 08:32:44 2008 From: EdTesiny at oasas.state.ny.us (Tesiny, Ed) Date: Thu, 13 Mar 2008 09:32:44 -0400 Subject: [AccessD] VBA and SQL for Access In-Reply-To: References: Message-ID: My, how time flies.... Ed Tesiny EdTesiny at oasas.state.ny.us > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka > Sent: Wednesday, March 12, 2008 4:30 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] VBA and SQL for Access > > http://www.marlow.com/VBA_Training.zip (Haven't had my website up in > years) > > Drew > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Tesiny, Ed > Sent: Wednesday, March 12, 2008 1:16 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] VBA and SQL for Access > > Drew Wutka had a nice little 40+ page tutorial on his web > site where you > could get your feet wet. Couldn't find a kink for you but maybe Drew > does. If not, I'll try to hunt it up. > > Ed Tesiny > EdTesiny at oasas.state.ny.us > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > > Susan Harkins > > Sent: Wednesday, March 12, 2008 2:05 PM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] VBA and SQL for Access > > > > Okay, I'm going to step in now because nobody seems to really > > want to help > > Cynthia with the problem she has at hand, which is learning > > VBA/SQL > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > The information contained in this transmission is intended > only for the person or entity to which it is addressed and > may contain II-VI Proprietary and/or II-VI Business Sensitive > material. If you are not the intended recipient, please > contact the sender immediately and destroy the material in > its entirety, whether electronic or hard copy. You are > notified that any review, retransmission, copying, > disclosure, dissemination, or other use of, or taking of any > action in reliance upon this information by persons or > entities other than the intended recipient is prohibited. > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From dwaters at usinternet.com Thu Mar 13 08:36:19 2008 From: dwaters at usinternet.com (Dan Waters) Date: Thu, 13 Mar 2008 08:36:19 -0500 Subject: [AccessD] Access 2003 problem with pivotchart In-Reply-To: <29f585dd0803130609v4485b3b6j9ef548775a96db62@mail.gmail.com> References: <29f585dd0803130525l77b69124h8a05aa6889996d71@mail.gmail.com><000f01c8850a$2786ec20$0300a8c0@danwaters> <29f585dd0803130609v4485b3b6j9ef548775a96db62@mail.gmail.com> Message-ID: <001301c8850f$388ae710$0300a8c0@danwaters> This would be quite a surprise, but could the form's open or load code be setting the property to No? -----Original Message----- Subject: Re: [AccessD] Access 2003 problem with pivotchart Unfortunately, it is set to Yes and still no joy. Arthur On 3/13/08, Dan Waters wrote: > > The form's property 'Allow PivotChart View' might be set to No. > > Dan > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Thu Mar 13 08:44:11 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 13 Mar 2008 14:44:11 +0100 Subject: [AccessD] VBA and SQL for Access Message-ID: Hi Drew You could create a public "marlow" folder at SkyDrive: http://skydrive.live.com/ You have 5 GB free space with max. file size of 50 MB. /gustav >>> EdTesiny at oasas.state.ny.us 13-03-2008 14:32 >>> My, how time flies.... Ed Tesiny EdTesiny at oasas.state.ny.us > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka > Sent: Wednesday, March 12, 2008 4:30 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] VBA and SQL for Access > > http://www.marlow.com/VBA_Training.zip (Haven't had my website up in > years) > > Drew > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Tesiny, Ed > Sent: Wednesday, March 12, 2008 1:16 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] VBA and SQL for Access > > Drew Wutka had a nice little 40+ page tutorial on his web > site where you > could get your feet wet. Couldn't find a kink for you but maybe Drew > does. If not, I'll try to hunt it up. > > Ed Tesiny > EdTesiny at oasas.state.ny.us From fuller.artful at gmail.com Thu Mar 13 08:47:39 2008 From: fuller.artful at gmail.com (Arthur Fuller) Date: Thu, 13 Mar 2008 09:47:39 -0400 Subject: [AccessD] Access 2003 problem with pivotchart In-Reply-To: <001301c8850f$388ae710$0300a8c0@danwaters> References: <29f585dd0803130525l77b69124h8a05aa6889996d71@mail.gmail.com> <000f01c8850a$2786ec20$0300a8c0@danwaters> <29f585dd0803130609v4485b3b6j9ef548775a96db62@mail.gmail.com> <001301c8850f$388ae710$0300a8c0@danwaters> Message-ID: <29f585dd0803130647t13b4cfby1d21f7a84fc4b3ad@mail.gmail.com> There is no code at all behind the form. I just selected the Sales by Category query and clicked Form and then PivotChart and got a simple form. I checked in design mode and verified the Allow-View settings, and no joy. So code is not doing it, and neither are the view properties. A. On 3/13/08, Dan Waters wrote: > > This would be quite a surprise, but could the form's open or load code be > setting the property to No? > > > From dwaters at usinternet.com Thu Mar 13 09:09:31 2008 From: dwaters at usinternet.com (Dan Waters) Date: Thu, 13 Mar 2008 09:09:31 -0500 Subject: [AccessD] Access 2003 problem with pivotchart In-Reply-To: <29f585dd0803130647t13b4cfby1d21f7a84fc4b3ad@mail.gmail.com> References: <29f585dd0803130525l77b69124h8a05aa6889996d71@mail.gmail.com><000f01c8850a$2786ec20$0300a8c0@danwaters><29f585dd0803130609v4485b3b6j9ef548775a96db62@mail.gmail.com><001301c8850f$388ae710$0300a8c0@danwaters> <29f585dd0803130647t13b4cfby1d21f7a84fc4b3ad@mail.gmail.com> Message-ID: <000a01c88513$db7e75f0$0300a8c0@danwaters> Rats! - that was the total of my knowledge of how to view a pivot chart. Dan -----Original Message----- Subject: Re: [AccessD] Access 2003 problem with pivotchart There is no code at all behind the form. I just selected the Sales by Category query and clicked Form and then PivotChart and got a simple form. I checked in design mode and verified the Allow-View settings, and no joy. So code is not doing it, and neither are the view properties. A. From EdTesiny at oasas.state.ny.us Thu Mar 13 09:50:20 2008 From: EdTesiny at oasas.state.ny.us (Tesiny, Ed) Date: Thu, 13 Mar 2008 10:50:20 -0400 Subject: [AccessD] VBA and SQL for Access & some OT In-Reply-To: References: Message-ID: Thanks Gustav, this looks interesting... BTW Should I buy some Danish Kroner prior to arriving in Denmark, I hate getting to a city and then trying to hunt down a bank or ATM machine. Also, are credit cards generally accepted, if so, any accepted more than others. Sorry for the OT question. Ed Ed Tesiny EdTesiny at oasas.state.ny.us > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Gustav Brock > Sent: Thursday, March 13, 2008 9:44 AM > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] VBA and SQL for Access > > Hi Drew > > You could create a public "marlow" folder at SkyDrive: > > http://skydrive.live.com/ > > You have 5 GB free space with max. file size of 50 MB. > > /gustav > > >>> EdTesiny at oasas.state.ny.us 13-03-2008 14:32 >>> > My, how time flies.... > > Ed Tesiny > EdTesiny at oasas.state.ny.us > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Drew Wutka > > Sent: Wednesday, March 12, 2008 4:30 PM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] VBA and SQL for Access > > > > http://www.marlow.com/VBA_Training.zip (Haven't had my website up in > > years) > > > > Drew > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Tesiny, Ed > > Sent: Wednesday, March 12, 2008 1:16 PM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] VBA and SQL for Access > > > > Drew Wutka had a nice little 40+ page tutorial on his web > > site where you > > could get your feet wet. Couldn't find a kink for you but > maybe Drew > > does. If not, I'll try to hunt it up. > > > > Ed Tesiny > > EdTesiny at oasas.state.ny.us > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From fuller.artful at gmail.com Thu Mar 13 10:15:08 2008 From: fuller.artful at gmail.com (Arthur Fuller) Date: Thu, 13 Mar 2008 11:15:08 -0400 Subject: [AccessD] Access 14 Book Authors Wanted In-Reply-To: <200803072018.m27KIEQm021361@databaseadvisors.com> References: <200803072018.m27KIEQm021361@databaseadvisors.com> Message-ID: <29f585dd0803130815s4f69560h6346893ca3d32118@mail.gmail.com> Did anyone besides me go for this? And hear back? If so, please msg me off-list. Thanks, Arthur On 3/7/08, Robert L. Stewart wrote: > > I sent my information in to them. It has been too long > since I wrote part of the Teach Yourself Access 97 in 21 days. > I really should do it again. :-) > > > At 12:00 PM 3/7/2008, you wrote: > >Date: Fri, 7 Mar 2008 15:49:17 +0000 > >From: Martin W Reid > > >Subject: Re: [AccessD] Access 14 Book Authors Wanted > > >To: Access Developers discussion and problem solving > > > > >Message-ID: > > > > > > > >Content-Type: text/plain; charset="us-ascii" > > > > >Worth doing even for the Interest only. I have been involved in a > >few of these and its interesting to see how the software develops. > >Some interesting stuff re Access as well! > > > >Martin > > > > > > > > > >Martin WP Reid > >Information Services > >Queen's University > >Riddel Hall > >185 Stranmillis Road > >Belfast > >BT9 5EE > >Tel : 02890974465 > >Email : mwp.reid at qub.ac.uk > >________________________________________ > > >From: accessd-bounces at databaseadvisors.com > > >[accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters > > >[dwaters at usinternet.com] > >Sent: 07 March 2008 13:35 > > >To: 'Access Developers discussion and problem solving' > > >Subject: [AccessD] Access 14 Book Authors Wanted > > > > >FYI . . . > > > > > http://blogs.msdn.com/access/archive/2008/03/06/calling-all-access-book-auth > >ors.aspx > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jwcolby at colbyconsulting.com Thu Mar 13 10:21:29 2008 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 13 Mar 2008 11:21:29 -0400 Subject: [AccessD] Anyone out there having bad internet problems today? Message-ID: <000401c8851d$ea4fe730$0201a8c0@M90> John W. Colby Colby Consulting www.ColbyConsulting.com From DWUTKA at Marlow.com Thu Mar 13 10:24:57 2008 From: DWUTKA at Marlow.com (Drew Wutka) Date: Thu, 13 Mar 2008 10:24:57 -0500 Subject: [AccessD] VBA and SQL for Access In-Reply-To: Message-ID: LOL. Actually, I have a webserver at home, I just don't have a static IP for it. I run a website, that runs of a URL redirect. The IP address only chances once every few months. However, I work for Marlow, and I'm the webmaster, so I have direct access to it's drive (and I mean direct, I can bring it's drive up on our network). So to post a file for someone, I just copy the file to the root of the web folder and post a link http://www.marlow.com/Whateverfilename Pretty easy, and that drive has about 80 gig free. ;) Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, March 13, 2008 8:44 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] VBA and SQL for Access Hi Drew You could create a public "marlow" folder at SkyDrive: http://skydrive.live.com/ You have 5 GB free space with max. file size of 50 MB. /gustav >>> EdTesiny at oasas.state.ny.us 13-03-2008 14:32 >>> My, how time flies.... Ed Tesiny EdTesiny at oasas.state.ny.us > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka > Sent: Wednesday, March 12, 2008 4:30 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] VBA and SQL for Access > > http://www.marlow.com/VBA_Training.zip (Haven't had my website up in > years) > > Drew > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Tesiny, Ed > Sent: Wednesday, March 12, 2008 1:16 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] VBA and SQL for Access > > Drew Wutka had a nice little 40+ page tutorial on his web > site where you > could get your feet wet. Couldn't find a kink for you but maybe Drew > does. If not, I'll try to hunt it up. > > Ed Tesiny > 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 contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From DWUTKA at Marlow.com Thu Mar 13 10:39:28 2008 From: DWUTKA at Marlow.com (Drew Wutka) Date: Thu, 13 Mar 2008 10:39:28 -0500 Subject: [AccessD] Security permissions - was RE: Feeding an paramarray to aparamarray In-Reply-To: <005c01c88495$d5e5cd60$0201a8c0@M90> Message-ID: -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, March 12, 2008 6:07 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Security permissions - was RE: Feeding an paramarray to aparamarray LOL, thanks for the advice. ;-) That is the next iteration. Do you perhaps do this already? I am struggling with how to manage the various permutations in a functional user interface (wizard) for setting such permissions. Any given form has a "cancel" which prevents opening, as well as the four properties - AllowAdditions, AllowDeletions, AllowEdits and DataEntry. My LWS allows setting these properties but making them table driven makes the editing of the tables necessary before a form can have such security. My experience so far has been that the groups that can perform specific functions in forms are rather stable and so having them hard coded is not a big issue. The bigger issue is KNOWING what the permissions are. For that I am working on having the forms log their permissions as they open (through the LWS code). Thus while the permissions are hard coded, there is a set of tables which can display the permissions so you know where to go to make needed changes. Loading the permissions from tables is a goal though. Unfortunately (or fortunately) the LWS also allows setting permissions for controls on forms. Thus the problem gets radically bigger immediately. John W. Colby Colby Consulting www.ColbyConsulting.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From DWUTKA at Marlow.com Thu Mar 13 10:40:20 2008 From: DWUTKA at Marlow.com (Drew Wutka) Date: Thu, 13 Mar 2008 10:40:20 -0500 Subject: [AccessD] Security permissions In-Reply-To: <005c01c88495$d5e5cd60$0201a8c0@M90> Message-ID: Yep, do this in several applications. I think it's tutorial time. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, March 12, 2008 6:07 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Security permissions - was RE: Feeding an paramarray to aparamarray LOL, thanks for the advice. ;-) That is the next iteration. Do you perhaps do this already? I am struggling with how to manage the various permutations in a functional user interface (wizard) for setting such permissions. Any given form has a "cancel" which prevents opening, as well as the four properties - AllowAdditions, AllowDeletions, AllowEdits and DataEntry. My LWS allows setting these properties but making them table driven makes the editing of the tables necessary before a form can have such security. My experience so far has been that the groups that can perform specific functions in forms are rather stable and so having them hard coded is not a big issue. The bigger issue is KNOWING what the permissions are. For that I am working on having the forms log their permissions as they open (through the LWS code). Thus while the permissions are hard coded, there is a set of tables which can display the permissions so you know where to go to make needed changes. Loading the permissions from tables is a goal though. Unfortunately (or fortunately) the LWS also allows setting permissions for controls on forms. Thus the problem gets radically bigger immediately. John W. Colby Colby Consulting www.ColbyConsulting.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From jwcolby at colbyconsulting.com Thu Mar 13 11:00:02 2008 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 13 Mar 2008 12:00:02 -0400 Subject: [AccessD] Security permissions In-Reply-To: References: <005c01c88495$d5e5cd60$0201a8c0@M90> Message-ID: <000601c88523$5535adf0$0201a8c0@M90> LOL. 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 Drew Wutka Sent: Thursday, March 13, 2008 11:40 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Security permissions Yep, do this in several applications. I think it's tutorial time. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, March 12, 2008 6:07 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Security permissions - was RE: Feeding an paramarray to aparamarray LOL, thanks for the advice. ;-) That is the next iteration. Do you perhaps do this already? I am struggling with how to manage the various permutations in a functional user interface (wizard) for setting such permissions. Any given form has a "cancel" which prevents opening, as well as the four properties - AllowAdditions, AllowDeletions, AllowEdits and DataEntry. My LWS allows setting these properties but making them table driven makes the editing of the tables necessary before a form can have such security. My experience so far has been that the groups that can perform specific functions in forms are rather stable and so having them hard coded is not a big issue. The bigger issue is KNOWING what the permissions are. For that I am working on having the forms log their permissions as they open (through the LWS code). Thus while the permissions are hard coded, there is a set of tables which can display the permissions so you know where to go to make needed changes. Loading the permissions from tables is a goal though. Unfortunately (or fortunately) the LWS also allows setting permissions for controls on forms. Thus the problem gets radically bigger immediately. John W. Colby Colby Consulting www.ColbyConsulting.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From john at winhaven.net Thu Mar 13 12:10:53 2008 From: john at winhaven.net (John Bartow) Date: Thu, 13 Mar 2008 12:10:53 -0500 Subject: [AccessD] New MS Access exploit Message-ID: <200803131710.m2DHAqpf020001@databaseadvisors.com> The discovered mdb file has an embedded file, detected by Panda as Trj/Keylogger.DB For more info: http://pandalabs.pandasecurity.com/archive/New-MS-Access-exploit.aspx John B From DWUTKA at Marlow.com Thu Mar 13 12:21:10 2008 From: DWUTKA at Marlow.com (Drew Wutka) Date: Thu, 13 Mar 2008 12:21:10 -0500 Subject: [AccessD] Security permissions In-Reply-To: <000601c88523$5535adf0$0201a8c0@M90> Message-ID: John, I started a tutorial, but I just won't have time for a while to complete it. To build a custom security system, there are too many factors to make it a short tutorial. Things like using NT accounts, allowing to switch users (without logging the current user off), mixing custom users and NT users, etc. I wrote code to do all this stuff in various applications, just don't have the time to post and explain it all. But, for your specific problem, you should use the errors of objects not in a collection. Have a global user class, and when that class is set, have it pull it's permissions from the tables. So, when it pulls form permissions, have it add each form and it's permissions into a collection (with the index set as the forms name). Then have a property that receives the form's name, and permission. That property checks to see if the form is in the collection, like this: Private function HasFormPermissions(strFormName) as Boolean On error goto errorhandler Dim fp as FormPermissions Set fp=FormPermissionsCollection(strFormName) HasFormPermissions=True Set fp=nothing Exit function ErrorHandler: HasFormPermissions=False Err.clear End Function If there are no form permissions, return the property as false. If it does, check if the permission matches, and return that. Drew The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From Gustav at cactus.dk Thu Mar 13 17:41:48 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 13 Mar 2008 23:41:48 +0100 Subject: [AccessD] Security permissions Message-ID: Hi Drew But why not base such a system on a standardised system like OpenID: http://openid.net/ /gustav >>> DWUTKA at marlow.com 13-03-2008 18:21 >>> John, I started a tutorial, but I just won't have time for a while to complete it. To build a custom security system, there are too many factors to make it a short tutorial. Things like using NT accounts, allowing to switch users (without logging the current user off), mixing custom users and NT users, etc. I wrote code to do all this stuff in various applications, just don't have the time to post and explain it all. But, for your specific problem, you should use the errors of objects not in a collection. Have a global user class, and when that class is set, have it pull it's permissions from the tables. So, when it pulls form permissions, have it add each form and it's permissions into a collection (with the index set as the forms name). Then have a property that receives the form's name, and permission. That property checks to see if the form is in the collection, like this: Private function HasFormPermissions(strFormName) as Boolean On error goto errorhandler Dim fp as FormPermissions Set fp=FormPermissionsCollection(strFormName) HasFormPermissions=True Set fp=nothing Exit function ErrorHandler: HasFormPermissions=False Err.clear End Function If there are no form permissions, return the property as false. If it does, check if the permission matches, and return that. Drew The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From DWUTKA at Marlow.com Thu Mar 13 17:52:11 2008 From: DWUTKA at Marlow.com (Drew Wutka) Date: Thu, 13 Mar 2008 17:52:11 -0500 Subject: [AccessD] Security permissions In-Reply-To: Message-ID: Looks like an universal id card, not a drop in place security system.... Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, March 13, 2008 5:42 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Security permissions Hi Drew But why not base such a system on a standardised system like OpenID: http://openid.net/ /gustav >>> DWUTKA at marlow.com 13-03-2008 18:21 >>> John, I started a tutorial, but I just won't have time for a while to complete it. To build a custom security system, there are too many factors to make it a short tutorial. Things like using NT accounts, allowing to switch users (without logging the current user off), mixing custom users and NT users, etc. I wrote code to do all this stuff in various applications, just don't have the time to post and explain it all. But, for your specific problem, you should use the errors of objects not in a collection. Have a global user class, and when that class is set, have it pull it's permissions from the tables. So, when it pulls form permissions, have it add each form and it's permissions into a collection (with the index set as the forms name). Then have a property that receives the form's name, and permission. That property checks to see if the form is in the collection, like this: Private function HasFormPermissions(strFormName) as Boolean On error goto errorhandler Dim fp as FormPermissions Set fp=FormPermissionsCollection(strFormName) HasFormPermissions=True Set fp=nothing Exit function ErrorHandler: HasFormPermissions=False Err.clear End Function If there are no form permissions, return the property as false. If it does, check if the permission matches, and return that. Drew The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From jjwrite at sbcglobal.net Fri Mar 14 06:34:00 2008 From: jjwrite at sbcglobal.net (Judy Johnson) Date: Fri, 14 Mar 2008 04:34:00 -0700 (PDT) Subject: [AccessD] Max #loops in VBA report Generation Message-ID: <689392.28640.qm@web82302.mail.mud.yahoo.com> Hi - running Access 2002. Never experienced this problem before, the db has been running almost 3 years. The problem occurs on a subreport that contains code that actually builds each line of the report from data in a temp table. When the temp table contains 105 records the report generates perfectly. As soon as another record is added Access hangs ("not responding" in Task manager) I know the 106th record contains valid data, I populated the temp table with the same single record and as soon as I hit 106 records the report will not generate. I'm testing on a Vista machine with 2 GB RAM and >300 GB disk space so I don't believe it's a resource issue? Unless there's some stacking going on in Access that I've forgotten about? Anyone heard of a bug? I can send the code. Thanks so much. Judy From jimdettman at verizon.net Fri Mar 14 07:32:09 2008 From: jimdettman at verizon.net (Jim Dettman) Date: Fri, 14 Mar 2008 08:32:09 -0400 Subject: [AccessD] Max #loops in VBA report Generation In-Reply-To: <689392.28640.qm@web82302.mail.mud.yahoo.com> References: <689392.28640.qm@web82302.mail.mud.yahoo.com> Message-ID: <01db01c885cf$6c9ad4f0$8abea8c0@XPS> Judy, Off-hand, I can't think of anything. What I'd do is stick a stop in after the 103rd loop or so, step through the code making sure it's doing what you think it's doing. Then when you hit the 105th, find out what line it's getting stuck on or if it's getting caught in an infinite loop. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Judy Johnson Sent: Friday, March 14, 2008 7:34 AM To: AccessHelp Cc: Mary Graziani Subject: [AccessD] Max #loops in VBA report Generation Hi - running Access 2002. Never experienced this problem before, the db has been running almost 3 years. The problem occurs on a subreport that contains code that actually builds each line of the report from data in a temp table. When the temp table contains 105 records the report generates perfectly. As soon as another record is added Access hangs ("not responding" in Task manager) I know the 106th record contains valid data, I populated the temp table with the same single record and as soon as I hit 106 records the report will not generate. I'm testing on a Vista machine with 2 GB RAM and >300 GB disk space so I don't believe it's a resource issue? Unless there's some stacking going on in Access that I've forgotten about? Anyone heard of a bug? I can send the code. Thanks so much. Judy -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Fri Mar 14 07:57:00 2008 From: dwaters at usinternet.com (Dan Waters) Date: Fri, 14 Mar 2008 07:57:00 -0500 Subject: [AccessD] Max #loops in VBA report Generation In-Reply-To: <689392.28640.qm@web82302.mail.mud.yahoo.com> References: <689392.28640.qm@web82302.mail.mud.yahoo.com> Message-ID: <000c01c885d2$e513b700$0300a8c0@danwaters> Perhaps putting a DoEvent line of code in your loop might help? Can't hurt anyway. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Judy Johnson Sent: Friday, March 14, 2008 6:34 AM To: AccessHelp Cc: Mary Graziani Subject: [AccessD] Max #loops in VBA report Generation Hi - running Access 2002. Never experienced this problem before, the db has been running almost 3 years. The problem occurs on a subreport that contains code that actually builds each line of the report from data in a temp table. When the temp table contains 105 records the report generates perfectly. As soon as another record is added Access hangs ("not responding" in Task manager) I know the 106th record contains valid data, I populated the temp table with the same single record and as soon as I hit 106 records the report will not generate. I'm testing on a Vista machine with 2 GB RAM and >300 GB disk space so I don't believe it's a resource issue? Unless there's some stacking going on in Access that I've forgotten about? Anyone heard of a bug? I can send the code. Thanks so much. Judy -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at Marlow.com Fri Mar 14 10:54:58 2008 From: DWUTKA at Marlow.com (Drew Wutka) Date: Fri, 14 Mar 2008 10:54:58 -0500 Subject: [AccessD] OT: Just noticed an excel feature.... Message-ID: I just love it when I discover little 'features' like these. Here's the story: My company is a manufacturing company. We have about 15 to 20 'test machines', where some sort of testing device is attached to a computer, and the computer runs the test, and records the results in a database. About 6 years ago, we got a 'CMM' test machine. It's a cool little machine, a camera mounted on a moving platform, that can be programmed to measure parts (height width and length...pretty slick...). Anyhow, the guy that was going to 'program' that machine, wanted to store the data in a database. I whipped up a database and a .dll he could use in that softwares scripting language to handle the three types of 'runs' he was going to perform. Worked great. About 4 years ago, we got another machine of the same type to be used at a different step in our manufacturing process. This machine was going to have a lot more then 3 types of runs though. So I decided, back then, to build a 'data acquisition' system. With the exception of that first CMM, all of our test machines dumped their data into databases developed by a engineering software guy, who's concepts of how to create a database were as far away from relational that you could get. So, what I built, was a system where the 'developer' could create a 'program'. A program was a set of fields. Each field had a data type, min max limits, etc. Then the developer could use the DataAcquisition .dll to record the data into a relational database. A 'univeral' database, designed so that all of that data could be put in the same database, and easily searched. This system had another design consideration. Our test machines were currently recording their data into a local .mdb. And we had setup some processes to copy those databases to a network drive on a daily basis. The problem with that, is that as those databases got larger, the copy process took longer, and we still had 15 to 20 separate databases being stored on our network. The system I designed was intended to run on the local machine, and then push only the new data (not the whole database) to a server database. On top of that, each test machine had a 'website' setup, so that you could query the local database on that test machine, without having to open the .mdb across the network. This is where I stumbled across a neat trick with excel yesterday/today. That Data Acquisition project was completed to about 80% 4 years ago. That new CMM test machine, records it's data into it, but the 'custom' reporting engine I planned for it, and the server side database push was never completed. And, that is the only machine using the system, instead of all machines, which was the end goal. Well, now it's getting pushing back into the limelight, so it's on my list of must do projects. When initially designing this system, I always had in the back of my mind, that I wanted to create an Excel Add-on to work with the system. Our engineers LOVE excel, and constantly want their data in it. So I envisioned created an Add-on that let them select the test machine of their choice, then the 'program' and other criteria that would then populate their spreadsheet. The quirk is, I already have a webpage that grabs the data. I didn't want excel to hit that .mdb over the network, I wanted it to use the webserver on the test machines (or a network 'intranet' to hit the server side database). So when I was mulling this issue over yesterday, I thought to myself: Self: The web pages being produced are just HTML tables. Self: Excel is just a big table. Self: You can copy and paste an HTML table into excel. Self: I wonder if Excel could just 'open' the HTML page. And it does. Workbooks.Open Filename:= _ "http://fecmm/batchreport.asp?BatchID=3569", ReadOnly:=True That line opens the HTML table right into excel. It even sets the column widths the same. Pretty cool, I think. All I'll have to do with that Addin, is open a workbook with the right URL, and Excel does all the work populating it's workbook! Woohoo! Drew The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From jwcolby at colbyconsulting.com Fri Mar 14 11:19:15 2008 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 14 Mar 2008 12:19:15 -0400 Subject: [AccessD] OT: Just noticed an excel feature.... In-Reply-To: References: Message-ID: <005101c885ef$2654f8c0$0201a8c0@M90> It's always nice when things work the way they should. 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 Drew Wutka Sent: Friday, March 14, 2008 11:55 AM To: Access Developers discussion and problem solving Subject: [AccessD] OT: Just noticed an excel feature.... I just love it when I discover little 'features' like these. Here's the story: My company is a manufacturing company. We have about 15 to 20 'test machines', where some sort of testing device is attached to a computer, and the computer runs the test, and records the results in a database. About 6 years ago, we got a 'CMM' test machine. It's a cool little machine, a camera mounted on a moving platform, that can be programmed to measure parts (height width and length...pretty slick...). Anyhow, the guy that was going to 'program' that machine, wanted to store the data in a database. I whipped up a database and a .dll he could use in that softwares scripting language to handle the three types of 'runs' he was going to perform. Worked great. About 4 years ago, we got another machine of the same type to be used at a different step in our manufacturing process. This machine was going to have a lot more then 3 types of runs though. So I decided, back then, to build a 'data acquisition' system. With the exception of that first CMM, all of our test machines dumped their data into databases developed by a engineering software guy, who's concepts of how to create a database were as far away from relational that you could get. So, what I built, was a system where the 'developer' could create a 'program'. A program was a set of fields. Each field had a data type, min max limits, etc. Then the developer could use the DataAcquisition .dll to record the data into a relational database. A 'univeral' database, designed so that all of that data could be put in the same database, and easily searched. This system had another design consideration. Our test machines were currently recording their data into a local .mdb. And we had setup some processes to copy those databases to a network drive on a daily basis. The problem with that, is that as those databases got larger, the copy process took longer, and we still had 15 to 20 separate databases being stored on our network. The system I designed was intended to run on the local machine, and then push only the new data (not the whole database) to a server database. On top of that, each test machine had a 'website' setup, so that you could query the local database on that test machine, without having to open the .mdb across the network. This is where I stumbled across a neat trick with excel yesterday/today. That Data Acquisition project was completed to about 80% 4 years ago. That new CMM test machine, records it's data into it, but the 'custom' reporting engine I planned for it, and the server side database push was never completed. And, that is the only machine using the system, instead of all machines, which was the end goal. Well, now it's getting pushing back into the limelight, so it's on my list of must do projects. When initially designing this system, I always had in the back of my mind, that I wanted to create an Excel Add-on to work with the system. Our engineers LOVE excel, and constantly want their data in it. So I envisioned created an Add-on that let them select the test machine of their choice, then the 'program' and other criteria that would then populate their spreadsheet. The quirk is, I already have a webpage that grabs the data. I didn't want excel to hit that .mdb over the network, I wanted it to use the webserver on the test machines (or a network 'intranet' to hit the server side database). So when I was mulling this issue over yesterday, I thought to myself: Self: The web pages being produced are just HTML tables. Self: Excel is just a big table. Self: You can copy and paste an HTML table into excel. Self: I wonder if Excel could just 'open' the HTML page. And it does. Workbooks.Open Filename:= _ "http://fecmm/batchreport.asp?BatchID=3569", ReadOnly:=True That line opens the HTML table right into excel. It even sets the column widths the same. Pretty cool, I think. All I'll have to do with that Addin, is open a workbook with the right URL, and Excel does all the work populating it's workbook! Woohoo! Drew The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at Marlow.com Fri Mar 14 11:27:49 2008 From: DWUTKA at Marlow.com (Drew Wutka) Date: Fri, 14 Mar 2008 11:27:49 -0500 Subject: [AccessD] OT: Just noticed an excel feature.... In-Reply-To: <005101c885ef$2654f8c0$0201a8c0@M90> Message-ID: LOL, tell me about it! Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, March 14, 2008 11:19 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: Just noticed an excel feature.... It's always nice when things work the way they should. 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 Drew Wutka Sent: Friday, March 14, 2008 11:55 AM To: Access Developers discussion and problem solving Subject: [AccessD] OT: Just noticed an excel feature.... I just love it when I discover little 'features' like these. Here's the story: My company is a manufacturing company. We have about 15 to 20 'test machines', where some sort of testing device is attached to a computer, and the computer runs the test, and records the results in a database. About 6 years ago, we got a 'CMM' test machine. It's a cool little machine, a camera mounted on a moving platform, that can be programmed to measure parts (height width and length...pretty slick...). Anyhow, the guy that was going to 'program' that machine, wanted to store the data in a database. I whipped up a database and a .dll he could use in that softwares scripting language to handle the three types of 'runs' he was going to perform. Worked great. About 4 years ago, we got another machine of the same type to be used at a different step in our manufacturing process. This machine was going to have a lot more then 3 types of runs though. So I decided, back then, to build a 'data acquisition' system. With the exception of that first CMM, all of our test machines dumped their data into databases developed by a engineering software guy, who's concepts of how to create a database were as far away from relational that you could get. So, what I built, was a system where the 'developer' could create a 'program'. A program was a set of fields. Each field had a data type, min max limits, etc. Then the developer could use the DataAcquisition .dll to record the data into a relational database. A 'univeral' database, designed so that all of that data could be put in the same database, and easily searched. This system had another design consideration. Our test machines were currently recording their data into a local .mdb. And we had setup some processes to copy those databases to a network drive on a daily basis. The problem with that, is that as those databases got larger, the copy process took longer, and we still had 15 to 20 separate databases being stored on our network. The system I designed was intended to run on the local machine, and then push only the new data (not the whole database) to a server database. On top of that, each test machine had a 'website' setup, so that you could query the local database on that test machine, without having to open the .mdb across the network. This is where I stumbled across a neat trick with excel yesterday/today. That Data Acquisition project was completed to about 80% 4 years ago. That new CMM test machine, records it's data into it, but the 'custom' reporting engine I planned for it, and the server side database push was never completed. And, that is the only machine using the system, instead of all machines, which was the end goal. Well, now it's getting pushing back into the limelight, so it's on my list of must do projects. When initially designing this system, I always had in the back of my mind, that I wanted to create an Excel Add-on to work with the system. Our engineers LOVE excel, and constantly want their data in it. So I envisioned created an Add-on that let them select the test machine of their choice, then the 'program' and other criteria that would then populate their spreadsheet. The quirk is, I already have a webpage that grabs the data. I didn't want excel to hit that .mdb over the network, I wanted it to use the webserver on the test machines (or a network 'intranet' to hit the server side database). So when I was mulling this issue over yesterday, I thought to myself: Self: The web pages being produced are just HTML tables. Self: Excel is just a big table. Self: You can copy and paste an HTML table into excel. Self: I wonder if Excel could just 'open' the HTML page. And it does. Workbooks.Open Filename:= _ "http://fecmm/batchreport.asp?BatchID=3569", ReadOnly:=True That line opens the HTML table right into excel. It even sets the column widths the same. Pretty cool, I think. All I'll have to do with that Addin, is open a workbook with the right URL, and Excel does all the work populating it's workbook! Woohoo! Drew The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From ebarro at verizon.net Fri Mar 14 13:11:20 2008 From: ebarro at verizon.net (Eric Barro) Date: Fri, 14 Mar 2008 11:11:20 -0700 Subject: [AccessD] OT: Just noticed an excel feature.... In-Reply-To: Message-ID: <0JXQ00ICZFVQHJ63@vms044.mailsrvcs.net> Or you could whip up a web service that you can call using VBA in Excel to populate the spreadsheet template. The web service encapsulates your calls to the database via the web server. I work for a manufacturing company too and the users love Excel to death because they can manipulate data using the app. I created a web service that can be referenced in Excel and using VBA, loop through the dataset pumped out as an XML stream by the web service. User specifies a part number, clicks on a button that triggers a call to one of the web service's exposed methods and they get their data. If an extra column is needed or removed, all that's needed is to add/remove the column to/from the stored procedure. There is no need to recompile the web service DLL. As an aside... One of the interesting features that Excel has that works really well with Sharepoint is the ability to "publish a list" (basically a range of data) to Sharepoint which allows the users to update either the XLS file or the Sharepoint published list and have two-way updates. :) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Friday, March 14, 2008 8:55 AM To: Access Developers discussion and problem solving Subject: [AccessD] OT: Just noticed an excel feature.... I just love it when I discover little 'features' like these. Here's the story: My company is a manufacturing company. We have about 15 to 20 'test machines', where some sort of testing device is attached to a computer, and the computer runs the test, and records the results in a database. About 6 years ago, we got a 'CMM' test machine. It's a cool little machine, a camera mounted on a moving platform, that can be programmed to measure parts (height width and length...pretty slick...). Anyhow, the guy that was going to 'program' that machine, wanted to store the data in a database. I whipped up a database and a .dll he could use in that softwares scripting language to handle the three types of 'runs' he was going to perform. Worked great. About 4 years ago, we got another machine of the same type to be used at a different step in our manufacturing process. This machine was going to have a lot more then 3 types of runs though. So I decided, back then, to build a 'data acquisition' system. With the exception of that first CMM, all of our test machines dumped their data into databases developed by a engineering software guy, who's concepts of how to create a database were as far away from relational that you could get. So, what I built, was a system where the 'developer' could create a 'program'. A program was a set of fields. Each field had a data type, min max limits, etc. Then the developer could use the DataAcquisition .dll to record the data into a relational database. A 'univeral' database, designed so that all of that data could be put in the same database, and easily searched. This system had another design consideration. Our test machines were currently recording their data into a local .mdb. And we had setup some processes to copy those databases to a network drive on a daily basis. The problem with that, is that as those databases got larger, the copy process took longer, and we still had 15 to 20 separate databases being stored on our network. The system I designed was intended to run on the local machine, and then push only the new data (not the whole database) to a server database. On top of that, each test machine had a 'website' setup, so that you could query the local database on that test machine, without having to open the .mdb across the network. This is where I stumbled across a neat trick with excel yesterday/today. That Data Acquisition project was completed to about 80% 4 years ago. That new CMM test machine, records it's data into it, but the 'custom' reporting engine I planned for it, and the server side database push was never completed. And, that is the only machine using the system, instead of all machines, which was the end goal. Well, now it's getting pushing back into the limelight, so it's on my list of must do projects. When initially designing this system, I always had in the back of my mind, that I wanted to create an Excel Add-on to work with the system. Our engineers LOVE excel, and constantly want their data in it. So I envisioned created an Add-on that let them select the test machine of their choice, then the 'program' and other criteria that would then populate their spreadsheet. The quirk is, I already have a webpage that grabs the data. I didn't want excel to hit that .mdb over the network, I wanted it to use the webserver on the test machines (or a network 'intranet' to hit the server side database). So when I was mulling this issue over yesterday, I thought to myself: Self: The web pages being produced are just HTML tables. Self: Excel is just a big table. Self: You can copy and paste an HTML table into excel. Self: I wonder if Excel could just 'open' the HTML page. And it does. Workbooks.Open Filename:= _ "http://fecmm/batchreport.asp?BatchID=3569", ReadOnly:=True That line opens the HTML table right into excel. It even sets the column widths the same. Pretty cool, I think. All I'll have to do with that Addin, is open a workbook with the right URL, and Excel does all the work populating it's workbook! Woohoo! Drew The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Fri Mar 14 13:13:50 2008 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 14 Mar 2008 14:13:50 -0400 Subject: [AccessD] Interesting run time error Message-ID: <006001c885ff$280ec370$0201a8c0@M90> When a combo is assigned an invalid sql string, perhaps a select from a non-existent table or a OrderBy clause on a non-existent field, there is not error until you try to drop down or otherwise use the combo. The error pops out of the depths of Access and AFAICT cannot be trapped. John W. Colby Colby Consulting www.ColbyConsulting.com From ssharkins at gmail.com Fri Mar 14 13:28:15 2008 From: ssharkins at gmail.com (Susan Harkins) Date: Fri, 14 Mar 2008 14:28:15 -0400 Subject: [AccessD] Interesting run time error References: <006001c885ff$280ec370$0201a8c0@M90> Message-ID: <036a01c88601$3d80ce40$4b3a8343@SusanOne> John, what event are you using to populate the combo? Does this happen with Form Load and Form open? Why is the SQL statement invalid? When building it, couldn't you check it before setting the combo? Susan H. > When a combo is assigned an invalid sql string, perhaps a select from a > non-existent table or a OrderBy clause on a non-existent field, there is > not > error until you try to drop down or otherwise use the combo. The error > pops > out of the depths of Access and AFAICT cannot be trapped. From jwcolby at colbyconsulting.com Fri Mar 14 13:47:43 2008 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 14 Mar 2008 14:47:43 -0400 Subject: [AccessD] Interesting run time error In-Reply-To: <036a01c88601$3d80ce40$4b3a8343@SusanOne> References: <006001c885ff$280ec370$0201a8c0@M90> <036a01c88601$3d80ce40$4b3a8343@SusanOne> Message-ID: <006401c88603$e3b56940$0201a8c0@M90> Form open. This is a form in a library, that is loaded and populated from data inside of the FE. In this specific case it is for a combo that displays FE (application) users in a combo in a LWS user form. The LWS system might run in a system where there is no personnel table already in existence and so it provides its own LWS pe table. There is a field that is the PEID of a personnel table in the FE (if any). It is entirely possible to not have any data at all in the case of this combo. In spite of all this it is possible (from inside of the LWS library) to check if the table or query name passed in is valid in the FE and if not then fail gracefully by not setting any Sql statement at all. I haven't tried that however. I just found it interesting that while the form would load and allow me to set the rowsource of the combo to invalid stuff, the data for the combo doesn't pull until you try to use it, which is long after the rowsource is loaded. 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: Friday, March 14, 2008 2:28 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Interesting run time error John, what event are you using to populate the combo? Does this happen with Form Load and Form open? Why is the SQL statement invalid? When building it, couldn't you check it before setting the combo? Susan H. > When a combo is assigned an invalid sql string, perhaps a select from > a non-existent table or a OrderBy clause on a non-existent field, > there is not error until you try to drop down or otherwise use the > combo. The error pops out of the depths of Access and AFAICT cannot > be trapped. -- 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 Mar 14 13:54:13 2008 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Fri, 14 Mar 2008 14:54:13 -0400 Subject: [AccessD] Interesting run time error Message-ID: <34C8A2AB1EF3564CB0D64DB6AFFDD5C211DF6527@XLIVMBX35bkup.aig.com> Just tried this out. With a rowsource of "SELECT foo from bar", where the table bar does not exist, on first trying to drop-down the combo the error message displayed is: "The record source '~sq_cForm1~sq_cCombo0' specified on this from or report does not exist." (The form name is "Form1" and the combo name is "Combo0". However, it is trappable. If you set the form's On Error event handler like so... Private Sub Form_Error(DataErr As Integer, Response As Integer) MsgBox "Error:" & DataErr & " " & AccessError(DataErr) Response = acDataErrContinue End Sub You'll see that it's error 2580, and without the msgbox in the handler the error will just slide by. OF course the user will wonder why there's nothing in the combo! :-) Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, March 14, 2008 2:14 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Interesting run time error When a combo is assigned an invalid sql string, perhaps a select from a non-existent table or a OrderBy clause on a non-existent field, there is not error until you try to drop down or otherwise use the combo. The error pops out of the depths of Access and AFAICT cannot be trapped. 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 Fri Mar 14 16:33:50 2008 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 14 Mar 2008 17:33:50 -0400 Subject: [AccessD] Interesting run time error In-Reply-To: <34C8A2AB1EF3564CB0D64DB6AFFDD5C211DF6527@XLIVMBX35bkup.aig.com> References: <34C8A2AB1EF3564CB0D64DB6AFFDD5C211DF6527@XLIVMBX35bkup.aig.com> Message-ID: <006601c8861b$184ede40$0201a8c0@M90> Thanks Lambert. 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 Heenan, Lambert Sent: Friday, March 14, 2008 2:54 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Interesting run time error Just tried this out. With a rowsource of "SELECT foo from bar", where the table bar does not exist, on first trying to drop-down the combo the error message displayed is: "The record source '~sq_cForm1~sq_cCombo0' specified on this from or report does not exist." (The form name is "Form1" and the combo name is "Combo0". However, it is trappable. If you set the form's On Error event handler like so... Private Sub Form_Error(DataErr As Integer, Response As Integer) MsgBox "Error:" & DataErr & " " & AccessError(DataErr) Response = acDataErrContinue End Sub You'll see that it's error 2580, and without the msgbox in the handler the error will just slide by. OF course the user will wonder why there's nothing in the combo! :-) Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, March 14, 2008 2:14 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Interesting run time error When a combo is assigned an invalid sql string, perhaps a select from a non-existent table or a OrderBy clause on a non-existent field, there is not error until you try to drop down or otherwise use the combo. The error pops out of the depths of Access and AFAICT cannot be trapped. 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 a2965z-nonprofit at yahoo.com Fri Mar 14 17:04:59 2008 From: a2965z-nonprofit at yahoo.com (a2965z-nonprofit at yahoo.com) Date: Fri, 14 Mar 2008 15:04:59 -0700 (PDT) Subject: [AccessD] VBA and SQL for Access Message-ID: <190796.32807.qm@web31804.mail.mud.yahoo.com> I want to thank all of you for your responses to my search for VBA and SQL books. I'm excited about getting my head into these topics and my arms around a career move. Thanks again, Cynthia ----- Original Message ---- From: "accessd-request at databaseadvisors.com" To: accessd at databaseadvisors.com Sent: Thursday, March 13, 2008 8:08:30 AM Subject: AccessD Digest, Vol 61, Issue 24 Send AccessD mailing list submissions to accessd at databaseadvisors.com To subscribe or unsubscribe via the World Wide Web, visit http://databaseadvisors.com/mailman/listinfo/accessd or, via email, send a message with subject or body 'help' to accessd-request at databaseadvisors.com You can reach the person managing the list at accessd-owner at databaseadvisors.com When replying, please edit your Subject line so it is more specific than "Re: Contents of AccessD digest..." Today's Topics: 1. Re: VBA and SQL for Access (Susan Harkins) 2. Re: VBA and SQL for Access (Tesiny, Ed) 5. Re: VBA and SQL for Access (jwcolby) 7. Re: VBA and SQL for Access (Drew Wutka) Message: 1 Date: Wed, 12 Mar 2008 14:05:23 -0400 From: "Susan Harkins" Subject: Re: [AccessD] VBA and SQL for Access To: "Access Developers discussion and problem solving" Message-ID: <017c01c8846b$a9e651f0$4b3a8343 at SusanOne> Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Okay, I'm going to step in now because nobody seems to really want to help Cynthia with the problem she has at hand, which is learning VBA/SQL and Access. She didn't ask about SQL Server or .NET -- she asked about Access. I'm not fussing because I know you guys mean well, but let's give her the help she asked for. :) I generally don't do this, and I gave them all plenty of time, but Cynthia try the following: I don't think you'll find a better SQL book than this one, although Martin's half is almost obsolete now. :( But most of the information in that half should still help you with SQL Server Express. Before you purchase either, see if your library has them, just to make sure they're really what you need. Also check out discount book stores, as they're both old and liable to be on sale tables. The VBA book was written before Access 2008. A lot of the code should still work, but the instructions will be vastly different, so I wouldn't suggest this book for 2008. Susan H. > Cynthia, > > First, if you want to kick it up a notch, stop using > Access for the data. Use SQL Server Express instead. > > Here are some Access VBA books: > > > ISBN 0764559036 > ISBN 0782123244 > ISBN 0782140130 > ISBN 0764525883 > ISBN 047004702X > ISBN 0789737310 > > For SQL Server 2005, Inside SQL Server 2005: T-SQL Programming > is a good place to start. > > Robert > > At 05:39 AM 3/12/2008, you wrote: >>Date: Wed, 12 Mar 2008 04:07:56 -0500 >>From: "C \(Soucheray\) Reitzel" >>Subject: [AccessD] VBA and SQL for Access >>To: >>Message-ID: <00d501c88420$979c9360$88fea8c0 at GATEWAY> >>Content-Type: text/plain; charset="us-ascii" >> >>Hi, >> >>I am wanting to kick my career up a notch by beefing up my knowledge of >>SQL >>and VBA for Access. Can anyone recommend any good how-to books for someone >>with a base-line knowledge of programming and querying? >> >>Thanks, >> >>Cynthia > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com ------------------------------ Message: 2 Date: Wed, 12 Mar 2008 14:15:54 -0400 From: "Tesiny, Ed" Subject: Re: [AccessD] VBA and SQL for Access To: "Access Developers discussion and problem solving" Message-ID: Content-Type: text/plain; charset="us-ascii" Drew Wutka had a nice little 40+ page tutorial on his web site where you could get your feet wet. Couldn't find a kink for you but maybe Drew does. If not, I'll try to hunt it up. Ed Tesiny EdTesiny at oasas.state.ny.us ------------------------------ Message: 7 Date: Wed, 12 Mar 2008 15:30:06 -0500 From: "Drew Wutka" Subject: Re: [AccessD] VBA and SQL for Access To: "Access Developers discussion and problem solving" Message-ID: Content-Type: text/plain; charset="us-ascii" http://www.marlow.com/VBA_Training.zip (Haven't had my website up in years) Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Tesiny, Ed Sent: Wednesday, March 12, 2008 1:16 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] VBA and SQL for Access Drew Wutka had a nice little 40+ page tutorial on his web site where you could get your feet wet. Couldn't find a kink for you but maybe Drew does. If not, I'll try to hunt it up. Ed Tesiny EdTesiny at oasas.state.ny.us From accessd at shaw.ca Sat Mar 15 01:20:27 2008 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 14 Mar 2008 23:20:27 -0700 Subject: [AccessD] OT: Just noticed an excel feature.... In-Reply-To: References: Message-ID: <8DC48AD8B515407EA7DE972F03C7CD63@creativesystemdesigns.com> Hi Drew: Those lines of code are very interesting. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Friday, March 14, 2008 8:55 AM To: Access Developers discussion and problem solving Subject: [AccessD] OT: Just noticed an excel feature.... I just love it when I discover little 'features' like these. Here's the story: My company is a manufacturing company. We have about 15 to 20 'test machines', where some sort of testing device is attached to a computer, and the computer runs the test, and records the results in a database. About 6 years ago, we got a 'CMM' test machine. It's a cool little machine, a camera mounted on a moving platform, that can be programmed to measure parts (height width and length...pretty slick...). Anyhow, the guy that was going to 'program' that machine, wanted to store the data in a database. I whipped up a database and a .dll he could use in that softwares scripting language to handle the three types of 'runs' he was going to perform. Worked great. About 4 years ago, we got another machine of the same type to be used at a different step in our manufacturing process. This machine was going to have a lot more then 3 types of runs though. So I decided, back then, to build a 'data acquisition' system. With the exception of that first CMM, all of our test machines dumped their data into databases developed by a engineering software guy, who's concepts of how to create a database were as far away from relational that you could get. So, what I built, was a system where the 'developer' could create a 'program'. A program was a set of fields. Each field had a data type, min max limits, etc. Then the developer could use the DataAcquisition .dll to record the data into a relational database. A 'univeral' database, designed so that all of that data could be put in the same database, and easily searched. This system had another design consideration. Our test machines were currently recording their data into a local .mdb. And we had setup some processes to copy those databases to a network drive on a daily basis. The problem with that, is that as those databases got larger, the copy process took longer, and we still had 15 to 20 separate databases being stored on our network. The system I designed was intended to run on the local machine, and then push only the new data (not the whole database) to a server database. On top of that, each test machine had a 'website' setup, so that you could query the local database on that test machine, without having to open the .mdb across the network. This is where I stumbled across a neat trick with excel yesterday/today. That Data Acquisition project was completed to about 80% 4 years ago. That new CMM test machine, records it's data into it, but the 'custom' reporting engine I planned for it, and the server side database push was never completed. And, that is the only machine using the system, instead of all machines, which was the end goal. Well, now it's getting pushing back into the limelight, so it's on my list of must do projects. When initially designing this system, I always had in the back of my mind, that I wanted to create an Excel Add-on to work with the system. Our engineers LOVE excel, and constantly want their data in it. So I envisioned created an Add-on that let them select the test machine of their choice, then the 'program' and other criteria that would then populate their spreadsheet. The quirk is, I already have a webpage that grabs the data. I didn't want excel to hit that .mdb over the network, I wanted it to use the webserver on the test machines (or a network 'intranet' to hit the server side database). So when I was mulling this issue over yesterday, I thought to myself: Self: The web pages being produced are just HTML tables. Self: Excel is just a big table. Self: You can copy and paste an HTML table into excel. Self: I wonder if Excel could just 'open' the HTML page. And it does. Workbooks.Open Filename:= _ "http://fecmm/batchreport.asp?BatchID=3569", ReadOnly:=True That line opens the HTML table right into excel. It even sets the column widths the same. Pretty cool, I think. All I'll have to do with that Addin, is open a workbook with the right URL, and Excel does all the work populating it's workbook! Woohoo! Drew The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From tinanfields at torchlake.com Sat Mar 15 06:52:37 2008 From: tinanfields at torchlake.com (Tina Norris Fields) Date: Sat, 15 Mar 2008 07:52:37 -0400 Subject: [AccessD] Software to repair corrupt database Message-ID: <47DBB885.1040604@torchlake.com> Hi All, A local organization has a nice database of donors, members, and similar stuff. It was probably first crafted in A97. I did not build it, but know the developer who did (he's a very talented guy who keeps disappearing). The organization has the database on a small server with three or four computers having access to the database. The database is not split into BE and FE, it is simply shared. The computers used for accessing the database are of different operating systems, of course, ranging from Win98 to WinXP. The Win98 machine was being used to run a mail merge acknowledgement letter in Word that is populated by a parameter select query in the database. The Win98 machine choked and froze. The database was unusable after that. The message received whenever one tried to open it was " isn't an index in this table. Look in the indexes collection of the TableDef object to determine the valid index names." Clear case of corruption! I had been working to fix a wrecked mail-merge document, so was present when the system froze. I asked about the most recent backup and was told that they had no idea how the backup was done, but their network guru said it was done automatically. Great! say I, get the backup from Jim and we will go back to the mail-merge. Well, they would have to call Jim. . . . A week later, I had heard nothing back from them so I called. Well, Jim said the whole system is automatically backed up, but he can't just get the Access database out for them. Jim and his group have been trying to repair the database, but they haven't succeeded. Meanwhile, I've been out looking for software to repair corrupted Access databases, and I've found a couple that let me run a demo for free, but will cost about $300 USD to actually get the output file. They are: Advanced Access Repair from Data Numen Inc. and AccessFIX from Cimaware. They appear to work, although AccessFIX demo indicated that part of the structure couldn't be determined without a copy to compare to. (That would not be awfully difficult, because whenever I visit this organization I make a backup copy of the database, so the dated copy I made in October of 2006 is still there.) The $300 USD price-tag is a bit stiff. I found a repair service at corruptfilerepair.com. I sent them the zipped corrupt database, and they have sent me an email with a screen-shot of the repaired database, showing the tables container and one of the tables open. If I am satisfied, they will send me a payment link and I will pay them $39 USD and they will send back the repaired database. This price seems reasonable, and I am willing to pay that much to get my friends back up and running. For the future, I would like to have in my own possession a decent utility for repairing corrupt databases. What can you, my favorite team of real gurus, tell me about such software? Thanks for all help, Tina From Gustav at cactus.dk Sat Mar 15 07:15:42 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Sat, 15 Mar 2008 13:15:42 +0100 Subject: [AccessD] Software to repair corrupt database Message-ID: Hi Tina First, you could double-check with the service of Garry Robinson: http://www.vb123.com/fixaccess/ Then I would rather spend yours and the client's limited resources on dealing with the sources for corruption: - split the database - arrange for a decent backup to a different or external drive - use Win98 for simple lookups and the like - perform mail merge on the most powerful machine Should be quite easy to carry out ... The only tools I have used for repairing databases is JetComp and a hex editor. /gustav >>> tinanfields at torchlake.com 15-03-2008 12:52 >>> Hi All, A local organization has a nice database of donors, members, and similar stuff. It was probably first crafted in A97. I did not build it, but know the developer who did (he's a very talented guy who keeps disappearing). The organization has the database on a small server with three or four computers having access to the database. The database is not split into BE and FE, it is simply shared. The computers used for accessing the database are of different operating systems, of course, ranging from Win98 to WinXP. The Win98 machine was being used to run a mail merge acknowledgement letter in Word that is populated by a parameter select query in the database. The Win98 machine choked and froze. The database was unusable after that. The message received whenever one tried to open it was " isn't an index in this table. Look in the indexes collection of the TableDef object to determine the valid index names." Clear case of corruption! I had been working to fix a wrecked mail-merge document, so was present when the system froze. I asked about the most recent backup and was told that they had no idea how the backup was done, but their network guru said it was done automatically. Great! say I, get the backup from Jim and we will go back to the mail-merge. Well, they would have to call Jim. . . . A week later, I had heard nothing back from them so I called. Well, Jim said the whole system is automatically backed up, but he can't just get the Access database out for them. Jim and his group have been trying to repair the database, but they haven't succeeded. Meanwhile, I've been out looking for software to repair corrupted Access databases, and I've found a couple that let me run a demo for free, but will cost about $300 USD to actually get the output file. They are: Advanced Access Repair from Data Numen Inc. and AccessFIX from Cimaware. They appear to work, although AccessFIX demo indicated that part of the structure couldn't be determined without a copy to compare to. (That would not be awfully difficult, because whenever I visit this organization I make a backup copy of the database, so the dated copy I made in October of 2006 is still there.) The $300 USD price-tag is a bit stiff. I found a repair service at corruptfilerepair.com. I sent them the zipped corrupt database, and they have sent me an email with a screen-shot of the repaired database, showing the tables container and one of the tables open. If I am satisfied, they will send me a payment link and I will pay them $39 USD and they will send back the repaired database. This price seems reasonable, and I am willing to pay that much to get my friends back up and running. For the future, I would like to have in my own possession a decent utility for repairing corrupt databases. What can you, my favorite team of real gurus, tell me about such software? Thanks for all help, Tina From tinanfields at torchlake.com Sat Mar 15 08:28:41 2008 From: tinanfields at torchlake.com (Tina Norris Fields) Date: Sat, 15 Mar 2008 09:28:41 -0400 Subject: [AccessD] Software to repair corrupt database In-Reply-To: References: Message-ID: <47DBCF09.6090407@torchlake.com> Hi Gustav, Oh yes, the right thing to do is to deal with the sources of corruption! And I will use the fine message you sent me to back up my comments to these lovely people. I have rescued them a few times, even making minor adjustments to their database. My friend Wayne Madison, who developed it for them back in 1999 or 2000, tried unsuccessfully to get the previous management to institute certain procedures. I have tried, also unsuccessfully, to get them to take serious responsibility for protecting their database. But, now, I think I have their attention. For some weeks, now, they have been unable to send out acknowledgement letters to the people who make donations to them. First, because they edited the mail-merge document and scrambled the fields in the letter, and now, because of a system-crash corruption. I have bookmarked the Garry Robinson page. Thank you for the link. Still, I would like to find a good utility for my own, or my clients', next emergency. Thanks for your response, Tina Gustav Brock wrote: > Hi Tina > > First, you could double-check with the service of Garry Robinson: > > http://www.vb123.com/fixaccess/ > > Then I would rather spend yours and the client's limited resources on dealing with the sources for corruption: > > - split the database > - arrange for a decent backup to a different or external drive > - use Win98 for simple lookups and the like > - perform mail merge on the most powerful machine > > Should be quite easy to carry out ... > > The only tools I have used for repairing databases is JetComp and a hex editor. > > /gustav > > >>>> tinanfields at torchlake.com 15-03-2008 12:52 >>> >>>> > Hi All, > > A local organization has a nice database of donors, members, and similar > stuff. It was probably first crafted in A97. I did not build it, but > know the developer who did (he's a very talented guy who keeps > disappearing). The organization has the database on a small server with > three or four computers having access to the database. The database is > not split into BE and FE, it is simply shared. The computers used for > accessing the database are of different operating systems, of course, > ranging from Win98 to WinXP. > > The Win98 machine was being used to run a mail merge acknowledgement > letter in Word that is populated by a parameter select query in the > database. The Win98 machine choked and froze. The database was > unusable after that. The message received whenever one tried to open it > was " isn't an index in this table. Look in the indexes > collection of the TableDef object to determine the valid index names." > Clear case of corruption! > > I had been working to fix a wrecked mail-merge document, so was present > when the system froze. I asked about the most recent backup and was > told that they had no idea how the backup was done, but their network > guru said it was done automatically. Great! say I, get the backup from > Jim and we will go back to the mail-merge. Well, they would have to > call Jim. . . . A week later, I had heard nothing back from them so I > called. Well, Jim said the whole system is automatically backed up, but > he can't just get the Access database out for them. Jim and his group > have been trying to repair the database, but they haven't succeeded. > > Meanwhile, I've been out looking for software to repair corrupted Access > databases, and I've found a couple that let me run a demo for free, but > will cost about $300 USD to actually get the output file. They are: > Advanced Access Repair from Data Numen Inc. and AccessFIX from > Cimaware. They appear to work, although AccessFIX demo indicated that > part of the structure couldn't be determined without a copy to compare > to. (That would not be awfully difficult, because whenever I visit this > organization I make a backup copy of the database, so the dated copy I > made in October of 2006 is still there.) The $300 USD price-tag is a > bit stiff. > > I found a repair service at corruptfilerepair.com. I sent them the > zipped corrupt database, and they have sent me an email with a > screen-shot of the repaired database, showing the tables container and > one of the tables open. If I am satisfied, they will send me a payment > link and I will pay them $39 USD and they will send back the repaired > database. This price seems reasonable, and I am willing to pay that > much to get my friends back up and running. > > For the future, I would like to have in my own possession a decent > utility for repairing corrupt databases. What can you, my favorite team > of real gurus, tell me about such software? > > Thanks for all help, > Tina > > > From robert at servicexp.com Sat Mar 15 10:26:33 2008 From: robert at servicexp.com (Robert) Date: Sat, 15 Mar 2008 11:26:33 -0400 Subject: [AccessD] Shutting Down Memory Process? In-Reply-To: <47DBCF09.6090407@torchlake.com> References: <47DBCF09.6090407@torchlake.com> Message-ID: <47DBEAA9.9070606@servicexp.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello All, I'm having a problem that I just don't understand. A2002; Split db I have a few clients that intermittently experience a MS Access Crash, where the "Access" error reporting system activates, and then the program shuts down. ~ This is the part I don't understand. Sometimes when this happens, the "access.exe" process will still be running in the background. How is this possible? I understand when access.exe crashed, my code to close objects and such isn't run, but if access.exe is crashing wouldn't it destroy those objects?? The problem for the client is, if there is a access.exe process still running on one of their machines, they cannot backup the database on the server. They have to go to each machine and close the process on the offending machine. OK MY REAL QUESTION: ;-) Anyway I have put together some code, from various places (http://mvps.org/access/api/api0041.htm & http://www.visualbasic.happycodings.com/Windows_and_Controls/code44.html) ~ to look for and shut down another instance of my program running. The code works perfectly on a running program (where it's listed in the applications tab of the Task Manager)but I don't know if it will work on just a process running? I have tried for the last hour to close my program leaving objects unclosed to get the access.exe process to hang but no luck.. Does anyone know if this will also work on an open access.exe process? Sorry for the long version.... WBR Robert -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFH2+qp72dSYCwH8FQRAg1BAKCjWO+0r1AhqVQ252V5MsyKaUnTEACgxlhL BKC5eb0EIYsrHPHvVrWXztk= =NwGn -----END PGP SIGNATURE----- From Darryl.Collins at coles.com.au Sat Mar 15 19:11:43 2008 From: Darryl.Collins at coles.com.au (Darryl Collins) Date: Sun, 16 Mar 2008 11:11:43 +1100 Subject: [AccessD] OT: Just noticed an excel feature.... Message-ID: <49DFE57FB126044B8A8B934E7AEA09ED09FD7061@WPEXCH05.colesmyer.ad.cmltd.net.au> You could consider doing a webquery using MS Query directly into excel as a querytable. That way when the data changed on the website you could requery and update immediately into Excel. Maybe worth a look. cheers Darryl. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Lawrence Sent: Saturday, 15 March 2008 5:20 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: Just noticed an excel feature.... Hi Drew: Those lines of code are very interesting. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Friday, March 14, 2008 8:55 AM To: Access Developers discussion and problem solving Subject: [AccessD] OT: Just noticed an excel feature.... I just love it when I discover little 'features' like these. Here's the story: My company is a manufacturing company. We have about 15 to 20 'test machines', where some sort of testing device is attached to a computer, and the computer runs the test, and records the results in a database. About 6 years ago, we got a 'CMM' test machine. It's a cool little machine, a camera mounted on a moving platform, that can be programmed to measure parts (height width and length...pretty slick...). Anyhow, the guy that was going to 'program' that machine, wanted to store the data in a database. I whipped up a database and a .dll he could use in that softwares scripting language to handle the three types of 'runs' he was going to perform. Worked great. About 4 years ago, we got another machine of the same type to be used at a different step in our manufacturing process. This machine was going to have a lot more then 3 types of runs though. So I decided, back then, to build a 'data acquisition' system. With the exception of that first CMM, all of our test machines dumped their data into databases developed by a engineering software guy, who's concepts of how to create a database were as far away from relational that you could get. So, what I built, was a system where the 'developer' could create a 'program'. A program was a set of fields. Each field had a data type, min max limits, etc. Then the developer could use the DataAcquisition .dll to record the data into a relational database. A 'univeral' database, designed so that all of that data could be put in the same database, and easily searched. This system had another design consideration. Our test machines were currently recording their data into a local .mdb. And we had setup some processes to copy those databases to a network drive on a daily basis. The problem with that, is that as those databases got larger, the copy process took longer, and we still had 15 to 20 separate databases being stored on our network. The system I designed was intended to run on the local machine, and then push only the new data (not the whole database) to a server database. On top of that, each test machine had a 'website' setup, so that you could query the local database on that test machine, without having to open the .mdb across the network. This is where I stumbled across a neat trick with excel yesterday/today. That Data Acquisition project was completed to about 80% 4 years ago. That new CMM test machine, records it's data into it, but the 'custom' reporting engine I planned for it, and the server side database push was never completed. And, that is the only machine using the system, instead of all machines, which was the end goal. Well, now it's getting pushing back into the limelight, so it's on my list of must do projects. When initially designing this system, I always had in the back of my mind, that I wanted to create an Excel Add-on to work with the system. Our engineers LOVE excel, and constantly want their data in it. So I envisioned created an Add-on that let them select the test machine of their choice, then the 'program' and other criteria that would then populate their spreadsheet. The quirk is, I already have a webpage that grabs the data. I didn't want excel to hit that .mdb over the network, I wanted it to use the webserver on the test machines (or a network 'intranet' to hit the server side database). So when I was mulling this issue over yesterday, I thought to myself: Self: The web pages being produced are just HTML tables. Self: Excel is just a big table. Self: You can copy and paste an HTML table into excel. Self: I wonder if Excel could just 'open' the HTML page. And it does. Workbooks.Open Filename:= _ "http://fecmm/batchreport.asp?BatchID=3569", ReadOnly:=True That line opens the HTML table right into excel. It even sets the column widths the same. Pretty cool, I think. All I'll have to do with that Addin, is open a workbook with the right URL, and Excel does all the work populating it's workbook! Woohoo! Drew The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This email and any attachments may contain privileged and confidential information and are intended for the named addressee only. If you have received this e-mail in error, please notify the sender and delete this e-mail immediately. Any confidentiality, privilege or copyright is not waived or lost because this e-mail has been sent to you in error. It is your responsibility to check this e-mail and any attachments for viruses. No warranty is made that this material is free from computer virus or any other defect or error. Any loss/damage incurred by using this material is not the sender's responsibility. The sender's entire liability will be limited to resupplying the material. From Gustav at cactus.dk Sun Mar 16 03:01:17 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Sun, 16 Mar 2008 09:01:17 +0100 Subject: [AccessD] OT: Sudoku (Arthur) Message-ID: Didn't Arthur play around with some Sudoku code? Anyway, this tiny solver claims to be able to work out any puzzle in a millisecond: http://software.techrepublic.com.com/download.aspx?docid=268679 /gustav From bbruen at unwired.com.au Sun Mar 16 04:28:02 2008 From: bbruen at unwired.com.au (Bruce Bruen) Date: Sun, 16 Mar 2008 20:28:02 +1100 Subject: [AccessD] OT: Sudoku (Arthur) In-Reply-To: References: Message-ID: <200803162028.04391.bbruen@unwired.com.au> On Sun, 16 Mar 2008 07:01:17 pm Gustav Brock wrote: > Didn't Arthur play around with some Sudoku code? > > Anyway, this tiny solver claims to be able to work out any puzzle in a > millisecond: > > http://software.techrepublic.com.com/download.aspx?docid=268679 > > /gustav http://angusj.com/sudoku/ is the best M$ one I've found, or if you're a linux nut there is a ksudoku somewhere. -- regards Bruce From fuller.artful at gmail.com Sun Mar 16 07:13:20 2008 From: fuller.artful at gmail.com (Arthur Fuller) Date: Sun, 16 Mar 2008 08:13:20 -0400 Subject: [AccessD] DB/OS market statistics Message-ID: <29f585dd0803160513n7a81b5a5hafc24017ff1720ba@mail.gmail.com> Here are some interesting stats about the job market for OSes, DBs and programming languages. A. ---------- Forwarded message ---------- From: Peter Brawley Date: Mar 16, 2008 1:42 AM Subject: the db devel market To: Arthur Fuller http://www.joinvision.com/jv/x/n/t-TStatMarket-loc-en From joe at anamericanjoe.us Sun Mar 16 12:49:06 2008 From: joe at anamericanjoe.us (Joe Hecht) Date: Sun, 16 Mar 2008 10:49:06 -0700 Subject: [AccessD] Software to repair corrupt database In-Reply-To: <47DBCF09.6090407@torchlake.com> References: <47DBCF09.6090407@torchlake.com> Message-ID: <000001c8878e$0845b130$6401a8c0@ACER2G> Hi Tina, I do nit know if FMSINC.com has anything but that might be worth a look for long term. What happens if you import everything in the current problem mdb into a new file? That has helped me once or twice. Joe Hecht Joe at anamericanjoe.us -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Tina Norris Fields Sent: Saturday, March 15, 2008 6:29 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Software to repair corrupt database Hi Gustav, Oh yes, the right thing to do is to deal with the sources of corruption! And I will use the fine message you sent me to back up my comments to these lovely people. I have rescued them a few times, even making minor adjustments to their database. My friend Wayne Madison, who developed it for them back in 1999 or 2000, tried unsuccessfully to get the previous management to institute certain procedures. I have tried, also unsuccessfully, to get them to take serious responsibility for protecting their database. But, now, I think I have their attention. For some weeks, now, they have been unable to send out acknowledgement letters to the people who make donations to them. First, because they edited the mail-merge document and scrambled the fields in the letter, and now, because of a system-crash corruption. I have bookmarked the Garry Robinson page. Thank you for the link. Still, I would like to find a good utility for my own, or my clients', next emergency. Thanks for your response, Tina Gustav Brock wrote: > Hi Tina > > First, you could double-check with the service of Garry Robinson: > > http://www.vb123.com/fixaccess/ > > Then I would rather spend yours and the client's limited resources on dealing with the sources for corruption: > > - split the database > - arrange for a decent backup to a different or external drive > - use Win98 for simple lookups and the like > - perform mail merge on the most powerful machine > > Should be quite easy to carry out ... > > The only tools I have used for repairing databases is JetComp and a hex editor. > > /gustav > > >>>> tinanfields at torchlake.com 15-03-2008 12:52 >>> >>>> > Hi All, > > A local organization has a nice database of donors, members, and similar > stuff. It was probably first crafted in A97. I did not build it, but > know the developer who did (he's a very talented guy who keeps > disappearing). The organization has the database on a small server with > three or four computers having access to the database. The database is > not split into BE and FE, it is simply shared. The computers used for > accessing the database are of different operating systems, of course, > ranging from Win98 to WinXP. > > The Win98 machine was being used to run a mail merge acknowledgement > letter in Word that is populated by a parameter select query in the > database. The Win98 machine choked and froze. The database was > unusable after that. The message received whenever one tried to open it > was " isn't an index in this table. Look in the indexes > collection of the TableDef object to determine the valid index names." > Clear case of corruption! > > I had been working to fix a wrecked mail-merge document, so was present > when the system froze. I asked about the most recent backup and was > told that they had no idea how the backup was done, but their network > guru said it was done automatically. Great! say I, get the backup from > Jim and we will go back to the mail-merge. Well, they would have to > call Jim. . . . A week later, I had heard nothing back from them so I > called. Well, Jim said the whole system is automatically backed up, but > he can't just get the Access database out for them. Jim and his group > have been trying to repair the database, but they haven't succeeded. > > Meanwhile, I've been out looking for software to repair corrupted Access > databases, and I've found a couple that let me run a demo for free, but > will cost about $300 USD to actually get the output file. They are: > Advanced Access Repair from Data Numen Inc. and AccessFIX from > Cimaware. They appear to work, although AccessFIX demo indicated that > part of the structure couldn't be determined without a copy to compare > to. (That would not be awfully difficult, because whenever I visit this > organization I make a backup copy of the database, so the dated copy I > made in October of 2006 is still there.) The $300 USD price-tag is a > bit stiff. > > I found a repair service at corruptfilerepair.com. I sent them the > zipped corrupt database, and they have sent me an email with a > screen-shot of the repaired database, showing the tables container and > one of the tables open. If I am satisfied, they will send me a payment > link and I will pay them $39 USD and they will send back the repaired > database. This price seems reasonable, and I am willing to pay that > much to get my friends back up and running. > > For the future, I would like to have in my own possession a decent > utility for repairing corrupt databases. What can you, my favorite team > of real gurus, tell me about such software? > > Thanks for all help, > Tina > > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From fuller.artful at gmail.com Mon Mar 17 01:54:37 2008 From: fuller.artful at gmail.com (Arthur Fuller) Date: Mon, 17 Mar 2008 02:54:37 -0400 Subject: [AccessD] Access 2003 problem with pivotchart -- Solved Message-ID: <29f585dd0803162354l59d03fb0l73510e96ebf5e9a2@mail.gmail.com> It is now clear that something in my installation is broken. Thanks to the recent MS launch, I received a copy of Windows Server 2008 64 bit (and SQL 2008 64-bit too). I've never had a 64-bit OS before, so I was eager to try it. I also installed Office 2003 on said partition even though it's only 32 bit. Lo and behold, that instance of Access does pivot table and pivot chart exactly as you would expect. So clearly something is broken on my 32 bit partition. Now that I know this, I can do what I need to do on the current app. I'll just boot the 64 bit OS and do the work there. Arthur On 3/13/08, Dan Waters wrote: > > Rats! - that was the total of my knowledge of how to view a pivot chart. > > > Dan > > > -----Original Message----- > Subject: Re: [AccessD] Access 2003 problem with pivotchart > > > There is no code at all behind the form. I just selected the Sales by > Category query and clicked Form and then PivotChart and got a simple form. > I > checked in design mode and verified the Allow-View settings, and no joy. > So > code is not doing it, and neither are the view properties. > > A. > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From max.wanadoo at gmail.com Mon Mar 17 03:20:39 2008 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Mon, 17 Mar 2008 08:20:39 -0000 Subject: [AccessD] Report Data Order Differs From Form or Query Data Order In-Reply-To: References: Message-ID: <001801c88807$c9cd1b30$8119fea9@LTVM> Hi All, I have come across this perplexing problem and wonder if anybody can throw any light on it. I have a database (A3K) where address records are checked and a mailsort code inserted into a field. Once all records have been processed the table is then parsed and a bagbreak code inserted into another field based on the number of items allowed per bag. A bagbreak is also inserted when the mailsort code changes to a new code. All this works ok and is here for background information, you do not need to worrry about how all this works. Here is the problem however. It is essential that the records are processed in the correct order so that mail bags are filled correctly and bag breaks are shown in the correct order. This works ok when I view the records in a FORM. It also works ok when I view the records via a Query. However, when I view the records via a REPORT the order is different. I have created blank basic no options, no sortation,no filters etc etc reports and yet the order is still different from that given by the FORM or the QUERY. Is there a different "engine" used by the RPORT as opposed to that used by the FORM/QUERY? Any insights would be appreciated. Thanks Max From Gustav at cactus.dk Mon Mar 17 03:26:59 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 17 Mar 2008 09:26:59 +0100 Subject: [AccessD] Report Data Order Differs From Form or Query Data Order Message-ID: Hi Max Yes, _always_ use the sorting/grouping option of the report (and leave the source unsorted) if you have a specific sorting/order need - which is true for most reports. /gustav >>> max.wanadoo at gmail.com 17-03-2008 09:20 >>> Is there a different "engine" used by the RPORT as opposed to that used by the FORM/QUERY? From max.wanadoo at gmail.com Mon Mar 17 04:52:18 2008 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Mon, 17 Mar 2008 09:52:18 -0000 Subject: [AccessD] Report Data Order Differs From Form or Query DataOrder In-Reply-To: References: Message-ID: <001201c88814$975babf0$8119fea9@LTVM> Hi Gustav, Generally I accept what you are saying. But, no matter what I do, I cannot get the report to have the same ORDER as the Form. The query is SELECT * FROM LotterySpring2008 ORDER BY LotterySpring2008.Mailsort; The Query is called qryReportDataTemp. The contents is dynamically created from code where the tablename changes based on the user requirements. The SOURCE for the Form is qryReportDataTemp The SOURCE for the Report is also qryReportDataTemp No filters, etc applied. The Form shows records in correct order. The Report does not. Even if, as you suggest, I use the sorting/grouping option and explicitly state "Mailsort" Ascending. The ORDER of the records display in the report is NOT the same ORDER as those display in the FORM or that which is shown if you open the QUERY directly. It appears to me that there is a different ENGINE driving the Report. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, March 17, 2008 8:27 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Report Data Order Differs From Form or Query DataOrder Hi Max Yes, _always_ use the sorting/grouping option of the report (and leave the source unsorted) if you have a specific sorting/order need - which is true for most reports. /gustav >>> max.wanadoo at gmail.com 17-03-2008 09:20 >>> Is there a different "engine" used by the RPORT as opposed to that used by the FORM/QUERY? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Mon Mar 17 05:09:47 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 17 Mar 2008 11:09:47 +0100 Subject: [AccessD] Report Data Order Differs From Form or Query DataOrder Message-ID: Hi Max Did you use the sorting/grouping option of the _report_ and left the source unsorted: SELECT * FROM LotterySpring2008; /gustav >>> max.wanadoo at gmail.com 17-03-2008 10:52 >>> Hi Gustav, Generally I accept what you are saying. But, no matter what I do, I cannot get the report to have the same ORDER as the Form. The query is SELECT * FROM LotterySpring2008 ORDER BY LotterySpring2008.Mailsort; The Query is called qryReportDataTemp. The contents is dynamically created from code where the tablename changes based on the user requirements. The SOURCE for the Form is qryReportDataTemp The SOURCE for the Report is also qryReportDataTemp No filters, etc applied. The Form shows records in correct order. The Report does not. Even if, as you suggest, I use the sorting/grouping option and explicitly state "Mailsort" Ascending. The ORDER of the records display in the report is NOT the same ORDER as those display in the FORM or that which is shown if you open the QUERY directly. It appears to me that there is a different ENGINE driving the Report. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, March 17, 2008 8:27 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Report Data Order Differs From Form or Query DataOrder Hi Max Yes, _always_ use the sorting/grouping option of the report (and leave the source unsorted) if you have a specific sorting/order need - which is true for most reports. /gustav >>> max.wanadoo at gmail.com 17-03-2008 09:20 >>> Is there a different "engine" used by the RPORT as opposed to that used by the FORM/QUERY? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Mon Mar 17 09:18:00 2008 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Mon, 17 Mar 2008 14:18:00 -0000 Subject: [AccessD] Report Data Order Differs From Form or Query DataOrder In-Reply-To: References: Message-ID: <008c01c88839$b5543fd0$8119fea9@LTVM> Hi Gustav, I tried various things, but the bottom line is that where there are repeating codes I am not confident that the report will pull the records in the exact same order as it did for the Form even though it "appears" to do so with the changes you suggest. So, I have added an extra field which is incremented at the same time as the codes are processed/entered and both the forms and the report now sequence on that fields - fool proof! Thanks for the feedback - much appreciated. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, March 17, 2008 10:10 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Report Data Order Differs From Form or Query DataOrder Hi Max Did you use the sorting/grouping option of the _report_ and left the source unsorted: SELECT * FROM LotterySpring2008; /gustav >>> max.wanadoo at gmail.com 17-03-2008 10:52 >>> Hi Gustav, Generally I accept what you are saying. But, no matter what I do, I cannot get the report to have the same ORDER as the Form. The query is SELECT * FROM LotterySpring2008 ORDER BY LotterySpring2008.Mailsort; The Query is called qryReportDataTemp. The contents is dynamically created from code where the tablename changes based on the user requirements. The SOURCE for the Form is qryReportDataTemp The SOURCE for the Report is also qryReportDataTemp No filters, etc applied. The Form shows records in correct order. The Report does not. Even if, as you suggest, I use the sorting/grouping option and explicitly state "Mailsort" Ascending. The ORDER of the records display in the report is NOT the same ORDER as those display in the FORM or that which is shown if you open the QUERY directly. It appears to me that there is a different ENGINE driving the Report. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, March 17, 2008 8:27 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Report Data Order Differs From Form or Query DataOrder Hi Max Yes, _always_ use the sorting/grouping option of the report (and leave the source unsorted) if you have a specific sorting/order need - which is true for most reports. /gustav >>> max.wanadoo at gmail.com 17-03-2008 09:20 >>> Is there a different "engine" used by the RPORT as opposed to that used by the FORM/QUERY? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Mon Mar 17 09:30:33 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 17 Mar 2008 15:30:33 +0100 Subject: [AccessD] Report Data Order Differs From Form or Query DataOrder Message-ID: Hi Max Oh, now I see. You have to sort on something unique to obtain the exact same sort order. If the fields you wish to sort on in the report do not form a compound unique key, then include the PK in the query and pull it (invisibly) into the report and sort on that as the last field. /gustav >>> max.wanadoo at gmail.com 17-03-2008 15:18 >>> Hi Gustav, I tried various things, but the bottom line is that where there are repeating codes I am not confident that the report will pull the records in the exact same order as it did for the Form even though it "appears" to do so with the changes you suggest. So, I have added an extra field which is incremented at the same time as the codes are processed/entered and both the forms and the report now sequence on that fields - fool proof! Thanks for the feedback - much appreciated. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, March 17, 2008 10:10 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Report Data Order Differs From Form or Query DataOrder Hi Max Did you use the sorting/grouping option of the _report_ and left the source unsorted: SELECT * FROM LotterySpring2008; /gustav >>> max.wanadoo at gmail.com 17-03-2008 10:52 >>> Hi Gustav, Generally I accept what you are saying. But, no matter what I do, I cannot get the report to have the same ORDER as the Form. The query is SELECT * FROM LotterySpring2008 ORDER BY LotterySpring2008.Mailsort; The Query is called qryReportDataTemp. The contents is dynamically created from code where the tablename changes based on the user requirements. The SOURCE for the Form is qryReportDataTemp The SOURCE for the Report is also qryReportDataTemp No filters, etc applied. The Form shows records in correct order. The Report does not. Even if, as you suggest, I use the sorting/grouping option and explicitly state "Mailsort" Ascending. The ORDER of the records display in the report is NOT the same ORDER as those display in the FORM or that which is shown if you open the QUERY directly. It appears to me that there is a different ENGINE driving the Report. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, March 17, 2008 8:27 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Report Data Order Differs From Form or Query DataOrder Hi Max Yes, _always_ use the sorting/grouping option of the report (and leave the source unsorted) if you have a specific sorting/order need - which is true for most reports. /gustav >>> max.wanadoo at gmail.com 17-03-2008 09:20 >>> Is there a different "engine" used by the RPORT as opposed to that used by From rockysmolin at bchacc.com Mon Mar 17 10:09:39 2008 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Mon, 17 Mar 2008 08:09:39 -0700 Subject: [AccessD] Array is locked Message-ID: <003601c88840$ebf89340$0301a8c0@HAL9005> Dear List: I am getting an error 10 - This array is fixed or temporarily locked - when executing: ReDim Preserve mudTH(1 To UBound(mudTH) - lngDeletes) where Ubound(mudTH) = 41 and lngDeletes = 40. The conditions which would cause this as listed in the Help do not seem to apply in this case. Access, being what it is, the error may not be exactly descriptive. Does anyone know of other reasons why you might get this error on a ReDim Preserve? MTIA Rocky From Gustav at cactus.dk Mon Mar 17 10:19:34 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 17 Mar 2008 16:19:34 +0100 Subject: [AccessD] Array is locked Message-ID: Hi Rocky If ReDim Preserve mudTH(1 To 1) works, I would first calculate UBound(mudTH) - lngDeletes in a variable and then use that. /gustav >>> rockysmolin at bchacc.com 17-03-2008 16:09 >>> Dear List: I am getting an error 10 - This array is fixed or temporarily locked - when executing: ReDim Preserve mudTH(1 To UBound(mudTH) - lngDeletes) where Ubound(mudTH) = 41 and lngDeletes = 40. The conditions which would cause this as listed in the Help do not seem to apply in this case. Access, being what it is, the error may not be exactly descriptive. Does anyone know of other reasons why you might get this error on a ReDim Preserve? MTIA Rocky From rockysmolin at bchacc.com Mon Mar 17 10:31:54 2008 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Mon, 17 Mar 2008 08:31:54 -0700 Subject: [AccessD] Array is locked In-Reply-To: References: Message-ID: <004501c88844$07fb4300$0301a8c0@HAL9005> Gustav: I modified the code to: If lngDeletes <> 0 Then Dim lngTemp As Long lngTemp = UBound(mudTH) - lngDeletes 'ReDim Preserve mudTH(1 To UBound(mudTH) - lngDeletes) ReDim Preserve mudTH(1 To lngTemp) End If But got the locked error anyway. Could it have soething to do with the fact that the array is DIMmed as THRecord where THRecord is a Type? TIA Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, March 17, 2008 8:20 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Array is locked Hi Rocky If ReDim Preserve mudTH(1 To 1) works, I would first calculate UBound(mudTH) - lngDeletes in a variable and then use that. /gustav >>> rockysmolin at bchacc.com 17-03-2008 16:09 >>> Dear List: I am getting an error 10 - This array is fixed or temporarily locked - when executing: ReDim Preserve mudTH(1 To UBound(mudTH) - lngDeletes) where Ubound(mudTH) = 41 and lngDeletes = 40. The conditions which would cause this as listed in the Help do not seem to apply in this case. Access, being what it is, the error may not be exactly descriptive. Does anyone know of other reasons why you might get this error on a ReDim Preserve? MTIA 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. Version: 7.5.519 / Virus Database: 269.21.7/1331 - Release Date: 3/16/2008 10:34 AM From max.wanadoo at gmail.com Mon Mar 17 10:43:30 2008 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Mon, 17 Mar 2008 15:43:30 -0000 Subject: [AccessD] Report Data Order Differs From Form or Query DataOrder In-Reply-To: References: Message-ID: <00a201c88845$a7324670$8119fea9@LTVM> Hi Gustav, No, I MUST NOT change the sequence in any way. Once it has been processed through a loop, each record will have a mailsort bagbreak inserted based on its real life position in the table. This must not change in any way from there on. No filters, no indexes etc, it must be the exact order it was in when it was processed. Thanks anyway. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, March 17, 2008 2:31 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Report Data Order Differs From Form or Query DataOrder Hi Max Oh, now I see. You have to sort on something unique to obtain the exact same sort order. If the fields you wish to sort on in the report do not form a compound unique key, then include the PK in the query and pull it (invisibly) into the report and sort on that as the last field. /gustav >>> max.wanadoo at gmail.com 17-03-2008 15:18 >>> Hi Gustav, I tried various things, but the bottom line is that where there are repeating codes I am not confident that the report will pull the records in the exact same order as it did for the Form even though it "appears" to do so with the changes you suggest. So, I have added an extra field which is incremented at the same time as the codes are processed/entered and both the forms and the report now sequence on that fields - fool proof! Thanks for the feedback - much appreciated. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, March 17, 2008 10:10 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Report Data Order Differs From Form or Query DataOrder Hi Max Did you use the sorting/grouping option of the _report_ and left the source unsorted: SELECT * FROM LotterySpring2008; /gustav >>> max.wanadoo at gmail.com 17-03-2008 10:52 >>> Hi Gustav, Generally I accept what you are saying. But, no matter what I do, I cannot get the report to have the same ORDER as the Form. The query is SELECT * FROM LotterySpring2008 ORDER BY LotterySpring2008.Mailsort; The Query is called qryReportDataTemp. The contents is dynamically created from code where the tablename changes based on the user requirements. The SOURCE for the Form is qryReportDataTemp The SOURCE for the Report is also qryReportDataTemp No filters, etc applied. The Form shows records in correct order. The Report does not. Even if, as you suggest, I use the sorting/grouping option and explicitly state "Mailsort" Ascending. The ORDER of the records display in the report is NOT the same ORDER as those display in the FORM or that which is shown if you open the QUERY directly. It appears to me that there is a different ENGINE driving the Report. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, March 17, 2008 8:27 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Report Data Order Differs From Form or Query DataOrder Hi Max Yes, _always_ use the sorting/grouping option of the report (and leave the source unsorted) if you have a specific sorting/order need - which is true for most reports. /gustav >>> max.wanadoo at gmail.com 17-03-2008 09:20 >>> Is there a different "engine" used by the RPORT as opposed to that used by -- 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 Mar 17 10:47:23 2008 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Mon, 17 Mar 2008 10:47:23 -0500 Subject: [AccessD] Array is locked Message-ID: <34C8A2AB1EF3564CB0D64DB6AFFDD5C211DF6550@XLIVMBX35bkup.aig.com> Rocky, Just tried this code... Type fooBar x As Long y As String End Type Sub ArryTest() Dim lngDeletes As Long Dim mudTH() As fooBar ReDim mudTH(1 To 41) lngDeletes = 40 If lngDeletes <> 0 Then Dim lngTemp As Long lngTemp = UBound(mudTH) - lngDeletes ReDim Preserve mudTH(1 To lngTemp) End If End Sub This executes with no complaints at all. So the questions in my mind are what does you user defined type look like and what does the rest of your code do with the array? Are there any objects stored in the array? Could you have some reference in memory to one of the 'deleted' elements, so when you try to Redim to a smaller sized array the object reference is causing the lock? Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Monday, March 17, 2008 11:32 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Array is locked Gustav: I modified the code to: If lngDeletes <> 0 Then Dim lngTemp As Long lngTemp = UBound(mudTH) - lngDeletes 'ReDim Preserve mudTH(1 To UBound(mudTH) - lngDeletes) ReDim Preserve mudTH(1 To lngTemp) End If But got the locked error anyway. Could it have soething to do with the fact that the array is DIMmed as THRecord where THRecord is a Type? TIA Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, March 17, 2008 8:20 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Array is locked Hi Rocky If ReDim Preserve mudTH(1 To 1) works, I would first calculate UBound(mudTH) - lngDeletes in a variable and then use that. /gustav >>> rockysmolin at bchacc.com 17-03-2008 16:09 >>> Dear List: I am getting an error 10 - This array is fixed or temporarily locked - when executing: ReDim Preserve mudTH(1 To UBound(mudTH) - lngDeletes) where Ubound(mudTH) = 41 and lngDeletes = 40. The conditions which would cause this as listed in the Help do not seem to apply in this case. Access, being what it is, the error may not be exactly descriptive. Does anyone know of other reasons why you might get this error on a ReDim Preserve? MTIA 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. Version: 7.5.519 / Virus Database: 269.21.7/1331 - Release Date: 3/16/2008 10:34 AM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at gmail.com Mon Mar 17 10:49:21 2008 From: ssharkins at gmail.com (Susan Harkins) Date: Mon, 17 Mar 2008 11:49:21 -0400 Subject: [AccessD] Report Data Order Differs From Form or Query DataOrder References: <00a201c88845$a7324670$8119fea9@LTVM> Message-ID: <017301c88846$7f8c79a0$4b3a8343@SusanOne> Can't you save the sort as a temporary table and build your report on that? Susan H. > No, I MUST NOT change the sequence in any way. Once it has been processed > through a loop, each record will have a mailsort bagbreak inserted based > on > its real life position in the table. This must not change in any way from > there on. No filters, no indexes etc, it must be the exact order it was > in > when it was processed. > Thanks anyway. From Gustav at cactus.dk Mon Mar 17 10:53:49 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 17 Mar 2008 16:53:49 +0100 Subject: [AccessD] Report Data Order Differs From Form or Query DataOrder Message-ID: Hi Max I didn't say that. If you (now) have established a unique sorting you will, of course, preserve that. The only place to do this for the report is, however, in the report. That's the point. /gustav >>> max.wanadoo at gmail.com 17-03-2008 16:43 >>> Hi Gustav, No, I MUST NOT change the sequence in any way. Once it has been processed through a loop, each record will have a mailsort bagbreak inserted based on its real life position in the table. This must not change in any way from there on. No filters, no indexes etc, it must be the exact order it was in when it was processed. Thanks anyway. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, March 17, 2008 2:31 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Report Data Order Differs From Form or Query DataOrder Hi Max Oh, now I see. You have to sort on something unique to obtain the exact same sort order. If the fields you wish to sort on in the report do not form a compound unique key, then include the PK in the query and pull it (invisibly) into the report and sort on that as the last field. /gustav >>> max.wanadoo at gmail.com 17-03-2008 15:18 >>> Hi Gustav, I tried various things, but the bottom line is that where there are repeating codes I am not confident that the report will pull the records in the exact same order as it did for the Form even though it "appears" to do so with the changes you suggest. So, I have added an extra field which is incremented at the same time as the codes are processed/entered and both the forms and the report now sequence on that fields - fool proof! Thanks for the feedback - much appreciated. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, March 17, 2008 10:10 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Report Data Order Differs From Form or Query DataOrder Hi Max Did you use the sorting/grouping option of the _report_ and left the source unsorted: SELECT * FROM LotterySpring2008; /gustav >>> max.wanadoo at gmail.com 17-03-2008 10:52 >>> Hi Gustav, Generally I accept what you are saying. But, no matter what I do, I cannot get the report to have the same ORDER as the Form. The query is SELECT * FROM LotterySpring2008 ORDER BY LotterySpring2008.Mailsort; The Query is called qryReportDataTemp. The contents is dynamically created from code where the tablename changes based on the user requirements. The SOURCE for the Form is qryReportDataTemp The SOURCE for the Report is also qryReportDataTemp No filters, etc applied. The Form shows records in correct order. The Report does not. Even if, as you suggest, I use the sorting/grouping option and explicitly state "Mailsort" Ascending. The ORDER of the records display in the report is NOT the same ORDER as those display in the FORM or that which is shown if you open the QUERY directly. It appears to me that there is a different ENGINE driving the Report. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, March 17, 2008 8:27 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Report Data Order Differs From Form or Query DataOrder Hi Max Yes, _always_ use the sorting/grouping option of the report (and leave the source unsorted) if you have a specific sorting/order need - which is true for most reports. /gustav >>> max.wanadoo at gmail.com 17-03-2008 09:20 >>> Is there a different "engine" used by the RPORT as opposed to that used by From Gustav at cactus.dk Mon Mar 17 10:57:21 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 17 Mar 2008 16:57:21 +0100 Subject: [AccessD] Array is locked Message-ID: Hi Rocky As Lambert, I ran a small test, and code similar to yours runs fine, so I guess something else is going on at your place between this ReDim and the previous ReDim. /gustav >>> rockysmolin at bchacc.com 17-03-2008 16:31 >>> Gustav: I modified the code to: If lngDeletes <> 0 Then Dim lngTemp As Long lngTemp = UBound(mudTH) - lngDeletes 'ReDim Preserve mudTH(1 To UBound(mudTH) - lngDeletes) ReDim Preserve mudTH(1 To lngTemp) End If But got the locked error anyway. Could it have soething to do with the fact that the array is DIMmed as THRecord where THRecord is a Type? TIA Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, March 17, 2008 8:20 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Array is locked Hi Rocky If ReDim Preserve mudTH(1 To 1) works, I would first calculate UBound(mudTH) - lngDeletes in a variable and then use that. /gustav >>> rockysmolin at bchacc.com 17-03-2008 16:09 >>> Dear List: I am getting an error 10 - This array is fixed or temporarily locked - when executing: ReDim Preserve mudTH(1 To UBound(mudTH) - lngDeletes) where Ubound(mudTH) = 41 and lngDeletes = 40. The conditions which would cause this as listed in the Help do not seem to apply in this case. Access, being what it is, the error may not be exactly descriptive. Does anyone know of other reasons why you might get this error on a ReDim Preserve? MTIA Rocky From rockysmolin at bchacc.com Mon Mar 17 11:10:00 2008 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Mon, 17 Mar 2008 09:10:00 -0700 Subject: [AccessD] Array is locked In-Reply-To: <34C8A2AB1EF3564CB0D64DB6AFFDD5C211DF6550@XLIVMBX35bkup.aig.com> References: <34C8A2AB1EF3564CB0D64DB6AFFDD5C211DF6550@XLIVMBX35bkup.aig.com> Message-ID: <000001c88849$5a4f8490$0301a8c0@HAL9005> Lambert: Here's the Type: Private Type THRecord TaskID As Long 'T StartDate As Date 'S DueDate As Date 'D QuasiDueDate As Date 'Q TargetDate As Date 'R RequiredHours As Double 'H EarliestCompleteDate As Date 'C ASAP As Double 'A fOrdering As Boolean 'F ErrorHours As Double 'E TempReg As Double 'Z DueDateFlag As Boolean 'FD PastDueFlag As Boolean 'FP ASAPFlag As Boolean 'FA TargetDateFlag As Boolean 'FT End Type Dim mudTH() As THRecord 'TH There are lots of references to elements in the aray but at the point where the redim occurs, there are no references. Does any reference lock the array and then the lock persists? Is there a way to determine what element in an array is causing the lock or a way to release the array? TIA Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Monday, March 17, 2008 8:47 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Array is locked Rocky, Just tried this code... Type fooBar x As Long y As String End Type Sub ArryTest() Dim lngDeletes As Long Dim mudTH() As fooBar ReDim mudTH(1 To 41) lngDeletes = 40 If lngDeletes <> 0 Then Dim lngTemp As Long lngTemp = UBound(mudTH) - lngDeletes ReDim Preserve mudTH(1 To lngTemp) End If End Sub This executes with no complaints at all. So the questions in my mind are what does you user defined type look like and what does the rest of your code do with the array? Are there any objects stored in the array? Could you have some reference in memory to one of the 'deleted' elements, so when you try to Redim to a smaller sized array the object reference is causing the lock? Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Monday, March 17, 2008 11:32 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Array is locked Gustav: I modified the code to: If lngDeletes <> 0 Then Dim lngTemp As Long lngTemp = UBound(mudTH) - lngDeletes 'ReDim Preserve mudTH(1 To UBound(mudTH) - lngDeletes) ReDim Preserve mudTH(1 To lngTemp) End If But got the locked error anyway. Could it have soething to do with the fact that the array is DIMmed as THRecord where THRecord is a Type? TIA Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, March 17, 2008 8:20 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Array is locked Hi Rocky If ReDim Preserve mudTH(1 To 1) works, I would first calculate UBound(mudTH) - lngDeletes in a variable and then use that. /gustav >>> rockysmolin at bchacc.com 17-03-2008 16:09 >>> Dear List: I am getting an error 10 - This array is fixed or temporarily locked - when executing: ReDim Preserve mudTH(1 To UBound(mudTH) - lngDeletes) where Ubound(mudTH) = 41 and lngDeletes = 40. The conditions which would cause this as listed in the Help do not seem to apply in this case. Access, being what it is, the error may not be exactly descriptive. Does anyone know of other reasons why you might get this error on a ReDim Preserve? MTIA 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. Version: 7.5.519 / Virus Database: 269.21.7/1331 - Release Date: 3/16/2008 10:34 AM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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. Version: 7.5.519 / Virus Database: 269.21.7/1331 - Release Date: 3/16/2008 10:34 AM From fuller.artful at gmail.com Mon Mar 17 11:26:40 2008 From: fuller.artful at gmail.com (Arthur Fuller) Date: Mon, 17 Mar 2008 12:26:40 -0400 Subject: [AccessD] Disable a subform Message-ID: <29f585dd0803170926q383b8f09x62a549a20c6d000@mail.gmail.com> I have code that displays a toolbar with buttons for Filter By Form and Close (equivalent to remove filter). The code works fine. The problem is that the form in question has a subform, and the result is that both forms go into Filter by Form mode. Normally that would be slick, but in this case not. I'm thinking that it may work if I disable the subform. I've forgotten the syntax. I want something like: Forms("myForm").subForm.Form.AllowEdits = False Or something. TIA, Arthur From fuller.artful at gmail.com Mon Mar 17 11:31:22 2008 From: fuller.artful at gmail.com (Arthur Fuller) Date: Mon, 17 Mar 2008 12:31:22 -0400 Subject: [AccessD] Array is locked In-Reply-To: <000001c88849$5a4f8490$0301a8c0@HAL9005> References: <34C8A2AB1EF3564CB0D64DB6AFFDD5C211DF6550@XLIVMBX35bkup.aig.com> <000001c88849$5a4f8490$0301a8c0@HAL9005> Message-ID: <29f585dd0803170931s5ce619docf1e296ad536ecd5@mail.gmail.com> Just a wag, Rocky, but what if you ReDimmed the array element by element? It might be that something somewhere in the middle is causing the problem. You could easily find out whether the whole array is locked by just shrinking it one element. If that works then try the loop and decrement the size until she goes boom. Just a wag, as I said. Arthur On 3/17/08, Rocky Smolin at Beach Access Software wrote: > > Lambert: > > Here's the Type: > > Private Type THRecord > TaskID As Long 'T > StartDate As Date 'S > DueDate As Date 'D > QuasiDueDate As Date 'Q > TargetDate As Date 'R > RequiredHours As Double 'H > EarliestCompleteDate As Date 'C > ASAP As Double 'A > fOrdering As Boolean 'F > ErrorHours As Double 'E > TempReg As Double 'Z > DueDateFlag As Boolean 'FD > PastDueFlag As Boolean 'FP > ASAPFlag As Boolean 'FA > TargetDateFlag As Boolean 'FT > End Type > Dim mudTH() As THRecord 'TH > > There are lots of references to elements in the aray but at the point > where > the redim occurs, there are no references. Does any reference lock the > array and then the lock persists? Is there a way to determine what > element > in an array is causing the lock or a way to release the array? > > > TIA > > Rocky > > > From Lambert.Heenan at AIG.com Mon Mar 17 11:45:22 2008 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Mon, 17 Mar 2008 12:45:22 -0400 Subject: [AccessD] Array is locked Message-ID: <34C8A2AB1EF3564CB0D64DB6AFFDD5C211DF6556@XLIVMBX35bkup.aig.com> Well nothing revealing there. Just a whole bunch of standard types collected into a structure. Nothing that would need to be Set in code to create an instance. So that blows my theory about Objects out of the water. Short of seeing the code between the initial population of the array and the Redim statement the only thing I can think of is my mantra: "When Access starts acting weird it's time to decompile". It's *possible* that you just have a corrupted code module and the error message is spurious. So try backing up the application (a must do) and then decompile it to see if that cures the trouble. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Monday, March 17, 2008 12:10 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Array is locked Lambert: Here's the Type: Private Type THRecord TaskID As Long 'T StartDate As Date 'S DueDate As Date 'D QuasiDueDate As Date 'Q TargetDate As Date 'R RequiredHours As Double 'H EarliestCompleteDate As Date 'C ASAP As Double 'A fOrdering As Boolean 'F ErrorHours As Double 'E TempReg As Double 'Z DueDateFlag As Boolean 'FD PastDueFlag As Boolean 'FP ASAPFlag As Boolean 'FA TargetDateFlag As Boolean 'FT End Type Dim mudTH() As THRecord 'TH There are lots of references to elements in the aray but at the point where the redim occurs, there are no references. Does any reference lock the array and then the lock persists? Is there a way to determine what element in an array is causing the lock or a way to release the array? TIA Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Monday, March 17, 2008 8:47 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Array is locked Rocky, Just tried this code... Type fooBar x As Long y As String End Type Sub ArryTest() Dim lngDeletes As Long Dim mudTH() As fooBar ReDim mudTH(1 To 41) lngDeletes = 40 If lngDeletes <> 0 Then Dim lngTemp As Long lngTemp = UBound(mudTH) - lngDeletes ReDim Preserve mudTH(1 To lngTemp) End If End Sub This executes with no complaints at all. So the questions in my mind are what does you user defined type look like and what does the rest of your code do with the array? Are there any objects stored in the array? Could you have some reference in memory to one of the 'deleted' elements, so when you try to Redim to a smaller sized array the object reference is causing the lock? Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Monday, March 17, 2008 11:32 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Array is locked Gustav: I modified the code to: If lngDeletes <> 0 Then Dim lngTemp As Long lngTemp = UBound(mudTH) - lngDeletes 'ReDim Preserve mudTH(1 To UBound(mudTH) - lngDeletes) ReDim Preserve mudTH(1 To lngTemp) End If But got the locked error anyway. Could it have soething to do with the fact that the array is DIMmed as THRecord where THRecord is a Type? TIA Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, March 17, 2008 8:20 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Array is locked Hi Rocky If ReDim Preserve mudTH(1 To 1) works, I would first calculate UBound(mudTH) - lngDeletes in a variable and then use that. /gustav >>> rockysmolin at bchacc.com 17-03-2008 16:09 >>> Dear List: I am getting an error 10 - This array is fixed or temporarily locked - when executing: ReDim Preserve mudTH(1 To UBound(mudTH) - lngDeletes) where Ubound(mudTH) = 41 and lngDeletes = 40. The conditions which would cause this as listed in the Help do not seem to apply in this case. Access, being what it is, the error may not be exactly descriptive. Does anyone know of other reasons why you might get this error on a ReDim Preserve? MTIA 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. Version: 7.5.519 / Virus Database: 269.21.7/1331 - Release Date: 3/16/2008 10:34 AM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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. Version: 7.5.519 / Virus Database: 269.21.7/1331 - Release Date: 3/16/2008 10:34 AM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Mon Mar 17 11:49:21 2008 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Mon, 17 Mar 2008 09:49:21 -0700 Subject: [AccessD] Array is locked In-Reply-To: <29f585dd0803170931s5ce619docf1e296ad536ecd5@mail.gmail.com> References: <34C8A2AB1EF3564CB0D64DB6AFFDD5C211DF6550@XLIVMBX35bkup.aig.com><000001c88849$5a4f8490$0301a8c0@HAL9005> <29f585dd0803170931s5ce619docf1e296ad536ecd5@mail.gmail.com> Message-ID: <000101c8884e$d9d8cd70$0301a8c0@HAL9005> Arthur: I tried this: For lngI = 1 To UBound(mudTH) If mudTH(lngI).fOrdering = True Then If lngI <> UBound(mudTH) Then ' if not the last record in the TH array For lngL = lngI To UBound(mudTH) - 1 mudTH(lngL) = mudTH(lngL + 1) Next lngL End If lngDeletes = lngDeletes + 1 ReDim Preserve mudTH(UBound(mudTH) - 1) End If Next lngI 'If lngDeletes <> 0 Then ReDim Preserve mudTH(UBound(mudTH) - lngDeletes) Where before the first ReDim was commented out. I uncommented it and got the lock message first time .fOrdering was True. The rest of the code moves all the downstream elements of the array up one element to delete the current element. It's a legacy app and really one huge bowl of spaghetti. I'm thinking about going around the problems by substituting a variable lngUboundmudTH for everywhere the code uses UBound(mudTH) abd just reduce that variable in this case by lngDeletes. But finding all occurrences of UBound(mudTH) could be a problem since it might be in Control Sources, Record Sources, stored queries, almost anyplace. Like I say - legacy code. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Monday, March 17, 2008 9:31 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Array is locked Just a wag, Rocky, but what if you ReDimmed the array element by element? It might be that something somewhere in the middle is causing the problem. You could easily find out whether the whole array is locked by just shrinking it one element. If that works then try the loop and decrement the size until she goes boom. Just a wag, as I said. Arthur On 3/17/08, Rocky Smolin at Beach Access Software wrote: > > Lambert: > > Here's the Type: > > Private Type THRecord > TaskID As Long 'T > StartDate As Date 'S > DueDate As Date 'D > QuasiDueDate As Date 'Q > TargetDate As Date 'R > RequiredHours As Double 'H > EarliestCompleteDate As Date 'C > ASAP As Double 'A > fOrdering As Boolean 'F > ErrorHours As Double 'E > TempReg As Double 'Z > DueDateFlag As Boolean 'FD > PastDueFlag As Boolean 'FP > ASAPFlag As Boolean 'FA > TargetDateFlag As Boolean 'FT > End Type > Dim mudTH() As THRecord 'TH > > There are lots of references to elements in the aray but at the point > where the redim occurs, there are no references. Does any reference > lock the array and then the lock persists? Is there a way to > determine what element in an array is causing the lock or a way to > release the array? > > > TIA > > 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. Version: 7.5.519 / Virus Database: 269.21.7/1331 - Release Date: 3/16/2008 10:34 AM From lmrazek at lcm-res.com Mon Mar 17 12:43:28 2008 From: lmrazek at lcm-res.com (Lawrence Mrazek) Date: Mon, 17 Mar 2008 12:43:28 -0500 Subject: [AccessD] Access 2007 to Acc 2003 or XP? In-Reply-To: <000101c8884e$d9d8cd70$0301a8c0@HAL9005> References: <34C8A2AB1EF3564CB0D64DB6AFFDD5C211DF6550@XLIVMBX35bkup.aig.com><000001c88849$5a4f8490$0301a8c0@HAL9005><29f585dd0803170931s5ce619docf1e296ad536ecd5@mail.gmail.com> <000101c8884e$d9d8cd70$0301a8c0@HAL9005> Message-ID: <017301c88856$694650c0$036fa8c0@lcmdv8000> Hi Folks: Just learned that a new client uses Acc2007 for their web application, which doesn't work so well (which is why I'm going to develop a SQL frontend for them). Since I'm still waiting for my Action Pack subscription, I'm wondering if there is another method of opening/exporting an Access 2007 file to Access 2003 or Access XP? I just need to take a look at the existing db design, simply to be able to explain to the client why we might be doing things a bit differently. Thanks in advance. Larry Mrazek LCM Research, Inc. www.lcm-res.com lmrazek at lcm-res.com ph. 314-432-5886 mobile: 314-496-1645 From fuller.artful at gmail.com Mon Mar 17 13:00:43 2008 From: fuller.artful at gmail.com (Arthur Fuller) Date: Mon, 17 Mar 2008 14:00:43 -0400 Subject: [AccessD] Access 2007 to Acc 2003 or XP? In-Reply-To: <017301c88856$694650c0$036fa8c0@lcmdv8000> References: <34C8A2AB1EF3564CB0D64DB6AFFDD5C211DF6550@XLIVMBX35bkup.aig.com> <000001c88849$5a4f8490$0301a8c0@HAL9005> <29f585dd0803170931s5ce619docf1e296ad536ecd5@mail.gmail.com> <000101c8884e$d9d8cd70$0301a8c0@HAL9005> <017301c88856$694650c0$036fa8c0@lcmdv8000> Message-ID: <29f585dd0803171100m150d0623h1eba1c9c75bd9fb2@mail.gmail.com> I would suggest that an easy way to do this is download a trial version of Access 2007 and do the conversion. Presto, a 2003 database. Arthur From mikedorism at verizon.net Mon Mar 17 14:54:53 2008 From: mikedorism at verizon.net (Doris Manning) Date: Mon, 17 Mar 2008 15:54:53 -0400 Subject: [AccessD] Database Replication Message-ID: <000b01c88868$c53b3ff0$10fe2e0a@Kermit> Does anyone know if there is a limit to the number of replication copies that Access can handle merging back together? A friend of mine is looking at the potential of over 200+ replicated copies that will need to be merged back together and was wondering if this was going to be a problem. This is for a federal government project that he doesn't have much "developmental" control over but he'd like to throw on any possible breaks before the development team gets too far down the road if they are going in a lousy direction. Doris Manning Database Administrator Hargrove Inc. From fuller.artful at gmail.com Mon Mar 17 16:22:18 2008 From: fuller.artful at gmail.com (Arthur Fuller) Date: Mon, 17 Mar 2008 17:22:18 -0400 Subject: [AccessD] Database Replication In-Reply-To: <000b01c88868$c53b3ff0$10fe2e0a@Kermit> References: <000b01c88868$c53b3ff0$10fe2e0a@Kermit> Message-ID: <29f585dd0803171422x2a018eads75f4d2206e46666a@mail.gmail.com> I haven't gone that far, but I did get as far as 75 replicas and had no trouble. To be perfectly accurate, the 75 replicas were in four branch offices, each of which had a central replica on a server, then synchronized with all the branch replicas. At HQ the server replica synchronized with the four branch offices. The system worked perfectly without so much as a hiccup in over a year, at which point, through no fault of the replication stuff, we moved to SQL Server. If you want to hang 200 replicas off a single HQ replica, I would put the synchronizer on a machine running little or nothing else, and similarly for the HQ replica. Both of these machines should be considered 365/24 machines. The master replica can reside on your friend's development machine and be manually synchronized with the HQ replica, so s/he can make changes without immediately broadcasting them until s/he is ready to do so. Incidentally, I first went down this road after replicating to just the main servers in the branches. But then I realized that using replicas on all the local PCs was a terrific way to cut down the net traffic inherent in typical FE/BE scenarios (combo and listbox contents being copied down the wire over and over again, etc.). When you pause to consider the amount of data actually communicated during a synchronization, it's tiny -- a few k in both directions if the syncrhonization is relatively frequent. How many rows can even a really fast typist enter in 5 minutes? And in a well normalized database, most of the values will be ints or dates or money, with a few text fields here and there, so what does that add up to? Not much. hth, Arthur On 3/17/08, Doris Manning wrote: > > Does anyone know if there is a limit to the number of replication copies > that Access can handle merging back together? > > > > A friend of mine is looking at the potential of over 200+ replicated > copies > that will need to be merged back together and was wondering if this was > going to be a problem. This is for a federal government project that he > doesn't have much "developmental" control over but he'd like to throw on > any > possible breaks before the development team gets too far down the road if > they are going in a lousy direction. > > > > Doris Manning > > Database Administrator > > Hargrove Inc. > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jimdettman at verizon.net Mon Mar 17 16:42:17 2008 From: jimdettman at verizon.net (Jim Dettman) Date: Mon, 17 Mar 2008 17:42:17 -0400 Subject: [AccessD] Database Replication In-Reply-To: <000b01c88868$c53b3ff0$10fe2e0a@Kermit> References: <000b01c88868$c53b3ff0$10fe2e0a@Kermit> Message-ID: <003001c88877$c6717830$8abea8c0@XPS> Doris, Well keep in mind that replication has been dropped from Access/JET. You have no upgrade path if you need a feature or bump into a problem you can't work around with the current version. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doris Manning Sent: Monday, March 17, 2008 3:55 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Database Replication Does anyone know if there is a limit to the number of replication copies that Access can handle merging back together? A friend of mine is looking at the potential of over 200+ replicated copies that will need to be merged back together and was wondering if this was going to be a problem. This is for a federal government project that he doesn't have much "developmental" control over but he'd like to throw on any possible breaks before the development team gets too far down the road if they are going in a lousy direction. Doris Manning Database Administrator Hargrove Inc. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Mon Mar 17 17:07:25 2008 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Mon, 17 Mar 2008 15:07:25 -0700 Subject: [AccessD] Array is locked In-Reply-To: <000101c8884e$d9d8cd70$0301a8c0@HAL9005> References: <34C8A2AB1EF3564CB0D64DB6AFFDD5C211DF6550@XLIVMBX35bkup.aig.com><000001c88849$5a4f8490$0301a8c0@HAL9005><29f585dd0803170931s5ce619docf1e296ad536ecd5@mail.gmail.com> <000101c8884e$d9d8cd70$0301a8c0@HAL9005> Message-ID: <001901c8887b$48a83fc0$0301a8c0@HAL9005> FYI: I figured it out - brute force, binary search - ReDimming various places in the module until I found where it failed. Turned out that if you use With/End with on the array, it's locked - and apparently stays locked for the duration of the module. Don't know if there's a way to unlock it. End With doesn't do it. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Monday, March 17, 2008 9:49 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Array is locked Arthur: I tried this: For lngI = 1 To UBound(mudTH) If mudTH(lngI).fOrdering = True Then If lngI <> UBound(mudTH) Then ' if not the last record in the TH array For lngL = lngI To UBound(mudTH) - 1 mudTH(lngL) = mudTH(lngL + 1) Next lngL End If lngDeletes = lngDeletes + 1 ReDim Preserve mudTH(UBound(mudTH) - 1) End If Next lngI 'If lngDeletes <> 0 Then ReDim Preserve mudTH(UBound(mudTH) - lngDeletes) Where before the first ReDim was commented out. I uncommented it and got the lock message first time .fOrdering was True. The rest of the code moves all the downstream elements of the array up one element to delete the current element. It's a legacy app and really one huge bowl of spaghetti. I'm thinking about going around the problems by substituting a variable lngUboundmudTH for everywhere the code uses UBound(mudTH) abd just reduce that variable in this case by lngDeletes. But finding all occurrences of UBound(mudTH) could be a problem since it might be in Control Sources, Record Sources, stored queries, almost anyplace. Like I say - legacy code. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Monday, March 17, 2008 9:31 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Array is locked Just a wag, Rocky, but what if you ReDimmed the array element by element? It might be that something somewhere in the middle is causing the problem. You could easily find out whether the whole array is locked by just shrinking it one element. If that works then try the loop and decrement the size until she goes boom. Just a wag, as I said. Arthur On 3/17/08, Rocky Smolin at Beach Access Software wrote: > > Lambert: > > Here's the Type: > > Private Type THRecord > TaskID As Long 'T > StartDate As Date 'S > DueDate As Date 'D > QuasiDueDate As Date 'Q > TargetDate As Date 'R > RequiredHours As Double 'H > EarliestCompleteDate As Date 'C > ASAP As Double 'A > fOrdering As Boolean 'F > ErrorHours As Double 'E > TempReg As Double 'Z > DueDateFlag As Boolean 'FD > PastDueFlag As Boolean 'FP > ASAPFlag As Boolean 'FA > TargetDateFlag As Boolean 'FT > End Type > Dim mudTH() As THRecord 'TH > > There are lots of references to elements in the aray but at the point > where the redim occurs, there are no references. Does any reference > lock the array and then the lock persists? Is there a way to > determine what element in an array is causing the lock or a way to > release the array? > > > TIA > > 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. Version: 7.5.519 / Virus Database: 269.21.7/1331 - Release Date: 3/16/2008 10:34 AM -- 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. Version: 7.5.519 / Virus Database: 269.21.7/1331 - Release Date: 3/16/2008 10:34 AM From accessd at shaw.ca Mon Mar 17 17:19:19 2008 From: accessd at shaw.ca (Jim Lawrence) Date: Mon, 17 Mar 2008 15:19:19 -0700 Subject: [AccessD] Array is locked In-Reply-To: <001901c8887b$48a83fc0$0301a8c0@HAL9005> References: <34C8A2AB1EF3564CB0D64DB6AFFDD5C211DF6550@XLIVMBX35bkup.aig.com> <000001c88849$5a4f8490$0301a8c0@HAL9005> <29f585dd0803170931s5ce619docf1e296ad536ecd5@mail.gmail.com> <000101c8884e$d9d8cd70$0301a8c0@HAL9005> <001901c8887b$48a83fc0$0301a8c0@HAL9005> Message-ID: Is that a bug or feature? Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Monday, March 17, 2008 3:07 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Array is locked FYI: I figured it out - brute force, binary search - ReDimming various places in the module until I found where it failed. Turned out that if you use With/End with on the array, it's locked - and apparently stays locked for the duration of the module. Don't know if there's a way to unlock it. End With doesn't do it. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Monday, March 17, 2008 9:49 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Array is locked Arthur: I tried this: For lngI = 1 To UBound(mudTH) If mudTH(lngI).fOrdering = True Then If lngI <> UBound(mudTH) Then ' if not the last record in the TH array For lngL = lngI To UBound(mudTH) - 1 mudTH(lngL) = mudTH(lngL + 1) Next lngL End If lngDeletes = lngDeletes + 1 ReDim Preserve mudTH(UBound(mudTH) - 1) End If Next lngI 'If lngDeletes <> 0 Then ReDim Preserve mudTH(UBound(mudTH) - lngDeletes) Where before the first ReDim was commented out. I uncommented it and got the lock message first time .fOrdering was True. The rest of the code moves all the downstream elements of the array up one element to delete the current element. It's a legacy app and really one huge bowl of spaghetti. I'm thinking about going around the problems by substituting a variable lngUboundmudTH for everywhere the code uses UBound(mudTH) abd just reduce that variable in this case by lngDeletes. But finding all occurrences of UBound(mudTH) could be a problem since it might be in Control Sources, Record Sources, stored queries, almost anyplace. Like I say - legacy code. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Monday, March 17, 2008 9:31 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Array is locked Just a wag, Rocky, but what if you ReDimmed the array element by element? It might be that something somewhere in the middle is causing the problem. You could easily find out whether the whole array is locked by just shrinking it one element. If that works then try the loop and decrement the size until she goes boom. Just a wag, as I said. Arthur On 3/17/08, Rocky Smolin at Beach Access Software wrote: > > Lambert: > > Here's the Type: > > Private Type THRecord > TaskID As Long 'T > StartDate As Date 'S > DueDate As Date 'D > QuasiDueDate As Date 'Q > TargetDate As Date 'R > RequiredHours As Double 'H > EarliestCompleteDate As Date 'C > ASAP As Double 'A > fOrdering As Boolean 'F > ErrorHours As Double 'E > TempReg As Double 'Z > DueDateFlag As Boolean 'FD > PastDueFlag As Boolean 'FP > ASAPFlag As Boolean 'FA > TargetDateFlag As Boolean 'FT > End Type > Dim mudTH() As THRecord 'TH > > There are lots of references to elements in the aray but at the point > where the redim occurs, there are no references. Does any reference > lock the array and then the lock persists? Is there a way to > determine what element in an array is causing the lock or a way to > release the array? > > > TIA > > 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. Version: 7.5.519 / Virus Database: 269.21.7/1331 - Release Date: 3/16/2008 10:34 AM -- 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. Version: 7.5.519 / Virus Database: 269.21.7/1331 - Release Date: 3/16/2008 10:34 AM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From fuller.artful at gmail.com Mon Mar 17 18:03:41 2008 From: fuller.artful at gmail.com (Arthur Fuller) Date: Mon, 17 Mar 2008 19:03:41 -0400 Subject: [AccessD] Database Replication In-Reply-To: <003001c88877$c6717830$8abea8c0@XPS> References: <000b01c88868$c53b3ff0$10fe2e0a@Kermit> <003001c88877$c6717830$8abea8c0@XPS> Message-ID: <29f585dd0803171603t4047e77dh47cdb1498af2e5d7@mail.gmail.com> It has? Wow, I didn't know that! But perhaps that isn't so surprising, given their intended push of Access + SharePoint. A. On 3/17/08, Jim Dettman wrote: > > > Doris, > > Well keep in mind that replication has been dropped from > Access/JET. You > have no upgrade path if you need a feature or bump into a problem you > can't > work around with the current version. > > > Jim. > From barbara at moosehill.com Mon Mar 17 18:35:29 2008 From: barbara at moosehill.com (Barbara Mende) Date: Mon, 17 Mar 2008 16:35:29 -0700 (PDT) Subject: [AccessD] Two stupid questions from newbie Message-ID: <178094.67634.qm@web504.biz.mail.mud.yahoo.com> I'm a newbie not only to this list, but to Access. I've worked with FileMaker and Summation, but not with SQL. This is a small Access 2002 database with basically one data entry form, mostly text, no calculations, no relationships. Not even lookup tables. It's basically for searching for and reporting on info. I would like to do two things which I don't seem able to and which I'm sure are painfully obvious. 1. I have a text field which describes issues. Let's call them wealth, fame, power. Some of the data relates to more than one of these, e.g., wealth and fame. (Actually there are about twenty of them.) What I'd like to do is put "wealth fame" or "wealth, fame" into the issues field, so I can search for either weaIth or fame and come up with the appropriate record. don't seem to be able to search on part of that field, which is a text field. So what I've been doing is creating one record under "wealth," then another which is identical except that the issues field reads "fame." This seems to be a waste of bytes, and also allows the likelihood of a search on another field bringing up duplicate records. I tried "like" but that didn't do it. If I put both wealth and fame into the issues field, I can't pull up either, either by filtering or by querying. 2. If you thought that was dumb, this one is dumber but I'm tearing my hair out. I would like to create forms and reports based on a saved filter result. The instructions say it's easy: Run the filter, select "autoform" or "autoreport" from the "new object" icon, and there you are. Trouble is that "autoform" and "autoreport" are grayed out. If I put them up as individual icons they're grayed out too. Any ideas of what settings I've screwed up or how to ungray them? Thanks, everyone! Barbara From rockysmolin at bchacc.com Mon Mar 17 18:53:16 2008 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Mon, 17 Mar 2008 16:53:16 -0700 Subject: [AccessD] Array is locked In-Reply-To: References: <34C8A2AB1EF3564CB0D64DB6AFFDD5C211DF6550@XLIVMBX35bkup.aig.com><000001c88849$5a4f8490$0301a8c0@HAL9005><29f585dd0803170931s5ce619docf1e296ad536ecd5@mail.gmail.com><000101c8884e$d9d8cd70$0301a8c0@HAL9005><001901c8887b$48a83fc0$0301a8c0@HAL9005> Message-ID: <004101c8888a$1206f790$0301a8c0@HAL9005> I guess it falls under the rubric of "passing an element of an array to a function" but that's pretty sketchy. It's sort of being used as an object, I guess. But, once you pass the End With, it should release the array, IMO. If they had included the With/End With thing in the help as a reason why it was locked I could go with that So it's kind of a cross between a feature and a bug, I suppose. We can call it a fug. And what happened to me as getting fugged. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Monday, March 17, 2008 3:19 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Array is locked Is that a bug or feature? Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Monday, March 17, 2008 3:07 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Array is locked FYI: I figured it out - brute force, binary search - ReDimming various places in the module until I found where it failed. Turned out that if you use With/End with on the array, it's locked - and apparently stays locked for the duration of the module. Don't know if there's a way to unlock it. End With doesn't do it. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Monday, March 17, 2008 9:49 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Array is locked Arthur: I tried this: For lngI = 1 To UBound(mudTH) If mudTH(lngI).fOrdering = True Then If lngI <> UBound(mudTH) Then ' if not the last record in the TH array For lngL = lngI To UBound(mudTH) - 1 mudTH(lngL) = mudTH(lngL + 1) Next lngL End If lngDeletes = lngDeletes + 1 ReDim Preserve mudTH(UBound(mudTH) - 1) End If Next lngI 'If lngDeletes <> 0 Then ReDim Preserve mudTH(UBound(mudTH) - lngDeletes) Where before the first ReDim was commented out. I uncommented it and got the lock message first time .fOrdering was True. The rest of the code moves all the downstream elements of the array up one element to delete the current element. It's a legacy app and really one huge bowl of spaghetti. I'm thinking about going around the problems by substituting a variable lngUboundmudTH for everywhere the code uses UBound(mudTH) abd just reduce that variable in this case by lngDeletes. But finding all occurrences of UBound(mudTH) could be a problem since it might be in Control Sources, Record Sources, stored queries, almost anyplace. Like I say - legacy code. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Monday, March 17, 2008 9:31 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Array is locked Just a wag, Rocky, but what if you ReDimmed the array element by element? It might be that something somewhere in the middle is causing the problem. You could easily find out whether the whole array is locked by just shrinking it one element. If that works then try the loop and decrement the size until she goes boom. Just a wag, as I said. Arthur On 3/17/08, Rocky Smolin at Beach Access Software wrote: > > Lambert: > > Here's the Type: > > Private Type THRecord > TaskID As Long 'T > StartDate As Date 'S > DueDate As Date 'D > QuasiDueDate As Date 'Q > TargetDate As Date 'R > RequiredHours As Double 'H > EarliestCompleteDate As Date 'C > ASAP As Double 'A > fOrdering As Boolean 'F > ErrorHours As Double 'E > TempReg As Double 'Z > DueDateFlag As Boolean 'FD > PastDueFlag As Boolean 'FP > ASAPFlag As Boolean 'FA > TargetDateFlag As Boolean 'FT > End Type > Dim mudTH() As THRecord 'TH > > There are lots of references to elements in the aray but at the point > where the redim occurs, there are no references. Does any reference > lock the array and then the lock persists? Is there a way to > determine what element in an array is causing the lock or a way to > release the array? > > > TIA > > 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. Version: 7.5.519 / Virus Database: 269.21.7/1331 - Release Date: 3/16/2008 10:34 AM -- 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. Version: 7.5.519 / Virus Database: 269.21.7/1331 - Release Date: 3/16/2008 10:34 AM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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. Version: 7.5.519 / Virus Database: 269.21.7/1331 - Release Date: 3/16/2008 10:34 AM From cfoust at infostatsystems.com Mon Mar 17 19:29:27 2008 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 17 Mar 2008 17:29:27 -0700 Subject: [AccessD] Two stupid questions from newbie In-Reply-To: <178094.67634.qm@web504.biz.mail.mud.yahoo.com> References: <178094.67634.qm@web504.biz.mail.mud.yahoo.com> Message-ID: It sounds like you're trying to look for specific words occurring in a particular field, that can certainly be done, for instance, by using the InStr function to determine the first occurrence of the word in the field. Are you trying to do this in a query? I'm getting confused by your comment about SQL and the autoform/autoreport stuff. Tell us what your table structure looks like. Table design is the essence of both data entry and reporting, and SQL only works with primary keys and appropriate indexes. We need more information before we can really be of any help. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Barbara Mende Sent: Monday, March 17, 2008 4:35 PM To: accessd at databaseadvisors.com Subject: [AccessD] Two stupid questions from newbie I'm a newbie not only to this list, but to Access. I've worked with FileMaker and Summation, but not with SQL. This is a small Access 2002 database with basically one data entry form, mostly text, no calculations, no relationships. Not even lookup tables. It's basically for searching for and reporting on info. I would like to do two things which I don't seem able to and which I'm sure are painfully obvious. 1. I have a text field which describes issues. Let's call them wealth, fame, power. Some of the data relates to more than one of these, e.g., wealth and fame. (Actually there are about twenty of them.) What I'd like to do is put "wealth fame" or "wealth, fame" into the issues field, so I can search for either weaIth or fame and come up with the appropriate record. don't seem to be able to search on part of that field, which is a text field. So what I've been doing is creating one record under "wealth," then another which is identical except that the issues field reads "fame." This seems to be a waste of bytes, and also allows the likelihood of a search on another field bringing up duplicate records. I tried "like" but that didn't do it. If I put both wealth and fame into the issues field, I can't pull up either, either by filtering or by querying. 2. If you thought that was dumb, this one is dumber but I'm tearing my hair out. I would like to create forms and reports based on a saved filter result. The instructions say it's easy: Run the filter, select "autoform" or "autoreport" from the "new object" icon, and there you are. Trouble is that "autoform" and "autoreport" are grayed out. If I put them up as individual icons they're grayed out too. Any ideas of what settings I've screwed up or how to ungray them? Thanks, everyone! Barbara -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From fuller.artful at gmail.com Mon Mar 17 19:34:16 2008 From: fuller.artful at gmail.com (Arthur Fuller) Date: Mon, 17 Mar 2008 20:34:16 -0400 Subject: [AccessD] Two stupid questions from newbie In-Reply-To: <178094.67634.qm@web504.biz.mail.mud.yahoo.com> References: <178094.67634.qm@web504.biz.mail.mud.yahoo.com> Message-ID: <29f585dd0803171734u2bd1f492u1fd3be7c40bbb7fb@mail.gmail.com> Always remember, Barbara, in the words of The Simpsons, there are no stupid questions, only stupid people :) 1. Lots of people here will argue that your Issues should really be a separate table joined to the first one on the primary key, but for such a simple database that might be overkill. What you can do instead is this: just put all the words in as you want (wealth, fame, power, etc.) and then search on that field using LIKE. There are some tricks to using LIKE, however, notably: * stands for any number of characters ? stands for one character Thus to find records containing both wealth and power you can use this expression: LIKE "*wealth*power" To enter the search criterion, on the toolbar you will see a button with a filter on it. If you hover the mouse over it, the control tip will say "Filter by Form". That's the button you want. When you click it, you'll be presented with a blank form. Go to the Issues field and type in the whole expression including the word LIKE: LIKE "wealth*power" Then click the button to the right of the previous button (its tooltip says Apply Filter). That will filter all the records so you only see the ones that match. When you're done, the next button to the right removes the filter, and once again you can see all the records. 2. If you base your reports on the table underlying the form and then apply the filter technique described above, the report will automatically show only the filtered records. So you kill two birds with one stone. There are good reasons, however, to consider a second table to record the Issues, but that is a little more complex. For one thing, you wouldn't have to keep typing in all the words, you could pick them from a list instead. If you want to try this approach, we'll explain the steps, but perhaps the simplest one is enough for you at the moment. hth, Arthur On 3/17/08, Barbara Mende wrote: > > I'm a newbie not only to this list, but to Access. I've worked with > FileMaker and Summation, but not with SQL. > > > This is a small Access 2002 database with basically one data entry form, > mostly text, no calculations, no relationships. Not even lookup > tables. It's basically for searching for and reporting on info. > > > I would like to do two things which I don't seem able to and which I'm > sure are painfully obvious. > > > 1. I have a text field which describes issues. Let's call them wealth, > fame, power. Some of the data relates to more than one of these, e.g., > wealth and fame. (Actually there are about twenty of them.) > > > What I'd like to do is put "wealth fame" or "wealth, fame" into the issues > field, so I can search for either weaIth or fame and come up with the > appropriate record. don't seem to be able to search on part of that field, > which is a text field. So what I've been doing is creating one record under > "wealth," then another which is identical except that the issues field reads > "fame." This seems to be a waste of bytes, and also allows the likelihood > of a search on another field bringing up duplicate records. I tried "like" > but that didn't do it. If I put both wealth and fame into the issues field, > I can't pull up either, either by filtering or by querying. > > > 2. If you thought that was dumb, this one is dumber but I'm tearing my > hair out. I would like to create forms and reports based on a saved filter > result. The instructions say it's easy: Run the filter, select "autoform" > or "autoreport" from the "new object" icon, and there you are. Trouble is > that "autoform" and "autoreport" are grayed out. If I put them up as > individual icons they're grayed out too. Any ideas of what settings I've > screwed up or how to ungray them? > > > Thanks, everyone! > Barbara > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From Darryl.Collins at coles.com.au Mon Mar 17 22:04:26 2008 From: Darryl.Collins at coles.com.au (Darryl Collins) Date: Tue, 18 Mar 2008 14:04:26 +1100 Subject: [AccessD] Reporting and Split database Message-ID: <49DFE57FB126044B8A8B934E7AEA09ED09FD7084@WPEXCH05.colesmyer.ad.cmltd.net.au> Hey all, I have this database which I have split into BE / FE. Now when some reports run only some of the data is shown on the report, even though the underlying query is returning all the data correctly when I run it manually. How can this be? Is there something really stupid I have managed to do? It is like the report gets mostly done and then goes, "bugger, all too hard" and gives up. most curious indeed. Darryl. This email and any attachments may contain privileged and confidential information and are intended for the named addressee only. If you have received this e-mail in error, please notify the sender and delete this e-mail immediately. Any confidentiality, privilege or copyright is not waived or lost because this e-mail has been sent to you in error. It is your responsibility to check this e-mail and any attachments for viruses. No warranty is made that this material is free from computer virus or any other defect or error. Any loss/damage incurred by using this material is not the sender's responsibility. The sender's entire liability will be limited to resupplying the material. From dbdoug at gmail.com Mon Mar 17 22:11:56 2008 From: dbdoug at gmail.com (Doug Steele) Date: Mon, 17 Mar 2008 20:11:56 -0700 Subject: [AccessD] Access 2007 conversion weirdness Message-ID: <4dd71a0c0803172011l7036cf8ei97b6c5a87023ba16@mail.gmail.com> I started with an Access 2003 FE database, decompiled, re-compiled, compacted in Access 2003. Size: 41mb. I opened it in Access 2007 then saved it into Access 2007 format, compiled and compacted it. Size: 32mb. I then created a new empty Access 2007 database and imported all objects from the Access 2003 database, compiled, compacted, decompiled, re-compiled, compacted again. Size: 108mb. Wha?????? All three versions seem to work OK. Doug Steele From DWUTKA at Marlow.com Mon Mar 17 22:48:21 2008 From: DWUTKA at Marlow.com (Drew Wutka) Date: Mon, 17 Mar 2008 22:48:21 -0500 Subject: [AccessD] Two stupid questions from newbie In-Reply-To: <178094.67634.qm@web504.biz.mail.mud.yahoo.com> References: <178094.67634.qm@web504.biz.mail.mud.yahoo.com> Message-ID: Welcome to AccessD. Can't really answer your second question. Sorry, don't use access as the interface enough to have run across that quirk. However, as to your first question, here's one way to optimize that process. The issue field should be setup as a long integer field. Have another table with the issues in it. The KEY for each issue should be a bit value, ie, 1,2,4,8,16,32,64,128,256,512,1024, etc. When entering data, provide a listbox that displays all of the issues, and when saving the data, enter the sum of those values into that field. Then, to query it, do the reverse, provide a listbox with the issues (multiselect, like the data entry should be), and search with the BAND (which is the Access SQL version of AND) to find the fields. That is the way I would do it. Saves space, runs fast, etc. However, not everyone is comfortable with bit comparison data storage/querying. The other way to go would be to create a many to many table. Ie: tblMain MainID Bunch of other field tblIssues IssueID IssueName tblMainIssues MainID IssueID For each issue you have associated with a record in tblMain, you'd have a record in tblMainIssues. To search for issues, you merely query tblMainIssues, with an inner join to tblMain, off of the IssueID, and the related records from tblMain will be pulled up by their ID. I hope this makes sense. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Barbara Mende Sent: Monday, March 17, 2008 6:35 PM To: accessd at databaseadvisors.com Subject: [AccessD] Two stupid questions from newbie I'm a newbie not only to this list, but to Access. I've worked with FileMaker and Summation, but not with SQL. This is a small Access 2002 database with basically one data entry form, mostly text, no calculations, no relationships. Not even lookup tables. It's basically for searching for and reporting on info. I would like to do two things which I don't seem able to and which I'm sure are painfully obvious. 1. I have a text field which describes issues. Let's call them wealth, fame, power. Some of the data relates to more than one of these, e.g., wealth and fame. (Actually there are about twenty of them.) What I'd like to do is put "wealth fame" or "wealth, fame" into the issues field, so I can search for either weaIth or fame and come up with the appropriate record. don't seem to be able to search on part of that field, which is a text field. So what I've been doing is creating one record under "wealth," then another which is identical except that the issues field reads "fame." This seems to be a waste of bytes, and also allows the likelihood of a search on another field bringing up duplicate records. I tried "like" but that didn't do it. If I put both wealth and fame into the issues field, I can't pull up either, either by filtering or by querying. 2. If you thought that was dumb, this one is dumber but I'm tearing my hair out. I would like to create forms and reports based on a saved filter result. The instructions say it's easy: Run the filter, select "autoform" or "autoreport" from the "new object" icon, and there you are. Trouble is that "autoform" and "autoreport" are grayed out. If I put them up as individual icons they're grayed out too. Any ideas of what settings I've screwed up or how to ungray them? Thanks, everyone! Barbara -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From max.wanadoo at gmail.com Tue Mar 18 02:33:37 2008 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Tue, 18 Mar 2008 07:33:37 -0000 Subject: [AccessD] Array is locked In-Reply-To: References: <34C8A2AB1EF3564CB0D64DB6AFFDD5C211DF6550@XLIVMBX35bkup.aig.com><000001c88849$5a4f8490$0301a8c0@HAL9005><29f585dd0803170931s5ce619docf1e296ad536ecd5@mail.gmail.com><000101c8884e$d9d8cd70$0301a8c0@HAL9005><001901c8887b$48a83fc0$0301a8c0@HAL9005> Message-ID: <001901c888ca$62aee6e0$8119fea9@LTVM> Well here is another bug/feature. A3K Default Record Locking set to "Edited Record" Problem: Main form has 3 sub forms. Click button opens a new form. This new form has a click button which runs a function. Function opens a new recordset which requires records which are also held in one of the subform on the main form. All records in rst are parsed and updated (90k+ ) except for 97 records. Always the same 97 Turns Out: Turns out that one of the sub forms oncurrent event was making a record "dirty" (ie, changing a value as the record was accessed) and thus it was locked. Access (of course) locked this record but also the records around it (the other 96). It was not apparent that this was the problem as there was no way to "SEE" that the record was "dirty" as the forms were not displaying the indicators. Also difficult to pin down as Access of course "updated" and thus made "Clean" the record as the focus was moved. Lots of head scratching. Answer: In the last line of the oncurrent event for each of the subforms and the main form put in me.dirty=false. Also put this in just before the click button opened the function. That done the trick. So much for the Default Record Locking set to "Edited Record". 96 other records were locked as well. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Monday, March 17, 2008 10:19 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Array is locked Is that a bug or feature? Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Monday, March 17, 2008 3:07 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Array is locked FYI: I figured it out - brute force, binary search - ReDimming various places in the module until I found where it failed. Turned out that if you use With/End with on the array, it's locked - and apparently stays locked for the duration of the module. Don't know if there's a way to unlock it. End With doesn't do it. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Monday, March 17, 2008 9:49 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Array is locked Arthur: I tried this: For lngI = 1 To UBound(mudTH) If mudTH(lngI).fOrdering = True Then If lngI <> UBound(mudTH) Then ' if not the last record in the TH array For lngL = lngI To UBound(mudTH) - 1 mudTH(lngL) = mudTH(lngL + 1) Next lngL End If lngDeletes = lngDeletes + 1 ReDim Preserve mudTH(UBound(mudTH) - 1) End If Next lngI 'If lngDeletes <> 0 Then ReDim Preserve mudTH(UBound(mudTH) - lngDeletes) Where before the first ReDim was commented out. I uncommented it and got the lock message first time .fOrdering was True. The rest of the code moves all the downstream elements of the array up one element to delete the current element. It's a legacy app and really one huge bowl of spaghetti. I'm thinking about going around the problems by substituting a variable lngUboundmudTH for everywhere the code uses UBound(mudTH) abd just reduce that variable in this case by lngDeletes. But finding all occurrences of UBound(mudTH) could be a problem since it might be in Control Sources, Record Sources, stored queries, almost anyplace. Like I say - legacy code. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Monday, March 17, 2008 9:31 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Array is locked Just a wag, Rocky, but what if you ReDimmed the array element by element? It might be that something somewhere in the middle is causing the problem. You could easily find out whether the whole array is locked by just shrinking it one element. If that works then try the loop and decrement the size until she goes boom. Just a wag, as I said. Arthur On 3/17/08, Rocky Smolin at Beach Access Software wrote: > > Lambert: > > Here's the Type: > > Private Type THRecord > TaskID As Long 'T > StartDate As Date 'S > DueDate As Date 'D > QuasiDueDate As Date 'Q > TargetDate As Date 'R > RequiredHours As Double 'H > EarliestCompleteDate As Date 'C > ASAP As Double 'A > fOrdering As Boolean 'F > ErrorHours As Double 'E > TempReg As Double 'Z > DueDateFlag As Boolean 'FD > PastDueFlag As Boolean 'FP > ASAPFlag As Boolean 'FA > TargetDateFlag As Boolean 'FT > End Type > Dim mudTH() As THRecord 'TH > > There are lots of references to elements in the aray but at the point > where the redim occurs, there are no references. Does any reference > lock the array and then the lock persists? Is there a way to > determine what element in an array is causing the lock or a way to > release the array? > > > TIA > > 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. Version: 7.5.519 / Virus Database: 269.21.7/1331 - Release Date: 3/16/2008 10:34 AM -- 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. Version: 7.5.519 / Virus Database: 269.21.7/1331 - Release Date: 3/16/2008 10:34 AM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Tue Mar 18 04:50:21 2008 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Tue, 18 Mar 2008 09:50:21 -0000 Subject: [AccessD] Report Data Order Differs From Form or Query DataOrder In-Reply-To: References: Message-ID: <002b01c888dd$7c4dc2c0$8119fea9@LTVM> Hi Gustav, Hmmm. I know you are trying to help and I do really appreciate that. I think however you are still missing the point of the problem I was facing with the REPORT Engine displaying records in a different sequence to that displayed in a FORM or directly from a QUERY where the SAME query is used as the RecordSource. I have multiple forms and multiple records which are identical apart from the source table which changes depending on which spreadsheet the user opted to import and process. Instead of programmatically changing the RECORDSOURCE for each FORM/REPORT I have set all their RECORDSOURCES to a QUERY (qryData) The query is recreated during the processing. Image x records which need to have a mailsort code entered into a field. These records are processed and a new mailsort code derived and the record updated. This process is quite complicated but at the end of it we end up with all records having a mailsort code. There are many records with multiple matching codes. I then sort by this mailsort code and process again. The sequence of which the records are now presented must be maintained. A. Every time we have a new mailsort code we insert a bagbreak symbol into a field and set a counter to 1. B. For subsequent records we increment the counter until either: 1. A new mailsortcode is found, or 2. The counter is equal to the maximum bags allowed per bag. At this point we go back to A. So, having done all that we must now preserve that same order and start to print the letters. I am doing this via a REPORT so it is essential that the REPORT retains the same sequence of records. As you very correctly pointed out, for the sequence of records presentation to be the same as in the table, the SORT BY needs to be done within the Report's Sorting/Grouping whereas with the FORM is done straight from the query. The Point is this: Why does the RPORT use a different engine that a FORM when identical query is used. Assume: 100 records all with Mailsortcode = "ABC" and another 100 with code = "BCD" and bag breaks every 20 records. The table was indexed on MailsortCode When they were processed the bag breaks would have been inserted every 20 records and for each code change. So, the first 20 records when view in a Form (using the same query that was used when they were processed) may have been presented on the form/query as: Record 2076 Record 17 Record 155 Record et When the same query is put into the RecordSource of a Report, the sequence changes, to (for example) Record 155 Record 2076 Record 17 Record et In other words, they are correct within the mailsort code but the actual sequence of presentation is different. Phew! I think I will drop this now. Thanks for all your help. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, March 17, 2008 3:54 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Report Data Order Differs From Form or Query DataOrder Hi Max I didn't say that. If you (now) have established a unique sorting you will, of course, preserve that. The only place to do this for the report is, however, in the report. That's the point. /gustav >>> max.wanadoo at gmail.com 17-03-2008 16:43 >>> Hi Gustav, No, I MUST NOT change the sequence in any way. Once it has been processed through a loop, each record will have a mailsort bagbreak inserted based on its real life position in the table. This must not change in any way from there on. No filters, no indexes etc, it must be the exact order it was in when it was processed. Thanks anyway. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, March 17, 2008 2:31 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Report Data Order Differs From Form or Query DataOrder Hi Max Oh, now I see. You have to sort on something unique to obtain the exact same sort order. If the fields you wish to sort on in the report do not form a compound unique key, then include the PK in the query and pull it (invisibly) into the report and sort on that as the last field. /gustav >>> max.wanadoo at gmail.com 17-03-2008 15:18 >>> Hi Gustav, I tried various things, but the bottom line is that where there are repeating codes I am not confident that the report will pull the records in the exact same order as it did for the Form even though it "appears" to do so with the changes you suggest. So, I have added an extra field which is incremented at the same time as the codes are processed/entered and both the forms and the report now sequence on that fields - fool proof! Thanks for the feedback - much appreciated. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, March 17, 2008 10:10 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Report Data Order Differs From Form or Query DataOrder Hi Max Did you use the sorting/grouping option of the _report_ and left the source unsorted: SELECT * FROM LotterySpring2008; /gustav >>> max.wanadoo at gmail.com 17-03-2008 10:52 >>> Hi Gustav, Generally I accept what you are saying. But, no matter what I do, I cannot get the report to have the same ORDER as the Form. The query is SELECT * FROM LotterySpring2008 ORDER BY LotterySpring2008.Mailsort; The Query is called qryReportDataTemp. The contents is dynamically created from code where the tablename changes based on the user requirements. The SOURCE for the Form is qryReportDataTemp The SOURCE for the Report is also qryReportDataTemp No filters, etc applied. The Form shows records in correct order. The Report does not. Even if, as you suggest, I use the sorting/grouping option and explicitly state "Mailsort" Ascending. The ORDER of the records display in the report is NOT the same ORDER as those display in the FORM or that which is shown if you open the QUERY directly. It appears to me that there is a different ENGINE driving the Report. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, March 17, 2008 8:27 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Report Data Order Differs From Form or Query DataOrder Hi Max Yes, _always_ use the sorting/grouping option of the report (and leave the source unsorted) if you have a specific sorting/order need - which is true for most reports. /gustav >>> max.wanadoo at gmail.com 17-03-2008 09:20 >>> Is there a different "engine" used by the RPORT as opposed to that used by -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Tue Mar 18 05:32:30 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 18 Mar 2008 11:32:30 +0100 Subject: [AccessD] Report Data Order Differs From Form or Query DataOrder Message-ID: Hi Max Well, as your mother would answer when she didn't know the answer: Because it does! I guess the reason is that sorting and grouping is considered such an essential part of what a report does that it has been given full control, and to gain this all previous sorting is ignored because it will not be used anyway. You mention an index and that may be what the report looks for and - if its own sorting is not specified - will use. I'm just guessing but some tests could clarify this. I can see this represents a problem for you. One method could be to use two variables: one for the SQL expression without sorting, and one to be applied for the sorting. Then use the OnOpen events of the form and the report to, respectively, build an Order By expression to be appended the SQL variable and then used as the form's RecordSource, and be used by a function which sets the sorting in the report (this is quite easy). This way the unsorted SQL could remain identical for each pair of form and report. Actually, I can't think of any other way to achieve this. The sorting variable could be a series of fieldname/direction like: somefield;asc;field2;asc;someotherfield;desc;anotherfield;asc which easily could be parsed by several methods. /gustav >>> max.wanadoo at gmail.com 18-03-2008 10:50 >>> The Point is this: Why does the RPORT use a different engine that a FORM when identical query is used. From max.wanadoo at gmail.com Tue Mar 18 05:38:36 2008 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Tue, 18 Mar 2008 10:38:36 -0000 Subject: [AccessD] Report Data Order Differs From Form or Query DataOrder In-Reply-To: References: Message-ID: <006001c888e4$394a49b0$8119fea9@LTVM> Actually my mother would always say "Ask your Father"! Thanks for all the input, Gustav. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, March 18, 2008 10:32 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Report Data Order Differs From Form or Query DataOrder Hi Max Well, as your mother would answer when she didn't know the answer: Because it does! I guess the reason is that sorting and grouping is considered such an essential part of what a report does that it has been given full control, and to gain this all previous sorting is ignored because it will not be used anyway. You mention an index and that may be what the report looks for and - if its own sorting is not specified - will use. I'm just guessing but some tests could clarify this. I can see this represents a problem for you. One method could be to use two variables: one for the SQL expression without sorting, and one to be applied for the sorting. Then use the OnOpen events of the form and the report to, respectively, build an Order By expression to be appended the SQL variable and then used as the form's RecordSource, and be used by a function which sets the sorting in the report (this is quite easy). This way the unsorted SQL could remain identical for each pair of form and report. Actually, I can't think of any other way to achieve this. The sorting variable could be a series of fieldname/direction like: somefield;asc;field2;asc;someotherfield;desc;anotherfield;asc which easily could be parsed by several methods. /gustav >>> max.wanadoo at gmail.com 18-03-2008 10:50 >>> The Point is this: Why does the RPORT use a different engine that a FORM when identical query is used. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Tue Mar 18 05:47:55 2008 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 18 Mar 2008 06:47:55 -0400 Subject: [AccessD] Report Data Order Differs From Form or Query DataOrder In-Reply-To: <002b01c888dd$7c4dc2c0$8119fea9@LTVM> References: <002b01c888dd$7c4dc2c0$8119fea9@LTVM> Message-ID: <003601c888e5$863f1ab0$0201a8c0@M90> Max, I would say it is not so much that it uses a different sort engine as that it simply ignores the query behind the report ENTIRELY. It pulls the records that the query says to pull, but it does NOT sort them per the query. It sorts them per the report itself. Basically your task is to discover what the report does and do that in your query for the form and other processes. Or make the report do whatever the query does, but simply know that whatever you do in the query (in terms of ordering the records) will be thrown away by the report. 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 Max Wanadoo Sent: Tuesday, March 18, 2008 5:50 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Report Data Order Differs From Form or Query DataOrder Hi Gustav, Hmmm. I know you are trying to help and I do really appreciate that. I think however you are still missing the point of the problem I was facing with the REPORT Engine displaying records in a different sequence to that displayed in a FORM or directly from a QUERY where the SAME query is used as the RecordSource. I have multiple forms and multiple records which are identical apart from the source table which changes depending on which spreadsheet the user opted to import and process. Instead of programmatically changing the RECORDSOURCE for each FORM/REPORT I have set all their RECORDSOURCES to a QUERY (qryData) The query is recreated during the processing. Image x records which need to have a mailsort code entered into a field. These records are processed and a new mailsort code derived and the record updated. This process is quite complicated but at the end of it we end up with all records having a mailsort code. There are many records with multiple matching codes. I then sort by this mailsort code and process again. The sequence of which the records are now presented must be maintained. A. Every time we have a new mailsort code we insert a bagbreak symbol into a field and set a counter to 1. B. For subsequent records we increment the counter until either: 1. A new mailsortcode is found, or 2. The counter is equal to the maximum bags allowed per bag. At this point we go back to A. So, having done all that we must now preserve that same order and start to print the letters. I am doing this via a REPORT so it is essential that the REPORT retains the same sequence of records. As you very correctly pointed out, for the sequence of records presentation to be the same as in the table, the SORT BY needs to be done within the Report's Sorting/Grouping whereas with the FORM is done straight from the query. The Point is this: Why does the RPORT use a different engine that a FORM when identical query is used. Assume: 100 records all with Mailsortcode = "ABC" and another 100 with code = "BCD" and bag breaks every 20 records. The table was indexed on MailsortCode When they were processed the bag breaks would have been inserted every 20 records and for each code change. So, the first 20 records when view in a Form (using the same query that was used when they were processed) may have been presented on the form/query as: Record 2076 Record 17 Record 155 Record et When the same query is put into the RecordSource of a Report, the sequence changes, to (for example) Record 155 Record 2076 Record 17 Record et In other words, they are correct within the mailsort code but the actual sequence of presentation is different. Phew! I think I will drop this now. Thanks for all your help. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, March 17, 2008 3:54 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Report Data Order Differs From Form or Query DataOrder Hi Max I didn't say that. If you (now) have established a unique sorting you will, of course, preserve that. The only place to do this for the report is, however, in the report. That's the point. /gustav >>> max.wanadoo at gmail.com 17-03-2008 16:43 >>> Hi Gustav, No, I MUST NOT change the sequence in any way. Once it has been processed through a loop, each record will have a mailsort bagbreak inserted based on its real life position in the table. This must not change in any way from there on. No filters, no indexes etc, it must be the exact order it was in when it was processed. Thanks anyway. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, March 17, 2008 2:31 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Report Data Order Differs From Form or Query DataOrder Hi Max Oh, now I see. You have to sort on something unique to obtain the exact same sort order. If the fields you wish to sort on in the report do not form a compound unique key, then include the PK in the query and pull it (invisibly) into the report and sort on that as the last field. /gustav >>> max.wanadoo at gmail.com 17-03-2008 15:18 >>> Hi Gustav, I tried various things, but the bottom line is that where there are repeating codes I am not confident that the report will pull the records in the exact same order as it did for the Form even though it "appears" to do so with the changes you suggest. So, I have added an extra field which is incremented at the same time as the codes are processed/entered and both the forms and the report now sequence on that fields - fool proof! Thanks for the feedback - much appreciated. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, March 17, 2008 10:10 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Report Data Order Differs From Form or Query DataOrder Hi Max Did you use the sorting/grouping option of the _report_ and left the source unsorted: SELECT * FROM LotterySpring2008; /gustav >>> max.wanadoo at gmail.com 17-03-2008 10:52 >>> Hi Gustav, Generally I accept what you are saying. But, no matter what I do, I cannot get the report to have the same ORDER as the Form. The query is SELECT * FROM LotterySpring2008 ORDER BY LotterySpring2008.Mailsort; The Query is called qryReportDataTemp. The contents is dynamically created from code where the tablename changes based on the user requirements. The SOURCE for the Form is qryReportDataTemp The SOURCE for the Report is also qryReportDataTemp No filters, etc applied. The Form shows records in correct order. The Report does not. Even if, as you suggest, I use the sorting/grouping option and explicitly state "Mailsort" Ascending. The ORDER of the records display in the report is NOT the same ORDER as those display in the FORM or that which is shown if you open the QUERY directly. It appears to me that there is a different ENGINE driving the Report. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, March 17, 2008 8:27 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Report Data Order Differs From Form or Query DataOrder Hi Max Yes, _always_ use the sorting/grouping option of the report (and leave the source unsorted) if you have a specific sorting/order need - which is true for most reports. /gustav >>> max.wanadoo at gmail.com 17-03-2008 09:20 >>> Is there a different "engine" used by the RPORT as opposed to that used by -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Tue Mar 18 05:56:42 2008 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Tue, 18 Mar 2008 10:56:42 -0000 Subject: [AccessD] Report Data Order Differs From Form or Query DataOrder In-Reply-To: <003601c888e5$863f1ab0$0201a8c0@M90> References: <002b01c888dd$7c4dc2c0$8119fea9@LTVM> <003601c888e5$863f1ab0$0201a8c0@M90> Message-ID: <007a01c888e6$c085a9e0$8119fea9@LTVM> Yes, spot on. This is the difference I was trying to explain. Passing a query to a report requires you to change the Group/Sorting within the report and not rely on the sortation within the query (which, as you and Gustav said, is ignored). I have sorted the problem but I was having a moan and also pointing out to others that this problem exists. Having said all that, it is the first time in all my years programming (many with Access) that this problem has surfaced because mainly indexes sort in an order and actually records within the sort order are just not important or are controlled correctly. Here they are a problem because they govern the bag breaks. Ta Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, March 18, 2008 10:48 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Report Data Order Differs From Form or Query DataOrder Max, I would say it is not so much that it uses a different sort engine as that it simply ignores the query behind the report ENTIRELY. It pulls the records that the query says to pull, but it does NOT sort them per the query. It sorts them per the report itself. Basically your task is to discover what the report does and do that in your query for the form and other processes. Or make the report do whatever the query does, but simply know that whatever you do in the query (in terms of ordering the records) will be thrown away by the report. 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 Max Wanadoo Sent: Tuesday, March 18, 2008 5:50 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Report Data Order Differs From Form or Query DataOrder Hi Gustav, Hmmm. I know you are trying to help and I do really appreciate that. I think however you are still missing the point of the problem I was facing with the REPORT Engine displaying records in a different sequence to that displayed in a FORM or directly from a QUERY where the SAME query is used as the RecordSource. I have multiple forms and multiple records which are identical apart from the source table which changes depending on which spreadsheet the user opted to import and process. Instead of programmatically changing the RECORDSOURCE for each FORM/REPORT I have set all their RECORDSOURCES to a QUERY (qryData) The query is recreated during the processing. Image x records which need to have a mailsort code entered into a field. These records are processed and a new mailsort code derived and the record updated. This process is quite complicated but at the end of it we end up with all records having a mailsort code. There are many records with multiple matching codes. I then sort by this mailsort code and process again. The sequence of which the records are now presented must be maintained. A. Every time we have a new mailsort code we insert a bagbreak symbol into a field and set a counter to 1. B. For subsequent records we increment the counter until either: 1. A new mailsortcode is found, or 2. The counter is equal to the maximum bags allowed per bag. At this point we go back to A. So, having done all that we must now preserve that same order and start to print the letters. I am doing this via a REPORT so it is essential that the REPORT retains the same sequence of records. As you very correctly pointed out, for the sequence of records presentation to be the same as in the table, the SORT BY needs to be done within the Report's Sorting/Grouping whereas with the FORM is done straight from the query. The Point is this: Why does the RPORT use a different engine that a FORM when identical query is used. Assume: 100 records all with Mailsortcode = "ABC" and another 100 with code = "BCD" and bag breaks every 20 records. The table was indexed on MailsortCode When they were processed the bag breaks would have been inserted every 20 records and for each code change. So, the first 20 records when view in a Form (using the same query that was used when they were processed) may have been presented on the form/query as: Record 2076 Record 17 Record 155 Record et When the same query is put into the RecordSource of a Report, the sequence changes, to (for example) Record 155 Record 2076 Record 17 Record et In other words, they are correct within the mailsort code but the actual sequence of presentation is different. Phew! I think I will drop this now. Thanks for all your help. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, March 17, 2008 3:54 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Report Data Order Differs From Form or Query DataOrder Hi Max I didn't say that. If you (now) have established a unique sorting you will, of course, preserve that. The only place to do this for the report is, however, in the report. That's the point. /gustav >>> max.wanadoo at gmail.com 17-03-2008 16:43 >>> Hi Gustav, No, I MUST NOT change the sequence in any way. Once it has been processed through a loop, each record will have a mailsort bagbreak inserted based on its real life position in the table. This must not change in any way from there on. No filters, no indexes etc, it must be the exact order it was in when it was processed. Thanks anyway. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, March 17, 2008 2:31 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Report Data Order Differs From Form or Query DataOrder Hi Max Oh, now I see. You have to sort on something unique to obtain the exact same sort order. If the fields you wish to sort on in the report do not form a compound unique key, then include the PK in the query and pull it (invisibly) into the report and sort on that as the last field. /gustav >>> max.wanadoo at gmail.com 17-03-2008 15:18 >>> Hi Gustav, I tried various things, but the bottom line is that where there are repeating codes I am not confident that the report will pull the records in the exact same order as it did for the Form even though it "appears" to do so with the changes you suggest. So, I have added an extra field which is incremented at the same time as the codes are processed/entered and both the forms and the report now sequence on that fields - fool proof! Thanks for the feedback - much appreciated. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, March 17, 2008 10:10 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Report Data Order Differs From Form or Query DataOrder Hi Max Did you use the sorting/grouping option of the _report_ and left the source unsorted: SELECT * FROM LotterySpring2008; /gustav >>> max.wanadoo at gmail.com 17-03-2008 10:52 >>> Hi Gustav, Generally I accept what you are saying. But, no matter what I do, I cannot get the report to have the same ORDER as the Form. The query is SELECT * FROM LotterySpring2008 ORDER BY LotterySpring2008.Mailsort; The Query is called qryReportDataTemp. The contents is dynamically created from code where the tablename changes based on the user requirements. The SOURCE for the Form is qryReportDataTemp The SOURCE for the Report is also qryReportDataTemp No filters, etc applied. The Form shows records in correct order. The Report does not. Even if, as you suggest, I use the sorting/grouping option and explicitly state "Mailsort" Ascending. The ORDER of the records display in the report is NOT the same ORDER as those display in the FORM or that which is shown if you open the QUERY directly. It appears to me that there is a different ENGINE driving the Report. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, March 17, 2008 8:27 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Report Data Order Differs From Form or Query DataOrder Hi Max Yes, _always_ use the sorting/grouping option of the report (and leave the source unsorted) if you have a specific sorting/order need - which is true for most reports. /gustav >>> max.wanadoo at gmail.com 17-03-2008 09:20 >>> Is there a different "engine" used by the RPORT as opposed to that used by -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Tue Mar 18 08:17:37 2008 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Tue, 18 Mar 2008 06:17:37 -0700 Subject: [AccessD] Array is locked In-Reply-To: <001901c888ca$62aee6e0$8119fea9@LTVM> References: <34C8A2AB1EF3564CB0D64DB6AFFDD5C211DF6550@XLIVMBX35bkup.aig.com><000001c88849$5a4f8490$0301a8c0@HAL9005><29f585dd0803170931s5ce619docf1e296ad536ecd5@mail.gmail.com><000101c8884e$d9d8cd70$0301a8c0@HAL9005><001901c8887b$48a83fc0$0301a8c0@HAL9005> <001901c888ca$62aee6e0$8119fea9@LTVM> Message-ID: <000f01c888fa$6fe63ae0$0301a8c0@HAL9005> Sounds like page locking instead of record locking. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Tuesday, March 18, 2008 12:34 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Array is locked Well here is another bug/feature. A3K Default Record Locking set to "Edited Record" Problem: Main form has 3 sub forms. Click button opens a new form. This new form has a click button which runs a function. Function opens a new recordset which requires records which are also held in one of the subform on the main form. All records in rst are parsed and updated (90k+ ) except for 97 records. Always the same 97 Turns Out: Turns out that one of the sub forms oncurrent event was making a record "dirty" (ie, changing a value as the record was accessed) and thus it was locked. Access (of course) locked this record but also the records around it (the other 96). It was not apparent that this was the problem as there was no way to "SEE" that the record was "dirty" as the forms were not displaying the indicators. Also difficult to pin down as Access of course "updated" and thus made "Clean" the record as the focus was moved. Lots of head scratching. Answer: In the last line of the oncurrent event for each of the subforms and the main form put in me.dirty=false. Also put this in just before the click button opened the function. That done the trick. So much for the Default Record Locking set to "Edited Record". 96 other records were locked as well. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Monday, March 17, 2008 10:19 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Array is locked Is that a bug or feature? Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Monday, March 17, 2008 3:07 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Array is locked FYI: I figured it out - brute force, binary search - ReDimming various places in the module until I found where it failed. Turned out that if you use With/End with on the array, it's locked - and apparently stays locked for the duration of the module. Don't know if there's a way to unlock it. End With doesn't do it. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Monday, March 17, 2008 9:49 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Array is locked Arthur: I tried this: For lngI = 1 To UBound(mudTH) If mudTH(lngI).fOrdering = True Then If lngI <> UBound(mudTH) Then ' if not the last record in the TH array For lngL = lngI To UBound(mudTH) - 1 mudTH(lngL) = mudTH(lngL + 1) Next lngL End If lngDeletes = lngDeletes + 1 ReDim Preserve mudTH(UBound(mudTH) - 1) End If Next lngI 'If lngDeletes <> 0 Then ReDim Preserve mudTH(UBound(mudTH) - lngDeletes) Where before the first ReDim was commented out. I uncommented it and got the lock message first time .fOrdering was True. The rest of the code moves all the downstream elements of the array up one element to delete the current element. It's a legacy app and really one huge bowl of spaghetti. I'm thinking about going around the problems by substituting a variable lngUboundmudTH for everywhere the code uses UBound(mudTH) abd just reduce that variable in this case by lngDeletes. But finding all occurrences of UBound(mudTH) could be a problem since it might be in Control Sources, Record Sources, stored queries, almost anyplace. Like I say - legacy code. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Monday, March 17, 2008 9:31 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Array is locked Just a wag, Rocky, but what if you ReDimmed the array element by element? It might be that something somewhere in the middle is causing the problem. You could easily find out whether the whole array is locked by just shrinking it one element. If that works then try the loop and decrement the size until she goes boom. Just a wag, as I said. Arthur On 3/17/08, Rocky Smolin at Beach Access Software wrote: > > Lambert: > > Here's the Type: > > Private Type THRecord > TaskID As Long 'T > StartDate As Date 'S > DueDate As Date 'D > QuasiDueDate As Date 'Q > TargetDate As Date 'R > RequiredHours As Double 'H > EarliestCompleteDate As Date 'C > ASAP As Double 'A > fOrdering As Boolean 'F > ErrorHours As Double 'E > TempReg As Double 'Z > DueDateFlag As Boolean 'FD > PastDueFlag As Boolean 'FP > ASAPFlag As Boolean 'FA > TargetDateFlag As Boolean 'FT > End Type > Dim mudTH() As THRecord 'TH > > There are lots of references to elements in the aray but at the point > where the redim occurs, there are no references. Does any reference > lock the array and then the lock persists? Is there a way to > determine what element in an array is causing the lock or a way to > release the array? > > > TIA > > 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. Version: 7.5.519 / Virus Database: 269.21.7/1331 - Release Date: 3/16/2008 10:34 AM -- 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. Version: 7.5.519 / Virus Database: 269.21.7/1331 - Release Date: 3/16/2008 10:34 AM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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. Version: 7.5.519 / Virus Database: 269.21.7/1332 - Release Date: 3/17/2008 10:48 AM From Lambert.Heenan at AIG.com Tue Mar 18 08:23:38 2008 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Tue, 18 Mar 2008 09:23:38 -0400 Subject: [AccessD] Array is locked Message-ID: <34C8A2AB1EF3564CB0D64DB6AFFDD5C211DF6569@XLIVMBX35bkup.aig.com> I don't think so!! :-) This code runs without complaint... Type fooBar x As Long y As String End Type Sub ArryTest() Dim lngDeletes As Long Dim mudTH() As fooBar ReDim mudTH(1 To 41) With mudTH(1) .x = 1 .y = "one" End With Debug.Print mudTH(1).x, mudTH(1).y lngDeletes = 40 If lngDeletes <> 0 Then Dim lngTemp As Long lngTemp = UBound(mudTH) - lngDeletes ReDim Preserve mudTH(1 To lngTemp) End If End Sub I still favor the corrupt module theory. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Monday, March 17, 2008 6:07 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Array is locked FYI: I figured it out - brute force, binary search - ReDimming various places in the module until I found where it failed. Turned out that if you use With/End with on the array, it's locked - and apparently stays locked for the duration of the module. Don't know if there's a way to unlock it. End With doesn't do it. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Monday, March 17, 2008 9:49 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Array is locked Arthur: I tried this: For lngI = 1 To UBound(mudTH) If mudTH(lngI).fOrdering = True Then If lngI <> UBound(mudTH) Then ' if not the last record in the TH array For lngL = lngI To UBound(mudTH) - 1 mudTH(lngL) = mudTH(lngL + 1) Next lngL End If lngDeletes = lngDeletes + 1 ReDim Preserve mudTH(UBound(mudTH) - 1) End If Next lngI 'If lngDeletes <> 0 Then ReDim Preserve mudTH(UBound(mudTH) - lngDeletes) Where before the first ReDim was commented out. I uncommented it and got the lock message first time .fOrdering was True. The rest of the code moves all the downstream elements of the array up one element to delete the current element. It's a legacy app and really one huge bowl of spaghetti. I'm thinking about going around the problems by substituting a variable lngUboundmudTH for everywhere the code uses UBound(mudTH) abd just reduce that variable in this case by lngDeletes. But finding all occurrences of UBound(mudTH) could be a problem since it might be in Control Sources, Record Sources, stored queries, almost anyplace. Like I say - legacy code. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Monday, March 17, 2008 9:31 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Array is locked Just a wag, Rocky, but what if you ReDimmed the array element by element? It might be that something somewhere in the middle is causing the problem. You could easily find out whether the whole array is locked by just shrinking it one element. If that works then try the loop and decrement the size until she goes boom. Just a wag, as I said. Arthur On 3/17/08, Rocky Smolin at Beach Access Software wrote: > > Lambert: > > Here's the Type: > > Private Type THRecord > TaskID As Long 'T > StartDate As Date 'S > DueDate As Date 'D > QuasiDueDate As Date 'Q > TargetDate As Date 'R > RequiredHours As Double 'H > EarliestCompleteDate As Date 'C > ASAP As Double 'A > fOrdering As Boolean 'F > ErrorHours As Double 'E > TempReg As Double 'Z > DueDateFlag As Boolean 'FD > PastDueFlag As Boolean 'FP > ASAPFlag As Boolean 'FA > TargetDateFlag As Boolean 'FT > End Type > Dim mudTH() As THRecord 'TH > > There are lots of references to elements in the aray but at the point > where the redim occurs, there are no references. Does any reference > lock the array and then the lock persists? Is there a way to > determine what element in an array is causing the lock or a way to > release the array? > > > TIA > > 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. Version: 7.5.519 / Virus Database: 269.21.7/1331 - Release Date: 3/16/2008 10:34 AM -- 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. Version: 7.5.519 / Virus Database: 269.21.7/1331 - Release Date: 3/16/2008 10:34 AM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Tue Mar 18 09:40:05 2008 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Tue, 18 Mar 2008 07:40:05 -0700 Subject: [AccessD] Array is locked In-Reply-To: <34C8A2AB1EF3564CB0D64DB6AFFDD5C211DF6569@XLIVMBX35bkup.aig.com> References: <34C8A2AB1EF3564CB0D64DB6AFFDD5C211DF6569@XLIVMBX35bkup.aig.com> Message-ID: <001e01c88905$f5127b10$0301a8c0@HAL9005> Here it blew with the With/End With and when I removed that and added the mudTH(n) explicitly (mudTH(n).x) it worked. Go figure. I'm using A2K3. Don't know if that makes a difference. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Tuesday, March 18, 2008 6:24 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Array is locked I don't think so!! :-) This code runs without complaint... Type fooBar x As Long y As String End Type Sub ArryTest() Dim lngDeletes As Long Dim mudTH() As fooBar ReDim mudTH(1 To 41) With mudTH(1) .x = 1 .y = "one" End With Debug.Print mudTH(1).x, mudTH(1).y lngDeletes = 40 If lngDeletes <> 0 Then Dim lngTemp As Long lngTemp = UBound(mudTH) - lngDeletes ReDim Preserve mudTH(1 To lngTemp) End If End Sub I still favor the corrupt module theory. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Monday, March 17, 2008 6:07 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Array is locked FYI: I figured it out - brute force, binary search - ReDimming various places in the module until I found where it failed. Turned out that if you use With/End with on the array, it's locked - and apparently stays locked for the duration of the module. Don't know if there's a way to unlock it. End With doesn't do it. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Monday, March 17, 2008 9:49 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Array is locked Arthur: I tried this: For lngI = 1 To UBound(mudTH) If mudTH(lngI).fOrdering = True Then If lngI <> UBound(mudTH) Then ' if not the last record in the TH array For lngL = lngI To UBound(mudTH) - 1 mudTH(lngL) = mudTH(lngL + 1) Next lngL End If lngDeletes = lngDeletes + 1 ReDim Preserve mudTH(UBound(mudTH) - 1) End If Next lngI 'If lngDeletes <> 0 Then ReDim Preserve mudTH(UBound(mudTH) - lngDeletes) Where before the first ReDim was commented out. I uncommented it and got the lock message first time .fOrdering was True. The rest of the code moves all the downstream elements of the array up one element to delete the current element. It's a legacy app and really one huge bowl of spaghetti. I'm thinking about going around the problems by substituting a variable lngUboundmudTH for everywhere the code uses UBound(mudTH) abd just reduce that variable in this case by lngDeletes. But finding all occurrences of UBound(mudTH) could be a problem since it might be in Control Sources, Record Sources, stored queries, almost anyplace. Like I say - legacy code. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Monday, March 17, 2008 9:31 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Array is locked Just a wag, Rocky, but what if you ReDimmed the array element by element? It might be that something somewhere in the middle is causing the problem. You could easily find out whether the whole array is locked by just shrinking it one element. If that works then try the loop and decrement the size until she goes boom. Just a wag, as I said. Arthur On 3/17/08, Rocky Smolin at Beach Access Software wrote: > > Lambert: > > Here's the Type: > > Private Type THRecord > TaskID As Long 'T > StartDate As Date 'S > DueDate As Date 'D > QuasiDueDate As Date 'Q > TargetDate As Date 'R > RequiredHours As Double 'H > EarliestCompleteDate As Date 'C > ASAP As Double 'A > fOrdering As Boolean 'F > ErrorHours As Double 'E > TempReg As Double 'Z > DueDateFlag As Boolean 'FD > PastDueFlag As Boolean 'FP > ASAPFlag As Boolean 'FA > TargetDateFlag As Boolean 'FT > End Type > Dim mudTH() As THRecord 'TH > > There are lots of references to elements in the aray but at the point > where the redim occurs, there are no references. Does any reference > lock the array and then the lock persists? Is there a way to > determine what element in an array is causing the lock or a way to > release the array? > > > TIA > > 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. Version: 7.5.519 / Virus Database: 269.21.7/1331 - Release Date: 3/16/2008 10:34 AM -- 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. Version: 7.5.519 / Virus Database: 269.21.7/1331 - Release Date: 3/16/2008 10:34 AM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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. Version: 7.5.519 / Virus Database: 269.21.7/1332 - Release Date: 3/17/2008 10:48 AM From Lambert.Heenan at AIG.com Tue Mar 18 10:14:53 2008 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Tue, 18 Mar 2008 10:14:53 -0500 Subject: [AccessD] Array is locked Message-ID: <34C8A2AB1EF3564CB0D64DB6AFFDD5C211DF6579@XLIVMBX35bkup.aig.com> I'm on Access 2002 (XP), but that really should not matter. I'm still leaning towards a corrupted module and suggest that you try the decompile process to see if it fixes it - don't forget to back up first. E.g. "C:\Program Files\Microsoft Office\Office\MSACCESS.EXE" "d:\My Documents\access\mayapp.mdb" /decompile Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Tuesday, March 18, 2008 10:40 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Array is locked Here it blew with the With/End With and when I removed that and added the mudTH(n) explicitly (mudTH(n).x) it worked. Go figure. I'm using A2K3. Don't know if that makes a difference. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Tuesday, March 18, 2008 6:24 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Array is locked I don't think so!! :-) This code runs without complaint... Type fooBar x As Long y As String End Type Sub ArryTest() Dim lngDeletes As Long Dim mudTH() As fooBar ReDim mudTH(1 To 41) With mudTH(1) .x = 1 .y = "one" End With Debug.Print mudTH(1).x, mudTH(1).y lngDeletes = 40 If lngDeletes <> 0 Then Dim lngTemp As Long lngTemp = UBound(mudTH) - lngDeletes ReDim Preserve mudTH(1 To lngTemp) End If End Sub I still favor the corrupt module theory. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Monday, March 17, 2008 6:07 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Array is locked FYI: I figured it out - brute force, binary search - ReDimming various places in the module until I found where it failed. Turned out that if you use With/End with on the array, it's locked - and apparently stays locked for the duration of the module. Don't know if there's a way to unlock it. End With doesn't do it. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Monday, March 17, 2008 9:49 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Array is locked Arthur: I tried this: For lngI = 1 To UBound(mudTH) If mudTH(lngI).fOrdering = True Then If lngI <> UBound(mudTH) Then ' if not the last record in the TH array For lngL = lngI To UBound(mudTH) - 1 mudTH(lngL) = mudTH(lngL + 1) Next lngL End If lngDeletes = lngDeletes + 1 ReDim Preserve mudTH(UBound(mudTH) - 1) End If Next lngI 'If lngDeletes <> 0 Then ReDim Preserve mudTH(UBound(mudTH) - lngDeletes) Where before the first ReDim was commented out. I uncommented it and got the lock message first time .fOrdering was True. The rest of the code moves all the downstream elements of the array up one element to delete the current element. It's a legacy app and really one huge bowl of spaghetti. I'm thinking about going around the problems by substituting a variable lngUboundmudTH for everywhere the code uses UBound(mudTH) abd just reduce that variable in this case by lngDeletes. But finding all occurrences of UBound(mudTH) could be a problem since it might be in Control Sources, Record Sources, stored queries, almost anyplace. Like I say - legacy code. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Monday, March 17, 2008 9:31 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Array is locked Just a wag, Rocky, but what if you ReDimmed the array element by element? It might be that something somewhere in the middle is causing the problem. You could easily find out whether the whole array is locked by just shrinking it one element. If that works then try the loop and decrement the size until she goes boom. Just a wag, as I said. Arthur On 3/17/08, Rocky Smolin at Beach Access Software wrote: > > Lambert: > > Here's the Type: > > Private Type THRecord > TaskID As Long 'T > StartDate As Date 'S > DueDate As Date 'D > QuasiDueDate As Date 'Q > TargetDate As Date 'R > RequiredHours As Double 'H > EarliestCompleteDate As Date 'C > ASAP As Double 'A > fOrdering As Boolean 'F > ErrorHours As Double 'E > TempReg As Double 'Z > DueDateFlag As Boolean 'FD > PastDueFlag As Boolean 'FP > ASAPFlag As Boolean 'FA > TargetDateFlag As Boolean 'FT > End Type > Dim mudTH() As THRecord 'TH > > There are lots of references to elements in the aray but at the point > where the redim occurs, there are no references. Does any reference > lock the array and then the lock persists? Is there a way to > determine what element in an array is causing the lock or a way to > release the array? > > > TIA > > 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. Version: 7.5.519 / Virus Database: 269.21.7/1331 - Release Date: 3/16/2008 10:34 AM -- 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. Version: 7.5.519 / Virus Database: 269.21.7/1331 - Release Date: 3/16/2008 10:34 AM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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. Version: 7.5.519 / Virus Database: 269.21.7/1332 - Release Date: 3/17/2008 10:48 AM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From tinanfields at torchlake.com Tue Mar 18 10:53:28 2008 From: tinanfields at torchlake.com (Tina Norris Fields) Date: Tue, 18 Mar 2008 11:53:28 -0400 Subject: [AccessD] Software to repair corrupt database In-Reply-To: <000001c8878e$0845b130$6401a8c0@ACER2G> References: <47DBCF09.6090407@torchlake.com> <000001c8878e$0845b130$6401a8c0@ACER2G> Message-ID: <47DFE578.4080001@torchlake.com> Hi Joe, When the problem first happened, I tried creating a fresh blank database and importing all the objects from the problem database. That got me the error message that I couldn't proceed because some other user was using the database, or changing the data, or something similar. There was no one else using the database and there was no lock file. I tried taking a copy of the problem database to a different machine entirely (as in home to my office), and trying again to import all objects into the new database. No joy. Depending on whether I was trying to open the problem database (1 & 2) or trying to import objects from the problem database into a fresh database (3), I got these error messages: 1) " isn't an index in this table. Look in the indexes collection of the TableDef object to determine the valid index names" 2) "Operation invalid without a current index." and 3) "The Microsoft Jet database engine stopped the process because you and another user are attempting to change the same data at the same time." I did send my corrupt file off to corruptfilerepair.com and get it back with all the tables and the relationships grid looking good. I am now going through it to examine all the queries and forms to find flaws and fix them. The first query I tried to run is the one that was running when the system crashed, and it didn't want to work for me. That one I will recreate from scratch, because I believe it is the primary corruption culprit - aside from the hardware and operating systems issues in the client's office. Thanks for the hint, I will check out FMSINC.com. Regards, Tina Joe Hecht wrote: > Hi Tina, > > I do nit know if FMSINC.com has anything but that might be worth a look for > long term. > > What happens if you import everything in the current problem mdb into a new > file? That has helped me once or twice. > > Joe Hecht > Joe at anamericanjoe.us > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Tina Norris > Fields > Sent: Saturday, March 15, 2008 6:29 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Software to repair corrupt database > > Hi Gustav, > > Oh yes, the right thing to do is to deal with the sources of > corruption! And I will use the fine message you sent me to back up my > comments to these lovely people. I have rescued them a few times, even > making minor adjustments to their database. My friend Wayne Madison, > who developed it for them back in 1999 or 2000, tried unsuccessfully to > get the previous management to institute certain procedures. I have > tried, also unsuccessfully, to get them to take serious responsibility > for protecting their database. But, now, I think I have their > attention. For some weeks, now, they have been unable to send out > acknowledgement letters to the people who make donations to them. > First, because they edited the mail-merge document and scrambled the > fields in the letter, and now, because of a system-crash corruption. > > I have bookmarked the Garry Robinson page. Thank you for the link. > > Still, I would like to find a good utility for my own, or my clients', > next emergency. > > Thanks for your response, > Tina > > Gustav Brock wrote: > >> Hi Tina >> >> First, you could double-check with the service of Garry Robinson: >> >> http://www.vb123.com/fixaccess/ >> >> Then I would rather spend yours and the client's limited resources on >> > dealing with the sources for corruption: > >> - split the database >> - arrange for a decent backup to a different or external drive >> - use Win98 for simple lookups and the like >> - perform mail merge on the most powerful machine >> >> Should be quite easy to carry out ... >> >> The only tools I have used for repairing databases is JetComp and a hex >> > editor. > >> /gustav >> >> >> >>>>> tinanfields at torchlake.com 15-03-2008 12:52 >>> >>>>> >>>>> >> Hi All, >> >> A local organization has a nice database of donors, members, and similar >> stuff. It was probably first crafted in A97. I did not build it, but >> know the developer who did (he's a very talented guy who keeps >> disappearing). The organization has the database on a small server with >> three or four computers having access to the database. The database is >> not split into BE and FE, it is simply shared. The computers used for >> accessing the database are of different operating systems, of course, >> ranging from Win98 to WinXP. >> >> The Win98 machine was being used to run a mail merge acknowledgement >> letter in Word that is populated by a parameter select query in the >> database. The Win98 machine choked and froze. The database was >> unusable after that. The message received whenever one tried to open it >> was " isn't an index in this table. Look in the indexes >> collection of the TableDef object to determine the valid index names." >> Clear case of corruption! >> >> I had been working to fix a wrecked mail-merge document, so was present >> when the system froze. I asked about the most recent backup and was >> told that they had no idea how the backup was done, but their network >> guru said it was done automatically. Great! say I, get the backup from >> Jim and we will go back to the mail-merge. Well, they would have to >> call Jim. . . . A week later, I had heard nothing back from them so I >> called. Well, Jim said the whole system is automatically backed up, but >> he can't just get the Access database out for them. Jim and his group >> have been trying to repair the database, but they haven't succeeded. >> >> Meanwhile, I've been out looking for software to repair corrupted Access >> databases, and I've found a couple that let me run a demo for free, but >> will cost about $300 USD to actually get the output file. They are: >> Advanced Access Repair from Data Numen Inc. and AccessFIX from >> Cimaware. They appear to work, although AccessFIX demo indicated that >> part of the structure couldn't be determined without a copy to compare >> to. (That would not be awfully difficult, because whenever I visit this >> organization I make a backup copy of the database, so the dated copy I >> made in October of 2006 is still there.) The $300 USD price-tag is a >> bit stiff. >> >> I found a repair service at corruptfilerepair.com. I sent them the >> zipped corrupt database, and they have sent me an email with a >> screen-shot of the repaired database, showing the tables container and >> one of the tables open. If I am satisfied, they will send me a payment >> link and I will pay them $39 USD and they will send back the repaired >> database. This price seems reasonable, and I am willing to pay that >> much to get my friends back up and running. >> >> For the future, I would like to have in my own possession a decent >> utility for repairing corrupt databases. What can you, my favorite team >> of real gurus, tell me about such software? >> >> Thanks for all help, >> Tina >> >> >> >> From markamatte at hotmail.com Tue Mar 18 11:06:58 2008 From: markamatte at hotmail.com (Mark A Matte) Date: Tue, 18 Mar 2008 16:06:58 +0000 Subject: [AccessD] Report Data Order Differs From Form or Query DataOrder In-Reply-To: <002b01c888dd$7c4dc2c0$8119fea9@LTVM> References: <002b01c888dd$7c4dc2c0$8119fea9@LTVM> Message-ID: Max, This isn't so much about solving your issue...just stating some highlights that may or may not help. Sorting of data can be in many places. Table, query, form and report can all have different sorts for the same data. Is it possible 1 of the 4 is out of sync? You can sort in a query...but display it sorted differently in the form...and have a report on the same exact query...but the report sorted differently. For my postcard printing the print order is essential because I am printing duplex with customer info on both sides of the card...so I have to maintain the order at all cost. I use an autonumber generator to insure the order is preserved. I use an APPEND query to a temp table to preserve the order because a SELECT query display will cause the code to fire again as you scroll. I just have to reset lngTableCounter before I run it each time. Then my form and report are sorted off this number Good Luck, Mark A. Matte ******************* Option Compare Database Option Explicit Global lngTableCounter As Long Function MyAutoCtr(prmAny) 'Trick is to pass a field from the input table(s) so that function called for each record 'otherwise Access thinks that the function will always return the same value and 'only calls it once, and every output record gets the same value MyAutoCtr = lngTableCounter lngTableCounter = lngTableCounter + 1 End Function ******************** > From: max.wanadoo at gmail.com > To: accessd at databaseadvisors.com > Date: Tue, 18 Mar 2008 09:50:21 +0000 > Subject: Re: [AccessD] Report Data Order Differs From Form or Query DataOrder > > Hi Gustav, > Hmmm. I know you are trying to help and I do really appreciate that. > I think however you are still missing the point of the problem I was facing > with the REPORT Engine displaying records in a different sequence to that > displayed in a FORM or directly from a QUERY where the SAME query is used as > the RecordSource. > > I have multiple forms and multiple records which are identical apart from > the source table which changes depending on which spreadsheet the user opted > to import and process. > Instead of programmatically changing the RECORDSOURCE for each FORM/REPORT I > have set all their RECORDSOURCES to a QUERY (qryData) > The query is recreated during the processing. > > Image x records which need to have a mailsort code entered into a field. > These records are processed and a new mailsort code derived and the record > updated. This process is quite complicated but at the end of it we end up > with all records having a mailsort code. There are many records with > multiple matching codes. > > I then sort by this mailsort code and process again. The sequence of which > the records are now presented must be maintained. > > A. Every time we have a new mailsort code we insert a bagbreak symbol into a > field and set a counter to 1. > B. For subsequent records we increment the counter until either: > 1. A new mailsortcode is found, or > 2. The counter is equal to the maximum bags allowed per bag. At this point > we go back to A. > > So, having done all that we must now preserve that same order and start to > print the letters. > I am doing this via a REPORT so it is essential that the REPORT retains the > same sequence of records. > > As you very correctly pointed out, for the sequence of records presentation > to be the same as in the table, the SORT BY needs to be done within the > Report's Sorting/Grouping whereas with the FORM is done straight from the > query. > > The Point is this: Why does the RPORT use a different engine that a FORM > when identical query is used. > > Assume: > 100 records all with Mailsortcode = "ABC" and another 100 with code = "BCD" > and bag breaks every 20 records. > The table was indexed on MailsortCode > When they were processed the bag breaks would have been inserted every 20 > records and for each code change. > So, the first 20 records when view in a Form (using the same query that was > used when they were processed) may have been presented on the form/query as: > Record 2076 > Record 17 > Record 155 > Record et > > When the same query is put into the RecordSource of a Report, the sequence > changes, to (for example) > Record 155 > Record 2076 > Record 17 > Record et > > In other words, they are correct within the mailsort code but the actual > sequence of presentation is different. > > Phew! I think I will drop this now. > > Thanks for all your help. > > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock > Sent: Monday, March 17, 2008 3:54 PM > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] Report Data Order Differs From Form or Query > DataOrder > > Hi Max > > I didn't say that. If you (now) have established a unique sorting you will, > of course, preserve that. The only place to do this for the report is, > however, in the report. That's the point. > > /gustav > >>>> max.wanadoo at gmail.com 17-03-2008 16:43>>> > Hi Gustav, > No, I MUST NOT change the sequence in any way. Once it has been processed > through a loop, each record will have a mailsort bagbreak inserted based on > its real life position in the table. This must not change in any way from > there on. No filters, no indexes etc, it must be the exact order it was in > when it was processed. > Thanks anyway. > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock > Sent: Monday, March 17, 2008 2:31 PM > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] Report Data Order Differs From Form or Query > DataOrder > > Hi Max > > Oh, now I see. You have to sort on something unique to obtain the exact same > sort order. > If the fields you wish to sort on in the report do not form a compound > unique key, then include the PK in the query and pull it (invisibly) into > the report and sort on that as the last field. > > /gustav > >>>> max.wanadoo at gmail.com 17-03-2008 15:18>>> > Hi Gustav, > I tried various things, but the bottom line is that where there are > repeating codes I am not confident that the report will pull the records in > the exact same order as it did for the Form even though it "appears" to do > so with the changes you suggest. > > So, I have added an extra field which is incremented at the same time as the > codes are processed/entered and both the forms and the report now sequence > on that fields - fool proof! > > Thanks for the feedback - much appreciated. > > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock > Sent: Monday, March 17, 2008 10:10 AM > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] Report Data Order Differs From Form or Query > DataOrder > > Hi Max > > Did you use the sorting/grouping option of the _report_ and left the source > unsorted: > > SELECT * > FROM LotterySpring2008; > > /gustav > >>>> max.wanadoo at gmail.com 17-03-2008 10:52>>> > Hi Gustav, > Generally I accept what you are saying. > But, no matter what I do, I cannot get the report to have the same ORDER as > the Form. > > The query is > > SELECT * > FROM LotterySpring2008 > ORDER BY LotterySpring2008.Mailsort; > > The Query is called qryReportDataTemp. The contents is dynamically created > from code where the tablename changes based on the user requirements. > > The SOURCE for the Form is qryReportDataTemp The SOURCE for the Report is > also qryReportDataTemp > > No filters, etc applied. > The Form shows records in correct order. > The Report does not. > > Even if, as you suggest, I use the sorting/grouping option and explicitly > state "Mailsort" Ascending. The ORDER of the records display in the report > is NOT the same ORDER as those display in the FORM or that which is shown if > you open the QUERY directly. > > It appears to me that there is a different ENGINE driving the Report. > > Max > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock > Sent: Monday, March 17, 2008 8:27 AM > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] Report Data Order Differs From Form or Query > DataOrder > > Hi Max > > Yes, _always_ use the sorting/grouping option of the report (and leave the > source unsorted) if you have a specific sorting/order need - which is true > for most reports. > > /gustav > >>>> max.wanadoo at gmail.com 17-03-2008 09:20>>> > > Is there a different "engine" used by the RPORT as opposed to that used by > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com _________________________________________________________________ Need to know the score, the latest news, or you need your Hotmail?-get your "fix". http://www.msnmobilefix.com/Default.aspx From rockysmolin at bchacc.com Tue Mar 18 11:09:57 2008 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Tue, 18 Mar 2008 09:09:57 -0700 Subject: [AccessD] Array is locked In-Reply-To: <34C8A2AB1EF3564CB0D64DB6AFFDD5C211DF6579@XLIVMBX35bkup.aig.com> References: <34C8A2AB1EF3564CB0D64DB6AFFDD5C211DF6579@XLIVMBX35bkup.aig.com> Message-ID: <002e01c88912$83e070c0$0301a8c0@HAL9005> Lambert: I tried the decompile per your suggestion yesterday but no change. I guess it'll be one of those enduring mysteries of Access. :) Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Tuesday, March 18, 2008 8:15 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Array is locked I'm on Access 2002 (XP), but that really should not matter. I'm still leaning towards a corrupted module and suggest that you try the decompile process to see if it fixes it - don't forget to back up first. E.g. "C:\Program Files\Microsoft Office\Office\MSACCESS.EXE" "d:\My Documents\access\mayapp.mdb" /decompile Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Tuesday, March 18, 2008 10:40 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Array is locked Here it blew with the With/End With and when I removed that and added the mudTH(n) explicitly (mudTH(n).x) it worked. Go figure. I'm using A2K3. Don't know if that makes a difference. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Tuesday, March 18, 2008 6:24 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Array is locked I don't think so!! :-) This code runs without complaint... Type fooBar x As Long y As String End Type Sub ArryTest() Dim lngDeletes As Long Dim mudTH() As fooBar ReDim mudTH(1 To 41) With mudTH(1) .x = 1 .y = "one" End With Debug.Print mudTH(1).x, mudTH(1).y lngDeletes = 40 If lngDeletes <> 0 Then Dim lngTemp As Long lngTemp = UBound(mudTH) - lngDeletes ReDim Preserve mudTH(1 To lngTemp) End If End Sub I still favor the corrupt module theory. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Monday, March 17, 2008 6:07 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Array is locked FYI: I figured it out - brute force, binary search - ReDimming various places in the module until I found where it failed. Turned out that if you use With/End with on the array, it's locked - and apparently stays locked for the duration of the module. Don't know if there's a way to unlock it. End With doesn't do it. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Monday, March 17, 2008 9:49 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Array is locked Arthur: I tried this: For lngI = 1 To UBound(mudTH) If mudTH(lngI).fOrdering = True Then If lngI <> UBound(mudTH) Then ' if not the last record in the TH array For lngL = lngI To UBound(mudTH) - 1 mudTH(lngL) = mudTH(lngL + 1) Next lngL End If lngDeletes = lngDeletes + 1 ReDim Preserve mudTH(UBound(mudTH) - 1) End If Next lngI 'If lngDeletes <> 0 Then ReDim Preserve mudTH(UBound(mudTH) - lngDeletes) Where before the first ReDim was commented out. I uncommented it and got the lock message first time .fOrdering was True. The rest of the code moves all the downstream elements of the array up one element to delete the current element. It's a legacy app and really one huge bowl of spaghetti. I'm thinking about going around the problems by substituting a variable lngUboundmudTH for everywhere the code uses UBound(mudTH) abd just reduce that variable in this case by lngDeletes. But finding all occurrences of UBound(mudTH) could be a problem since it might be in Control Sources, Record Sources, stored queries, almost anyplace. Like I say - legacy code. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Monday, March 17, 2008 9:31 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Array is locked Just a wag, Rocky, but what if you ReDimmed the array element by element? It might be that something somewhere in the middle is causing the problem. You could easily find out whether the whole array is locked by just shrinking it one element. If that works then try the loop and decrement the size until she goes boom. Just a wag, as I said. Arthur On 3/17/08, Rocky Smolin at Beach Access Software wrote: > > Lambert: > > Here's the Type: > > Private Type THRecord > TaskID As Long 'T > StartDate As Date 'S > DueDate As Date 'D > QuasiDueDate As Date 'Q > TargetDate As Date 'R > RequiredHours As Double 'H > EarliestCompleteDate As Date 'C > ASAP As Double 'A > fOrdering As Boolean 'F > ErrorHours As Double 'E > TempReg As Double 'Z > DueDateFlag As Boolean 'FD > PastDueFlag As Boolean 'FP > ASAPFlag As Boolean 'FA > TargetDateFlag As Boolean 'FT > End Type > Dim mudTH() As THRecord 'TH > > There are lots of references to elements in the aray but at the point > where the redim occurs, there are no references. Does any reference > lock the array and then the lock persists? Is there a way to > determine what element in an array is causing the lock or a way to > release the array? > > > TIA > > 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. Version: 7.5.519 / Virus Database: 269.21.7/1331 - Release Date: 3/16/2008 10:34 AM -- 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. Version: 7.5.519 / Virus Database: 269.21.7/1331 - Release Date: 3/16/2008 10:34 AM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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. Version: 7.5.519 / Virus Database: 269.21.7/1332 - Release Date: 3/17/2008 10:48 AM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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. Version: 7.5.519 / Virus Database: 269.21.7/1332 - Release Date: 3/17/2008 10:48 AM From max.wanadoo at gmail.com Tue Mar 18 11:19:00 2008 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Tue, 18 Mar 2008 16:19:00 -0000 Subject: [AccessD] Report Data Order Differs From Form or Query DataOrder In-Reply-To: References: <002b01c888dd$7c4dc2c0$8119fea9@LTVM> Message-ID: <014301c88913$c6cda910$8119fea9@LTVM> Yes, that is exactly what I do Mark, When the table is parsed in mailsortcode order I append an incrementing number to a field (MailsortSequence) I then use that field (MailsortSequence) as the "ORDER BY" field for future queries, reports and forms. That way I KNOW that the records are in the same order as they were when the number (MailsortSequence) was inserted into the table. Thanks Mark, Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Tuesday, March 18, 2008 4:07 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Report Data Order Differs From Form or Query DataOrder Max, This isn't so much about solving your issue...just stating some highlights that may or may not help. Sorting of data can be in many places. Table, query, form and report can all have different sorts for the same data. Is it possible 1 of the 4 is out of sync? You can sort in a query...but display it sorted differently in the form...and have a report on the same exact query...but the report sorted differently. For my postcard printing the print order is essential because I am printing duplex with customer info on both sides of the card...so I have to maintain the order at all cost. I use an autonumber generator to insure the order is preserved. I use an APPEND query to a temp table to preserve the order because a SELECT query display will cause the code to fire again as you scroll. I just have to reset lngTableCounter before I run it each time. Then my form and report are sorted off this number Good Luck, Mark A. Matte ******************* Option Compare Database Option Explicit Global lngTableCounter As Long Function MyAutoCtr(prmAny) 'Trick is to pass a field from the input table(s) so that function called for each record 'otherwise Access thinks that the function will always return the same value and 'only calls it once, and every output record gets the same value MyAutoCtr = lngTableCounter lngTableCounter = lngTableCounter + 1 End Function ******************** > From: max.wanadoo at gmail.com > To: accessd at databaseadvisors.com > Date: Tue, 18 Mar 2008 09:50:21 +0000 > Subject: Re: [AccessD] Report Data Order Differs From Form or Query > DataOrder > > Hi Gustav, > Hmmm. I know you are trying to help and I do really appreciate that. > I think however you are still missing the point of the problem I was > facing with the REPORT Engine displaying records in a different > sequence to that displayed in a FORM or directly from a QUERY where > the SAME query is used as the RecordSource. > > I have multiple forms and multiple records which are identical apart > from the source table which changes depending on which spreadsheet the > user opted to import and process. > Instead of programmatically changing the RECORDSOURCE for each > FORM/REPORT I have set all their RECORDSOURCES to a QUERY (qryData) > The query is recreated during the processing. > > Image x records which need to have a mailsort code entered into a field. > These records are processed and a new mailsort code derived and the > record updated. This process is quite complicated but at the end of it > we end up with all records having a mailsort code. There are many > records with multiple matching codes. > > I then sort by this mailsort code and process again. The sequence of > which the records are now presented must be maintained. > > A. Every time we have a new mailsort code we insert a bagbreak symbol > into a field and set a counter to 1. > B. For subsequent records we increment the counter until either: > 1. A new mailsortcode is found, or > 2. The counter is equal to the maximum bags allowed per bag. At this > point we go back to A. > > So, having done all that we must now preserve that same order and > start to print the letters. > I am doing this via a REPORT so it is essential that the REPORT > retains the same sequence of records. > > As you very correctly pointed out, for the sequence of records > presentation to be the same as in the table, the SORT BY needs to be > done within the Report's Sorting/Grouping whereas with the FORM is > done straight from the query. > > The Point is this: Why does the RPORT use a different engine that a > FORM when identical query is used. > > Assume: > 100 records all with Mailsortcode = "ABC" and another 100 with code = "BCD" > and bag breaks every 20 records. > The table was indexed on MailsortCode > When they were processed the bag breaks would have been inserted every > 20 records and for each code change. > So, the first 20 records when view in a Form (using the same query > that was used when they were processed) may have been presented on the form/query as: > Record 2076 > Record 17 > Record 155 > Record et > > When the same query is put into the RecordSource of a Report, the > sequence changes, to (for example) Record 155 Record 2076 Record 17 > Record et > > In other words, they are correct within the mailsort code but the > actual sequence of presentation is different. > > Phew! I think I will drop this now. > > Thanks for all your help. > > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav > Brock > Sent: Monday, March 17, 2008 3:54 PM > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] Report Data Order Differs From Form or Query > DataOrder > > Hi Max > > I didn't say that. If you (now) have established a unique sorting you > will, of course, preserve that. The only place to do this for the > report is, however, in the report. That's the point. > > /gustav > >>>> max.wanadoo at gmail.com 17-03-2008 16:43>>> > Hi Gustav, > No, I MUST NOT change the sequence in any way. Once it has been > processed through a loop, each record will have a mailsort bagbreak > inserted based on its real life position in the table. This must not > change in any way from there on. No filters, no indexes etc, it must > be the exact order it was in when it was processed. > Thanks anyway. > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav > Brock > Sent: Monday, March 17, 2008 2:31 PM > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] Report Data Order Differs From Form or Query > DataOrder > > Hi Max > > Oh, now I see. You have to sort on something unique to obtain the > exact same sort order. > If the fields you wish to sort on in the report do not form a compound > unique key, then include the PK in the query and pull it (invisibly) > into the report and sort on that as the last field. > > /gustav > >>>> max.wanadoo at gmail.com 17-03-2008 15:18>>> > Hi Gustav, > I tried various things, but the bottom line is that where there are > repeating codes I am not confident that the report will pull the > records in the exact same order as it did for the Form even though it > "appears" to do so with the changes you suggest. > > So, I have added an extra field which is incremented at the same time > as the codes are processed/entered and both the forms and the report > now sequence on that fields - fool proof! > > Thanks for the feedback - much appreciated. > > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav > Brock > Sent: Monday, March 17, 2008 10:10 AM > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] Report Data Order Differs From Form or Query > DataOrder > > Hi Max > > Did you use the sorting/grouping option of the _report_ and left the > source > unsorted: > > SELECT * > FROM LotterySpring2008; > > /gustav > >>>> max.wanadoo at gmail.com 17-03-2008 10:52>>> > Hi Gustav, > Generally I accept what you are saying. > But, no matter what I do, I cannot get the report to have the same > ORDER as the Form. > > The query is > > SELECT * > FROM LotterySpring2008 > ORDER BY LotterySpring2008.Mailsort; > > The Query is called qryReportDataTemp. The contents is dynamically > created from code where the tablename changes based on the user requirements. > > The SOURCE for the Form is qryReportDataTemp The SOURCE for the Report > is also qryReportDataTemp > > No filters, etc applied. > The Form shows records in correct order. > The Report does not. > > Even if, as you suggest, I use the sorting/grouping option and > explicitly state "Mailsort" Ascending. The ORDER of the records > display in the report is NOT the same ORDER as those display in the > FORM or that which is shown if you open the QUERY directly. > > It appears to me that there is a different ENGINE driving the Report. > > Max > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav > Brock > Sent: Monday, March 17, 2008 8:27 AM > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] Report Data Order Differs From Form or Query > DataOrder > > Hi Max > > Yes, _always_ use the sorting/grouping option of the report (and leave > the source unsorted) if you have a specific sorting/order need - which > is true for most reports. > > /gustav > >>>> max.wanadoo at gmail.com 17-03-2008 09:20>>> > > Is there a different "engine" used by the RPORT as opposed to that > used by > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com _________________________________________________________________ Need to know the score, the latest news, or you need your HotmailR-get your "fix". http://www.msnmobilefix.com/Default.aspx -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Tue Mar 18 11:19:21 2008 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Tue, 18 Mar 2008 16:19:21 -0000 Subject: [AccessD] Array is locked In-Reply-To: <002e01c88912$83e070c0$0301a8c0@HAL9005> References: <34C8A2AB1EF3564CB0D64DB6AFFDD5C211DF6579@XLIVMBX35bkup.aig.com> <002e01c88912$83e070c0$0301a8c0@HAL9005> Message-ID: <014401c88913$d3782730$8119fea9@LTVM> Rocky, Shot in the dark but is this zero-based? And if so does this affect a deletion/insert operation? Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Tuesday, March 18, 2008 4:10 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Array is locked Lambert: I tried the decompile per your suggestion yesterday but no change. I guess it'll be one of those enduring mysteries of Access. :) Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Tuesday, March 18, 2008 8:15 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Array is locked I'm on Access 2002 (XP), but that really should not matter. I'm still leaning towards a corrupted module and suggest that you try the decompile process to see if it fixes it - don't forget to back up first. E.g. "C:\Program Files\Microsoft Office\Office\MSACCESS.EXE" "d:\My Documents\access\mayapp.mdb" /decompile Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Tuesday, March 18, 2008 10:40 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Array is locked Here it blew with the With/End With and when I removed that and added the mudTH(n) explicitly (mudTH(n).x) it worked. Go figure. I'm using A2K3. Don't know if that makes a difference. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Tuesday, March 18, 2008 6:24 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Array is locked I don't think so!! :-) This code runs without complaint... Type fooBar x As Long y As String End Type Sub ArryTest() Dim lngDeletes As Long Dim mudTH() As fooBar ReDim mudTH(1 To 41) With mudTH(1) .x = 1 .y = "one" End With Debug.Print mudTH(1).x, mudTH(1).y lngDeletes = 40 If lngDeletes <> 0 Then Dim lngTemp As Long lngTemp = UBound(mudTH) - lngDeletes ReDim Preserve mudTH(1 To lngTemp) End If End Sub I still favor the corrupt module theory. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Monday, March 17, 2008 6:07 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Array is locked FYI: I figured it out - brute force, binary search - ReDimming various places in the module until I found where it failed. Turned out that if you use With/End with on the array, it's locked - and apparently stays locked for the duration of the module. Don't know if there's a way to unlock it. End With doesn't do it. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Monday, March 17, 2008 9:49 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Array is locked Arthur: I tried this: For lngI = 1 To UBound(mudTH) If mudTH(lngI).fOrdering = True Then If lngI <> UBound(mudTH) Then ' if not the last record in the TH array For lngL = lngI To UBound(mudTH) - 1 mudTH(lngL) = mudTH(lngL + 1) Next lngL End If lngDeletes = lngDeletes + 1 ReDim Preserve mudTH(UBound(mudTH) - 1) End If Next lngI 'If lngDeletes <> 0 Then ReDim Preserve mudTH(UBound(mudTH) - lngDeletes) Where before the first ReDim was commented out. I uncommented it and got the lock message first time .fOrdering was True. The rest of the code moves all the downstream elements of the array up one element to delete the current element. It's a legacy app and really one huge bowl of spaghetti. I'm thinking about going around the problems by substituting a variable lngUboundmudTH for everywhere the code uses UBound(mudTH) abd just reduce that variable in this case by lngDeletes. But finding all occurrences of UBound(mudTH) could be a problem since it might be in Control Sources, Record Sources, stored queries, almost anyplace. Like I say - legacy code. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Monday, March 17, 2008 9:31 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Array is locked Just a wag, Rocky, but what if you ReDimmed the array element by element? It might be that something somewhere in the middle is causing the problem. You could easily find out whether the whole array is locked by just shrinking it one element. If that works then try the loop and decrement the size until she goes boom. Just a wag, as I said. Arthur On 3/17/08, Rocky Smolin at Beach Access Software wrote: > > Lambert: > > Here's the Type: > > Private Type THRecord > TaskID As Long 'T > StartDate As Date 'S > DueDate As Date 'D > QuasiDueDate As Date 'Q > TargetDate As Date 'R > RequiredHours As Double 'H > EarliestCompleteDate As Date 'C > ASAP As Double 'A > fOrdering As Boolean 'F > ErrorHours As Double 'E > TempReg As Double 'Z > DueDateFlag As Boolean 'FD > PastDueFlag As Boolean 'FP > ASAPFlag As Boolean 'FA > TargetDateFlag As Boolean 'FT > End Type > Dim mudTH() As THRecord 'TH > > There are lots of references to elements in the aray but at the point > where the redim occurs, there are no references. Does any reference > lock the array and then the lock persists? Is there a way to > determine what element in an array is causing the lock or a way to > release the array? > > > TIA > > 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. Version: 7.5.519 / Virus Database: 269.21.7/1331 - Release Date: 3/16/2008 10:34 AM -- 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. Version: 7.5.519 / Virus Database: 269.21.7/1331 - Release Date: 3/16/2008 10:34 AM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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. Version: 7.5.519 / Virus Database: 269.21.7/1332 - Release Date: 3/17/2008 10:48 AM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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. Version: 7.5.519 / Virus Database: 269.21.7/1332 - Release Date: 3/17/2008 10:48 AM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Lambert.Heenan at AIG.com Tue Mar 18 12:12:55 2008 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Tue, 18 Mar 2008 12:12:55 -0500 Subject: [AccessD] Array is locked Message-ID: <34C8A2AB1EF3564CB0D64DB6AFFDD5C211DF6585@XLIVMBX35bkup.aig.com> You got that one right!!! :-) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Tuesday, March 18, 2008 12:10 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Array is locked Lambert: I tried the decompile per your suggestion yesterday but no change. I guess it'll be one of those enduring mysteries of Access. :) Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Tuesday, March 18, 2008 8:15 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Array is locked I'm on Access 2002 (XP), but that really should not matter. I'm still leaning towards a corrupted module and suggest that you try the decompile process to see if it fixes it - don't forget to back up first. E.g. "C:\Program Files\Microsoft Office\Office\MSACCESS.EXE" "d:\My Documents\access\mayapp.mdb" /decompile Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Tuesday, March 18, 2008 10:40 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Array is locked Here it blew with the With/End With and when I removed that and added the mudTH(n) explicitly (mudTH(n).x) it worked. Go figure. I'm using A2K3. Don't know if that makes a difference. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Tuesday, March 18, 2008 6:24 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Array is locked I don't think so!! :-) This code runs without complaint... Type fooBar x As Long y As String End Type Sub ArryTest() Dim lngDeletes As Long Dim mudTH() As fooBar ReDim mudTH(1 To 41) With mudTH(1) .x = 1 .y = "one" End With Debug.Print mudTH(1).x, mudTH(1).y lngDeletes = 40 If lngDeletes <> 0 Then Dim lngTemp As Long lngTemp = UBound(mudTH) - lngDeletes ReDim Preserve mudTH(1 To lngTemp) End If End Sub I still favor the corrupt module theory. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Monday, March 17, 2008 6:07 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Array is locked FYI: I figured it out - brute force, binary search - ReDimming various places in the module until I found where it failed. Turned out that if you use With/End with on the array, it's locked - and apparently stays locked for the duration of the module. Don't know if there's a way to unlock it. End With doesn't do it. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Monday, March 17, 2008 9:49 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Array is locked Arthur: I tried this: For lngI = 1 To UBound(mudTH) If mudTH(lngI).fOrdering = True Then If lngI <> UBound(mudTH) Then ' if not the last record in the TH array For lngL = lngI To UBound(mudTH) - 1 mudTH(lngL) = mudTH(lngL + 1) Next lngL End If lngDeletes = lngDeletes + 1 ReDim Preserve mudTH(UBound(mudTH) - 1) End If Next lngI 'If lngDeletes <> 0 Then ReDim Preserve mudTH(UBound(mudTH) - lngDeletes) Where before the first ReDim was commented out. I uncommented it and got the lock message first time .fOrdering was True. The rest of the code moves all the downstream elements of the array up one element to delete the current element. It's a legacy app and really one huge bowl of spaghetti. I'm thinking about going around the problems by substituting a variable lngUboundmudTH for everywhere the code uses UBound(mudTH) abd just reduce that variable in this case by lngDeletes. But finding all occurrences of UBound(mudTH) could be a problem since it might be in Control Sources, Record Sources, stored queries, almost anyplace. Like I say - legacy code. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Monday, March 17, 2008 9:31 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Array is locked Just a wag, Rocky, but what if you ReDimmed the array element by element? It might be that something somewhere in the middle is causing the problem. You could easily find out whether the whole array is locked by just shrinking it one element. If that works then try the loop and decrement the size until she goes boom. Just a wag, as I said. Arthur On 3/17/08, Rocky Smolin at Beach Access Software wrote: > > Lambert: > > Here's the Type: > > Private Type THRecord > TaskID As Long 'T > StartDate As Date 'S > DueDate As Date 'D > QuasiDueDate As Date 'Q > TargetDate As Date 'R > RequiredHours As Double 'H > EarliestCompleteDate As Date 'C > ASAP As Double 'A > fOrdering As Boolean 'F > ErrorHours As Double 'E > TempReg As Double 'Z > DueDateFlag As Boolean 'FD > PastDueFlag As Boolean 'FP > ASAPFlag As Boolean 'FA > TargetDateFlag As Boolean 'FT > End Type > Dim mudTH() As THRecord 'TH > > There are lots of references to elements in the aray but at the point > where the redim occurs, there are no references. Does any reference > lock the array and then the lock persists? Is there a way to > determine what element in an array is causing the lock or a way to > release the array? > > > TIA > > 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. Version: 7.5.519 / Virus Database: 269.21.7/1331 - Release Date: 3/16/2008 10:34 AM -- 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. Version: 7.5.519 / Virus Database: 269.21.7/1331 - Release Date: 3/16/2008 10:34 AM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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. Version: 7.5.519 / Virus Database: 269.21.7/1332 - Release Date: 3/17/2008 10:48 AM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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. Version: 7.5.519 / Virus Database: 269.21.7/1332 - Release Date: 3/17/2008 10:48 AM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Tue Mar 18 12:18:35 2008 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Tue, 18 Mar 2008 10:18:35 -0700 Subject: [AccessD] Array is locked In-Reply-To: <014401c88913$d3782730$8119fea9@LTVM> References: <34C8A2AB1EF3564CB0D64DB6AFFDD5C211DF6579@XLIVMBX35bkup.aig.com><002e01c88912$83e070c0$0301a8c0@HAL9005> <014401c88913$d3782730$8119fea9@LTVM> Message-ID: <000a01c8891c$19795210$0301a8c0@HAL9005> Max: Lbound is 1. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Tuesday, March 18, 2008 9:19 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Array is locked Rocky, Shot in the dark but is this zero-based? And if so does this affect a deletion/insert operation? Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Tuesday, March 18, 2008 4:10 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Array is locked Lambert: I tried the decompile per your suggestion yesterday but no change. I guess it'll be one of those enduring mysteries of Access. :) Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Tuesday, March 18, 2008 8:15 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Array is locked I'm on Access 2002 (XP), but that really should not matter. I'm still leaning towards a corrupted module and suggest that you try the decompile process to see if it fixes it - don't forget to back up first. E.g. "C:\Program Files\Microsoft Office\Office\MSACCESS.EXE" "d:\My Documents\access\mayapp.mdb" /decompile Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Tuesday, March 18, 2008 10:40 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Array is locked Here it blew with the With/End With and when I removed that and added the mudTH(n) explicitly (mudTH(n).x) it worked. Go figure. I'm using A2K3. Don't know if that makes a difference. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Tuesday, March 18, 2008 6:24 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Array is locked I don't think so!! :-) This code runs without complaint... Type fooBar x As Long y As String End Type Sub ArryTest() Dim lngDeletes As Long Dim mudTH() As fooBar ReDim mudTH(1 To 41) With mudTH(1) .x = 1 .y = "one" End With Debug.Print mudTH(1).x, mudTH(1).y lngDeletes = 40 If lngDeletes <> 0 Then Dim lngTemp As Long lngTemp = UBound(mudTH) - lngDeletes ReDim Preserve mudTH(1 To lngTemp) End If End Sub I still favor the corrupt module theory. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Monday, March 17, 2008 6:07 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Array is locked FYI: I figured it out - brute force, binary search - ReDimming various places in the module until I found where it failed. Turned out that if you use With/End with on the array, it's locked - and apparently stays locked for the duration of the module. Don't know if there's a way to unlock it. End With doesn't do it. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Monday, March 17, 2008 9:49 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Array is locked Arthur: I tried this: For lngI = 1 To UBound(mudTH) If mudTH(lngI).fOrdering = True Then If lngI <> UBound(mudTH) Then ' if not the last record in the TH array For lngL = lngI To UBound(mudTH) - 1 mudTH(lngL) = mudTH(lngL + 1) Next lngL End If lngDeletes = lngDeletes + 1 ReDim Preserve mudTH(UBound(mudTH) - 1) End If Next lngI 'If lngDeletes <> 0 Then ReDim Preserve mudTH(UBound(mudTH) - lngDeletes) Where before the first ReDim was commented out. I uncommented it and got the lock message first time .fOrdering was True. The rest of the code moves all the downstream elements of the array up one element to delete the current element. It's a legacy app and really one huge bowl of spaghetti. I'm thinking about going around the problems by substituting a variable lngUboundmudTH for everywhere the code uses UBound(mudTH) abd just reduce that variable in this case by lngDeletes. But finding all occurrences of UBound(mudTH) could be a problem since it might be in Control Sources, Record Sources, stored queries, almost anyplace. Like I say - legacy code. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Monday, March 17, 2008 9:31 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Array is locked Just a wag, Rocky, but what if you ReDimmed the array element by element? It might be that something somewhere in the middle is causing the problem. You could easily find out whether the whole array is locked by just shrinking it one element. If that works then try the loop and decrement the size until she goes boom. Just a wag, as I said. Arthur On 3/17/08, Rocky Smolin at Beach Access Software wrote: > > Lambert: > > Here's the Type: > > Private Type THRecord > TaskID As Long 'T > StartDate As Date 'S > DueDate As Date 'D > QuasiDueDate As Date 'Q > TargetDate As Date 'R > RequiredHours As Double 'H > EarliestCompleteDate As Date 'C > ASAP As Double 'A > fOrdering As Boolean 'F > ErrorHours As Double 'E > TempReg As Double 'Z > DueDateFlag As Boolean 'FD > PastDueFlag As Boolean 'FP > ASAPFlag As Boolean 'FA > TargetDateFlag As Boolean 'FT > End Type > Dim mudTH() As THRecord 'TH > > There are lots of references to elements in the aray but at the point > where the redim occurs, there are no references. Does any reference > lock the array and then the lock persists? Is there a way to > determine what element in an array is causing the lock or a way to > release the array? > > > TIA > > 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. Version: 7.5.519 / Virus Database: 269.21.7/1331 - Release Date: 3/16/2008 10:34 AM -- 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. Version: 7.5.519 / Virus Database: 269.21.7/1331 - Release Date: 3/16/2008 10:34 AM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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. Version: 7.5.519 / Virus Database: 269.21.7/1332 - Release Date: 3/17/2008 10:48 AM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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. Version: 7.5.519 / Virus Database: 269.21.7/1332 - Release Date: 3/17/2008 10:48 AM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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. Version: 7.5.519 / Virus Database: 269.21.7/1332 - Release Date: 3/17/2008 10:48 AM From Gustav at cactus.dk Tue Mar 18 13:16:34 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 18 Mar 2008 19:16:34 +0100 Subject: [AccessD] Report Data Order Differs From Form or Query DataOrder Message-ID: Hi Mark and Max Then my clever function for counting and numbering rows - which I have posted a couple of times and revised recently - should interest you. Note that you may choose _not_ to reset the counter if you wish to run the query more than once: Public Function RowCounter( _ ByVal strKey As String, _ ByVal booReset As Boolean, _ Optional ByVal strGroupKey As String) _ As Long ' Builds consecutive RowIDs in select, append or create query ' with the possibility of automatic reset. ' Optionally a grouping key can be passed to reset the row count ' for every group key. ' ' Usage (typical select query): ' SELECT RowCounter(CStr([ID]),False) AS RowID, * ' FROM tblSomeTable ' WHERE (RowCounter(CStr([ID]),False) <> RowCounter("",True)); ' ' The Where statement resets the counter when the query is run ' and is needed for browsing a select query. ' ' Usage (typical append query, manual reset): ' 1. Reset counter manually: ' Call RowCounter(vbNullString, False) ' 2. Run query: ' INSERT INTO tblTemp ( RowID ) ' SELECT RowCounter(CStr([ID]),False) AS RowID, * ' FROM tblSomeTable; ' ' Usage (typical append query, automatic reset): ' INSERT INTO tblTemp ( RowID ) ' SELECT RowCounter(CStr([ID]),False) AS RowID, * ' FROM tblSomeTable ' WHERE (RowCounter("",True)=0); ' ' 2002-04-13. Cactus Data ApS. CPH ' 2002-09-09. Str() sometimes fails. Replaced with CStr(). ' 2005-10-21. Str(col.Count + 1) reduced to col.Count + 1. ' 2008-02-27. Optional group parameter added. Static col As New Collection Static strGroup As String On Error GoTo Err_RowCounter If booReset = True Or strGroup <> strGroupKey Then Set col = Nothing strGroup = strGroupKey Else col.Add col.Count + 1, strKey End If RowCounter = col(strKey) Exit_RowCounter: Exit Function Err_RowCounter: Select Case Err Case 457 ' Key is present. Resume Next Case Else ' Some other error. Resume Exit_RowCounter End Select End Function /gustav >>> markamatte at hotmail.com 18-03-2008 17:06 >>> Max, This isn't so much about solving your issue...just stating some highlights that may or may not help. Sorting of data can be in many places. Table, query, form and report can all have different sorts for the same data. Is it possible 1 of the 4 is out of sync? You can sort in a query...but display it sorted differently in the form...and have a report on the same exact query...but the report sorted differently. For my postcard printing the print order is essential because I am printing duplex with customer info on both sides of the card...so I have to maintain the order at all cost. I use an autonumber generator to insure the order is preserved. I use an APPEND query to a temp table to preserve the order because a SELECT query display will cause the code to fire again as you scroll. I just have to reset lngTableCounter before I run it each time. Then my form and report are sorted off this number Good Luck, Mark A. Matte ******************* Option Compare Database Option Explicit Global lngTableCounter As Long Function MyAutoCtr(prmAny) 'Trick is to pass a field from the input table(s) so that function called for each record 'otherwise Access thinks that the function will always return the same value and 'only calls it once, and every output record gets the same value MyAutoCtr = lngTableCounter lngTableCounter = lngTableCounter + 1 End Function ******************** From rockysmolin at bchacc.com Tue Mar 18 16:40:36 2008 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Tue, 18 Mar 2008 14:40:36 -0700 Subject: [AccessD] Continuous subform on a continuous subform Message-ID: <002a01c88940$b4c21670$0301a8c0@HAL9005> Dear List: I would like to put a continuous subform on a continuous subform, but I'm getting a message that this can't be done. So I'm trying to find a way around this. The form tracks incoming shipments. The main form is single form showing the shipment info in the header. Each shipment can have more than one purchase order. So the purchase orders are listed in the detail section. Form is continuous. So far so good. However, each purchase order can have several lots. And for each P.O. added to the shipment the client wants to see all the lots attached to that PO. The lots and purchase orders are already in the tables. They're going to create the shipment last (this incoming shipment thing is an add-on to the existing legacy system). So the user creates a new incoming shipment and adds existing purchase orders (incoming shipment POs are in a table with the shipment table PK as the FK) . So I've got the purchase orders displaying in a continuous form. But for each P.O. the client wants to see all the lots attached to that PO. So I think, OK, subform of lots (lots have the PO number as a field) linking the selected PO numbers to the lots. Subform in a subform. But no-go. So, how does one finesse this? MTIA Rocky From cfoust at infostatsystems.com Tue Mar 18 16:51:25 2008 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 18 Mar 2008 14:51:25 -0700 Subject: [AccessD] Continuous subform on a continuous subform In-Reply-To: <002a01c88940$b4c21670$0301a8c0@HAL9005> References: <002a01c88940$b4c21670$0301a8c0@HAL9005> Message-ID: The usual way to handle this is to use multiple subforms at the same level rather than nested. It's often easier to popup a continuous subform from a button rather than embedding it. If you nest at the same level, you pass the key value up to a control on the parent form, and that's the link the other subform uses to filter its records. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Tuesday, March 18, 2008 2:41 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Continuous subform on a continuous subform Dear List: I would like to put a continuous subform on a continuous subform, but I'm getting a message that this can't be done. So I'm trying to find a way around this. The form tracks incoming shipments. The main form is single form showing the shipment info in the header. Each shipment can have more than one purchase order. So the purchase orders are listed in the detail section. Form is continuous. So far so good. However, each purchase order can have several lots. And for each P.O. added to the shipment the client wants to see all the lots attached to that PO. The lots and purchase orders are already in the tables. They're going to create the shipment last (this incoming shipment thing is an add-on to the existing legacy system). So the user creates a new incoming shipment and adds existing purchase orders (incoming shipment POs are in a table with the shipment table PK as the FK) . So I've got the purchase orders displaying in a continuous form. But for each P.O. the client wants to see all the lots attached to that PO. So I think, OK, subform of lots (lots have the PO number as a field) linking the selected PO numbers to the lots. Subform in a subform. But no-go. So, how does one finesse this? MTIA Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at Marlow.com Tue Mar 18 16:52:27 2008 From: DWUTKA at Marlow.com (Drew Wutka) Date: Tue, 18 Mar 2008 16:52:27 -0500 Subject: [AccessD] Continuous subform on a continuous subform In-Reply-To: <002a01c88940$b4c21670$0301a8c0@HAL9005> Message-ID: Create a Treeview with the lots, on the subform. You can let the treeview edit the fields. If you don't need to be able to edit the fields, just use a multicolumn listbox. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Tuesday, March 18, 2008 4:41 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Continuous subform on a continuous subform Dear List: I would like to put a continuous subform on a continuous subform, but I'm getting a message that this can't be done. So I'm trying to find a way around this. The form tracks incoming shipments. The main form is single form showing the shipment info in the header. Each shipment can have more than one purchase order. So the purchase orders are listed in the detail section. Form is continuous. So far so good. However, each purchase order can have several lots. And for each P.O. added to the shipment the client wants to see all the lots attached to that PO. The lots and purchase orders are already in the tables. They're going to create the shipment last (this incoming shipment thing is an add-on to the existing legacy system). So the user creates a new incoming shipment and adds existing purchase orders (incoming shipment POs are in a table with the shipment table PK as the FK) . So I've got the purchase orders displaying in a continuous form. But for each P.O. the client wants to see all the lots attached to that PO. So I think, OK, subform of lots (lots have the PO number as a field) linking the selected PO numbers to the lots. Subform in a subform. But no-go. So, how does one finesse this? MTIA Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From delam at zyterra.com Tue Mar 18 17:10:59 2008 From: delam at zyterra.com (=?utf-8?B?RGViYmll?=) Date: Tue, 18 Mar 2008 22:10:59 +0000 Subject: [AccessD] Continuous subform on a continuous subform In-Reply-To: <002a01c88940$b4c21670$0301a8c0@HAL9005> References: <002a01c88940$b4c21670$0301a8c0@HAL9005> Message-ID: <1857514762-1205878087-cardhu_decombobulator_blackberry.rim.net-990136030-@bxe106.bisx.prod.on.blackberry> I have dealt with similar situations like this: Put a field in the master subform that is a list of the subform fields. This is non updatable at this level and it gets updated using code after the sub-sub form has been updated. When the form is where an update happens, I add a button to go to the sub-sub form as a modal popup. Debbie Sent via BlackBerry by AT&T -----Original Message----- From: "Rocky Smolin at Beach Access Software" Date: Tue, 18 Mar 2008 14:40:36 To:"'Access Developers discussion and problem solving'" Subject: [AccessD] Continuous subform on a continuous subform Dear List: I would like to put a continuous subform on a continuous subform, but I'm getting a message that this can't be done. So I'm trying to find a way around this. The form tracks incoming shipments. The main form is single form showing the shipment info in the header. Each shipment can have more than one purchase order. So the purchase orders are listed in the detail section. Form is continuous. So far so good. However, each purchase order can have several lots. And for each P.O. added to the shipment the client wants to see all the lots attached to that PO. The lots and purchase orders are already in the tables. They're going to create the shipment last (this incoming shipment thing is an add-on to the existing legacy system). So the user creates a new incoming shipment and adds existing purchase orders (incoming shipment POs are in a table with the shipment table PK as the FK) . So I've got the purchase orders displaying in a continuous form. But for each P.O. the client wants to see all the lots attached to that PO. So I think, OK, subform of lots (lots have the PO number as a field) linking the selected PO numbers to the lots. Subform in a subform. But no-go. So, how does one finesse this? MTIA Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Tue Mar 18 17:15:00 2008 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Tue, 18 Mar 2008 15:15:00 -0700 Subject: [AccessD] Continuous subform on a continuous subform In-Reply-To: References: <002a01c88940$b4c21670$0301a8c0@HAL9005> Message-ID: <003501c88945$82372560$0301a8c0@HAL9005> Charlotte: Yeah, that'll do it. I could use the current event of the PO sub form to populate the Lots sub form with the right info. Thanks. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, March 18, 2008 2:51 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Continuous subform on a continuous subform The usual way to handle this is to use multiple subforms at the same level rather than nested. It's often easier to popup a continuous subform from a button rather than embedding it. If you nest at the same level, you pass the key value up to a control on the parent form, and that's the link the other subform uses to filter its records. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Tuesday, March 18, 2008 2:41 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Continuous subform on a continuous subform Dear List: I would like to put a continuous subform on a continuous subform, but I'm getting a message that this can't be done. So I'm trying to find a way around this. The form tracks incoming shipments. The main form is single form showing the shipment info in the header. Each shipment can have more than one purchase order. So the purchase orders are listed in the detail section. Form is continuous. So far so good. However, each purchase order can have several lots. And for each P.O. added to the shipment the client wants to see all the lots attached to that PO. The lots and purchase orders are already in the tables. They're going to create the shipment last (this incoming shipment thing is an add-on to the existing legacy system). So the user creates a new incoming shipment and adds existing purchase orders (incoming shipment POs are in a table with the shipment table PK as the FK) . So I've got the purchase orders displaying in a continuous form. But for each P.O. the client wants to see all the lots attached to that PO. So I think, OK, subform of lots (lots have the PO number as a field) linking the selected PO numbers to the lots. Subform in a subform. But no-go. So, how does one finesse this? MTIA Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG. Version: 7.5.519 / Virus Database: 269.21.7/1332 - Release Date: 3/17/2008 10:48 AM From rockysmolin at bchacc.com Tue Mar 18 17:21:05 2008 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Tue, 18 Mar 2008 15:21:05 -0700 Subject: [AccessD] Continuous subform on a continuous subform In-Reply-To: References: <002a01c88940$b4c21670$0301a8c0@HAL9005> Message-ID: <003601c88946$5b8c8170$0301a8c0@HAL9005> Treeview might work except I need to be able to add Pos to the Shipment (the PO list would come from a combo box) , and then the lots would attach to the added PO. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Tuesday, March 18, 2008 2:52 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Continuous subform on a continuous subform Create a Treeview with the lots, on the subform. You can let the treeview edit the fields. If you don't need to be able to edit the fields, just use a multicolumn listbox. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Tuesday, March 18, 2008 4:41 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Continuous subform on a continuous subform Dear List: I would like to put a continuous subform on a continuous subform, but I'm getting a message that this can't be done. So I'm trying to find a way around this. The form tracks incoming shipments. The main form is single form showing the shipment info in the header. Each shipment can have more than one purchase order. So the purchase orders are listed in the detail section. Form is continuous. So far so good. However, each purchase order can have several lots. And for each P.O. added to the shipment the client wants to see all the lots attached to that PO. The lots and purchase orders are already in the tables. They're going to create the shipment last (this incoming shipment thing is an add-on to the existing legacy system). So the user creates a new incoming shipment and adds existing purchase orders (incoming shipment POs are in a table with the shipment table PK as the FK) . So I've got the purchase orders displaying in a continuous form. But for each P.O. the client wants to see all the lots attached to that PO. So I think, OK, subform of lots (lots have the PO number as a field) linking the selected PO numbers to the lots. Subform in a subform. But no-go. So, how does one finesse this? MTIA Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- 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. Version: 7.5.519 / Virus Database: 269.21.7/1332 - Release Date: 3/17/2008 10:48 AM From fuller.artful at gmail.com Tue Mar 18 17:25:17 2008 From: fuller.artful at gmail.com (Arthur Fuller) Date: Tue, 18 Mar 2008 18:25:17 -0400 Subject: [AccessD] Continuous subform on a continuous subform In-Reply-To: <003501c88945$82372560$0301a8c0@HAL9005> References: <002a01c88940$b4c21670$0301a8c0@HAL9005> <003501c88945$82372560$0301a8c0@HAL9005> Message-ID: <29f585dd0803181525s2ad310e8of3c75657693a5b2d@mail.gmail.com> There's still another way, not used by many, IME, but I like it a lot. It begins with the classic form/subform setup, but for the subform you substitute a form/subform, so that all together you have grandparent/parent/child. Now here's the trick. Set the grandparent form to datasheet view and presto, you get a layout that's like Explorer, with expandable/collapsible nodes. Trap the double-click event at each row-level and use it to open an edit-style form. I think this sort of UI is way cool looking, and the fact that each level is using a form rather than just the table lets you have all the control you could want. Arthur On 3/18/08, Rocky Smolin at Beach Access Software wrote: > > Charlotte: > > Yeah, that'll do it. I could use the current event of the PO sub form to > populate the Lots sub form with the right info. Thanks. > > Rocky > > > From miscellany at mvps.org Tue Mar 18 17:52:38 2008 From: miscellany at mvps.org (Steve Schapel) Date: Wed, 19 Mar 2008 11:52:38 +1300 Subject: [AccessD] Continuous subform on a continuous subform In-Reply-To: <002a01c88940$b4c21670$0301a8c0@HAL9005> References: <002a01c88940$b4c21670$0301a8c0@HAL9005> Message-ID: <47E047B6.8000705@mvps.org> Hi Rocky, It just echoes some of the comments others have made, but you may find this article helpful: http://accesstips.datamanagementsolutions.biz/subsub.htm Regards Steve Rocky Smolin at Beach Access Software wrote: > Dear List: > > I would like to put a continuous subform on a continuous subform, but I'm > getting a message that this can't be done. So I'm trying to find a way > around this. > > The form tracks incoming shipments. The main form is single form showing > the shipment info in the header. > > Each shipment can have more than one purchase order. So the purchase orders > are listed in the detail section. Form is continuous. So far so good. > > However, each purchase order can have several lots. And for each P.O. added > to the shipment the client wants to see all the lots attached to that PO. > The lots and purchase orders are already in the tables. They're going to > create the shipment last (this incoming shipment thing is an add-on to the > existing legacy system). > > So the user creates a new incoming shipment and adds existing purchase > orders (incoming shipment POs are in a table with the shipment table PK as > the FK) . So I've got the purchase orders displaying in a continuous form. > > > But for each P.O. the client wants to see all the lots attached to that PO. > So I think, OK, subform of lots (lots have the PO number as a field) linking > the selected PO numbers to the lots. Subform in a subform. > > But no-go. So, how does one finesse this? > > MTIA > > Rocky From Gustav at cactus.dk Tue Mar 18 17:53:36 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 18 Mar 2008 23:53:36 +0100 Subject: [AccessD] OT: RIP. Sir Arthur C. Clarke Message-ID: Hi all Just had these sad news. The movie "2001: A Space Odyssey" was a milestone. I keep the DVD special edition as the gem of my small collection. /gustav From ssharkins at gmail.com Tue Mar 18 18:44:28 2008 From: ssharkins at gmail.com (Susan Harkins) Date: Tue, 18 Mar 2008 19:44:28 -0400 Subject: [AccessD] Continuous subform on a continuous subform References: <002a01c88940$b4c21670$0301a8c0@HAL9005> Message-ID: <00ae01c88952$ffe9dfe0$4b3a8343@SusanOne> > The usual way to handle this is to use multiple subforms at the same > level rather than nested. It's often easier to popup a continuous > subform from a button rather than embedding it. If you nest at the same > level, you pass the key value up to a control on the parent form, and > that's the link the other subform uses to filter its records. =======As a personal druther, I actually find it easier to work with list controls than subforms -- can't say why, I just do -- and they look cool too. It isn't an automate populating soluting like subforms, but rather, a drill-down solution. Susan H. From accessd at shaw.ca Tue Mar 18 19:00:20 2008 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 18 Mar 2008 17:00:20 -0700 Subject: [AccessD] Array is locked In-Reply-To: <000a01c8891c$19795210$0301a8c0@HAL9005> References: <34C8A2AB1EF3564CB0D64DB6AFFDD5C211DF6579@XLIVMBX35bkup.aig.com> <002e01c88912$83e070c0$0301a8c0@HAL9005> <014401c88913$d3782730$8119fea9@LTVM> <000a01c8891c$19795210$0301a8c0@HAL9005> Message-ID: <2360371C11344E8983E465DB8CC5BC63@creativesystemdesigns.com> Hi Rocky: I am almost sure that you have tested this but is any value is the array set to 'null'? Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Tuesday, March 18, 2008 10:19 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Array is locked Max: Lbound is 1. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Tuesday, March 18, 2008 9:19 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Array is locked Rocky, Shot in the dark but is this zero-based? And if so does this affect a deletion/insert operation? Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Tuesday, March 18, 2008 4:10 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Array is locked Lambert: I tried the decompile per your suggestion yesterday but no change. I guess it'll be one of those enduring mysteries of Access. :) Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Tuesday, March 18, 2008 8:15 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Array is locked I'm on Access 2002 (XP), but that really should not matter. I'm still leaning towards a corrupted module and suggest that you try the decompile process to see if it fixes it - don't forget to back up first. E.g. "C:\Program Files\Microsoft Office\Office\MSACCESS.EXE" "d:\My Documents\access\mayapp.mdb" /decompile Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Tuesday, March 18, 2008 10:40 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Array is locked Here it blew with the With/End With and when I removed that and added the mudTH(n) explicitly (mudTH(n).x) it worked. Go figure. I'm using A2K3. Don't know if that makes a difference. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Tuesday, March 18, 2008 6:24 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Array is locked I don't think so!! :-) This code runs without complaint... Type fooBar x As Long y As String End Type Sub ArryTest() Dim lngDeletes As Long Dim mudTH() As fooBar ReDim mudTH(1 To 41) With mudTH(1) .x = 1 .y = "one" End With Debug.Print mudTH(1).x, mudTH(1).y lngDeletes = 40 If lngDeletes <> 0 Then Dim lngTemp As Long lngTemp = UBound(mudTH) - lngDeletes ReDim Preserve mudTH(1 To lngTemp) End If End Sub I still favor the corrupt module theory. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Monday, March 17, 2008 6:07 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Array is locked FYI: I figured it out - brute force, binary search - ReDimming various places in the module until I found where it failed. Turned out that if you use With/End with on the array, it's locked - and apparently stays locked for the duration of the module. Don't know if there's a way to unlock it. End With doesn't do it. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Monday, March 17, 2008 9:49 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Array is locked Arthur: I tried this: For lngI = 1 To UBound(mudTH) If mudTH(lngI).fOrdering = True Then If lngI <> UBound(mudTH) Then ' if not the last record in the TH array For lngL = lngI To UBound(mudTH) - 1 mudTH(lngL) = mudTH(lngL + 1) Next lngL End If lngDeletes = lngDeletes + 1 ReDim Preserve mudTH(UBound(mudTH) - 1) End If Next lngI 'If lngDeletes <> 0 Then ReDim Preserve mudTH(UBound(mudTH) - lngDeletes) Where before the first ReDim was commented out. I uncommented it and got the lock message first time .fOrdering was True. The rest of the code moves all the downstream elements of the array up one element to delete the current element. It's a legacy app and really one huge bowl of spaghetti. I'm thinking about going around the problems by substituting a variable lngUboundmudTH for everywhere the code uses UBound(mudTH) abd just reduce that variable in this case by lngDeletes. But finding all occurrences of UBound(mudTH) could be a problem since it might be in Control Sources, Record Sources, stored queries, almost anyplace. Like I say - legacy code. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Monday, March 17, 2008 9:31 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Array is locked Just a wag, Rocky, but what if you ReDimmed the array element by element? It might be that something somewhere in the middle is causing the problem. You could easily find out whether the whole array is locked by just shrinking it one element. If that works then try the loop and decrement the size until she goes boom. Just a wag, as I said. Arthur On 3/17/08, Rocky Smolin at Beach Access Software wrote: > > Lambert: > > Here's the Type: > > Private Type THRecord > TaskID As Long 'T > StartDate As Date 'S > DueDate As Date 'D > QuasiDueDate As Date 'Q > TargetDate As Date 'R > RequiredHours As Double 'H > EarliestCompleteDate As Date 'C > ASAP As Double 'A > fOrdering As Boolean 'F > ErrorHours As Double 'E > TempReg As Double 'Z > DueDateFlag As Boolean 'FD > PastDueFlag As Boolean 'FP > ASAPFlag As Boolean 'FA > TargetDateFlag As Boolean 'FT > End Type > Dim mudTH() As THRecord 'TH > > There are lots of references to elements in the aray but at the point > where the redim occurs, there are no references. Does any reference > lock the array and then the lock persists? Is there a way to > determine what element in an array is causing the lock or a way to > release the array? > > > TIA > > 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. Version: 7.5.519 / Virus Database: 269.21.7/1331 - Release Date: 3/16/2008 10:34 AM -- 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. Version: 7.5.519 / Virus Database: 269.21.7/1331 - Release Date: 3/16/2008 10:34 AM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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. Version: 7.5.519 / Virus Database: 269.21.7/1332 - Release Date: 3/17/2008 10:48 AM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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. Version: 7.5.519 / Virus Database: 269.21.7/1332 - Release Date: 3/17/2008 10:48 AM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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. Version: 7.5.519 / Virus Database: 269.21.7/1332 - Release Date: 3/17/2008 10:48 AM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Tue Mar 18 19:06:16 2008 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 18 Mar 2008 17:06:16 -0700 Subject: [AccessD] OT: RIP. Sir Arthur C. Clarke In-Reply-To: References: Message-ID: <78724ABAFBCD4C3FBC44BB3FEF115AF7@creativesystemdesigns.com> Gustav: That is a sad piece of NEWS... Who will be the next SCIFI writers to fill the places left by Isaac Asimov and nor Arthur Clarke. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, March 18, 2008 3:54 PM To: accessd at databaseadvisors.com Subject: [AccessD] OT: RIP. Sir Arthur C. Clarke Hi all Just had these sad news. The movie "2001: A Space Odyssey" was a milestone. I keep the DVD special edition as the gem of my small collection. /gustav -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Darryl.Collins at coles.com.au Tue Mar 18 19:02:53 2008 From: Darryl.Collins at coles.com.au (Darryl Collins) Date: Wed, 19 Mar 2008 11:02:53 +1100 Subject: [AccessD] OT: RIP. Sir Arthur C. Clarke Message-ID: <49DFE57FB126044B8A8B934E7AEA09ED09FD7095@WPEXCH05.colesmyer.ad.cmltd.net.au> Yes, Sir Arthur really was a visionary in every sense. A loss to us all I feel. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Lawrence Sent: Wednesday, 19 March 2008 11:06 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: RIP. Sir Arthur C. Clarke Gustav: That is a sad piece of NEWS... Who will be the next SCIFI writers to fill the places left by Isaac Asimov and nor Arthur Clarke. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, March 18, 2008 3:54 PM To: accessd at databaseadvisors.com Subject: [AccessD] OT: RIP. Sir Arthur C. Clarke Hi all Just had these sad news. The movie "2001: A Space Odyssey" was a milestone. I keep the DVD special edition as the gem of my small collection. /gustav -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This email and any attachments may contain privileged and confidential information and are intended for the named addressee only. If you have received this e-mail in error, please notify the sender and delete this e-mail immediately. Any confidentiality, privilege or copyright is not waived or lost because this e-mail has been sent to you in error. It is your responsibility to check this e-mail and any attachments for viruses. No warranty is made that this material is free from computer virus or any other defect or error. Any loss/damage incurred by using this material is not the sender's responsibility. The sender's entire liability will be limited to resupplying the material. From cfoust at infostatsystems.com Tue Mar 18 19:27:57 2008 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 18 Mar 2008 17:27:57 -0700 Subject: [AccessD] Continuous subform on a continuous subform In-Reply-To: <00ae01c88952$ffe9dfe0$4b3a8343@SusanOne> References: <002a01c88940$b4c21670$0301a8c0@HAL9005> <00ae01c88952$ffe9dfe0$4b3a8343@SusanOne> Message-ID: Unfortunately, I've never found a way to edit list controls ;-> and multiple columns are problematic. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Tuesday, March 18, 2008 4:44 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Continuous subform on a continuous subform > The usual way to handle this is to use multiple subforms at the same > level rather than nested. It's often easier to popup a continuous > subform from a button rather than embedding it. If you nest at the > same level, you pass the key value up to a control on the parent form, > and that's the link the other subform uses to filter its records. =======As a personal druther, I actually find it easier to work with list controls than subforms -- can't say why, I just do -- and they look cool too. It isn't an automate populating soluting like subforms, but rather, a drill-down solution. Susan H. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From darren at activebilling.com.au Tue Mar 18 19:53:18 2008 From: darren at activebilling.com.au (Darren D) Date: Wed, 19 Mar 2008 11:53:18 +1100 Subject: [AccessD] OT:Batch File Syntax Message-ID: <200803190054.m2J0s9GR029867@databaseadvisors.com> Hi All Apologies for the Off Topic post - moderators let me know if this is too much of a stretch :-) I am calling a batch file that does many many things One of the things it does is 'merge' a file we have to a file the OS should have Sometimes the OS does not have this file So. I want to know the syntax in a batch file to test the existence of a file and if it exists to "X" if it doesn't do "Y" Many thanks DD From fuller.artful at gmail.com Tue Mar 18 20:09:02 2008 From: fuller.artful at gmail.com (Arthur Fuller) Date: Tue, 18 Mar 2008 21:09:02 -0400 Subject: [AccessD] OT:Batch File Syntax In-Reply-To: <200803190054.m2J0s9GR029867@databaseadvisors.com> References: <200803190054.m2J0s9GR029867@databaseadvisors.com> Message-ID: <29f585dd0803181809h59c3be7bs45d38a59104efd34@mail.gmail.com> If exist is what you need. Here is an example: *IF EXIST c:\autoexec.bat echo Yupper *That is a simple example. For "echo Yupper", you can substitute something like "copy x:\my.dll %windir%/my.dll". You could also get fancy, create a label in the command file (e.g. a line that begins with a colon immediately followed by a label) and jump to it, like this: *IF EXIST c:\autoexec.bat goto mylabel echo Nosireee exit :mylabel **echo Yupper exit * hth, Arthur (See? There are some advantages to being an old timer.) On 3/18/08, Darren D wrote: > > Hi All > > > > Apologies for the Off Topic post - moderators let me know if this is too > much of > a stretch :-) > > I am calling a batch file that does many many things > > One of the things it does is 'merge' a file we have to a file the OS > should have > > Sometimes the OS does not have this file So. > > I want to know the syntax in a batch file to test the existence of a file > and if > it exists to "X" if it doesn't do "Y" > > > > > > Many thanks > > > > DD > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From fuller.artful at gmail.com Tue Mar 18 20:10:30 2008 From: fuller.artful at gmail.com (Arthur Fuller) Date: Tue, 18 Mar 2008 21:10:30 -0400 Subject: [AccessD] OT: RIP. Sir Arthur C. Clarke In-Reply-To: <49DFE57FB126044B8A8B934E7AEA09ED09FD7095@WPEXCH05.colesmyer.ad.cmltd.net.au> References: <49DFE57FB126044B8A8B934E7AEA09ED09FD7095@WPEXCH05.colesmyer.ad.cmltd.net.au> Message-ID: <29f585dd0803181810na4b4df3t14d26db023f44c19@mail.gmail.com> Among other things, he was first to conceive geosynchronous orbits, without which we wouldn't have satellite communications. A. On 3/18/08, Darryl Collins wrote: > > > > Yes, Sir Arthur really was a visionary in every sense. A loss to us all I > feel. > From darren at activebilling.com.au Tue Mar 18 20:18:22 2008 From: darren at activebilling.com.au (Darren D) Date: Wed, 19 Mar 2008 12:18:22 +1100 Subject: [AccessD] OT:Batch File Syntax In-Reply-To: <29f585dd0803181809h59c3be7bs45d38a59104efd34@mail.gmail.com> Message-ID: <200803190118.m2J1IN2S009528@databaseadvisors.com> Brilliant Old timers Rule Arthur :-) - We all know the Old Bull/Young bull Story Back to the Batch file Syntax Would this be a valid syntax construct? - I should test for both conditions - yes? ~~~~~~~~~~~~~~~~~~~~~~~~~~~ IF NOT EXIST c:\autoexec.bat go to FileNotExist IF EXIST c:\autoexec.bat go to FileExist --OR Should I just continue with the batch file here rather than test for EXIST FileExist: Merge File Syntax here FileNotExist: Copy file syntax here ~~~~~~~~~~~~~~~~~~~~~~~~~~~ Many thanks Have a great day Darren ----------------- T: 1300 301 731 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Wednesday, 19 March 2008 12:09 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT:Batch File Syntax If exist is what you need. Here is an example: *IF EXIST c:\autoexec.bat echo Yupper *That is a simple example. For "echo Yupper", you can substitute something like "copy x:\my.dll %windir%/my.dll". You could also get fancy, create a label in the command file (e.g. a line that begins with a colon immediately followed by a label) and jump to it, like this: *IF EXIST c:\autoexec.bat goto mylabel echo Nosireee exit :mylabel **echo Yupper exit * hth, Arthur (See? There are some advantages to being an old timer.) On 3/18/08, Darren D wrote: > > Hi All > > > > Apologies for the Off Topic post - moderators let me know if this is too > much of > a stretch :-) > > I am calling a batch file that does many many things > > One of the things it does is 'merge' a file we have to a file the OS > should have > > Sometimes the OS does not have this file So. > > I want to know the syntax in a batch file to test the existence of a file > and if > it exists to "X" if it doesn't do "Y" > > > > > > Many thanks > > > > 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 fuller.artful at gmail.com Tue Mar 18 20:31:29 2008 From: fuller.artful at gmail.com (Arthur Fuller) Date: Tue, 18 Mar 2008 21:31:29 -0400 Subject: [AccessD] OT:Batch File Syntax In-Reply-To: <200803190118.m2J1IN2S009528@databaseadvisors.com> References: <29f585dd0803181809h59c3be7bs45d38a59104efd34@mail.gmail.com> <200803190118.m2J1IN2S009528@databaseadvisors.com> Message-ID: <29f585dd0803181831g116ae73bga3a0e394be4577e7@mail.gmail.com> Whichever test you use, provided there is a goto then the other test is not required -- unless of course you have more than one branch, in which case you would need more than one IF since there is no equivalent to Select Case: if exist c:\autoexec.bat goto Yupper echo c:\autoexec.bat does not exist. echo Your mother wears army boots. echo Run as many commands here as you wish. When you're done... goto Done :yupper copy c:\autoexec.bat c:\autoexec.old echo Do something else. echo Do something else. goto Done <---- this, in this example, is redundant, since the next line is the Done label :Done echo That's all for now, folks. echo When you're ready for something really hip, ask me about for %x% in(). echo Batch languages are surprisingly powerful. Arthur On 3/18/08, Darren D wrote: > > Brilliant > > Old timers Rule Arthur :-) - We all know the Old Bull/Young bull Story > Back to the Batch file Syntax > Would this be a valid syntax construct? - I should test for both > conditions - > yes? > ~~~~~~~~~~~~~~~~~~~~~~~~~~~ > IF NOT EXIST c:\autoexec.bat go to FileNotExist > IF EXIST c:\autoexec.bat go to FileExist > --OR Should I just continue with the batch file here rather than test for > EXIST > > FileExist: > Merge File Syntax here > > FileNotExist: > Copy file syntax here > ~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > > Many thanks > > Have a great day > > Darren > ----------------- > T: 1300 301 731 > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller > Sent: Wednesday, 19 March 2008 12:09 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] OT:Batch File Syntax > > If exist > is what you need. Here is an example: > > *IF EXIST c:\autoexec.bat echo Yupper > > *That is a simple example. For "echo Yupper", you can substitute something > like "copy x:\my.dll %windir%/my.dll". You could also get fancy, create a > label in the command file (e.g. a line that begins with a colon > immediately > followed by a label) and jump to it, like this: > > *IF EXIST c:\autoexec.bat goto mylabel > echo Nosireee > exit > > :mylabel > **echo Yupper > exit > * > > hth, > Arthur > (See? There are some advantages to being an old timer.) > > On 3/18/08, Darren D wrote: > > > > Hi All > > > > > > > > Apologies for the Off Topic post - moderators let me know if this is too > > much of > > a stretch :-) > > > > I am calling a batch file that does many many things > > > > One of the things it does is 'merge' a file we have to a file the OS > > should have > > > > Sometimes the OS does not have this file So. > > > > I want to know the syntax in a batch file to test the existence of a > file > > and if > > it exists to "X" if it doesn't do "Y" > > > > > > > > > > > > Many thanks > > > > > > > > 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 > > > -- > > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From ssharkins at gmail.com Tue Mar 18 20:34:42 2008 From: ssharkins at gmail.com (Susan Harkins) Date: Tue, 18 Mar 2008 21:34:42 -0400 Subject: [AccessD] Continuous subform on a continuous subform References: <002a01c88940$b4c21670$0301a8c0@HAL9005><00ae01c88952$ffe9dfe0$4b3a8343@SusanOne> Message-ID: <005801c88961$7b2c6840$4b3a8343@SusanOne> True, no editing -- just viewing related data and of course, a quick double-click can open an editing form, but I don't have a problem with the mutliple columns. Susan H. > Unfortunately, I've never found a way to edit list controls ;-> and > multiple columns are problematic. From fuller.artful at gmail.com Tue Mar 18 20:38:59 2008 From: fuller.artful at gmail.com (Arthur Fuller) Date: Tue, 18 Mar 2008 21:38:59 -0400 Subject: [AccessD] OT:Batch File Syntax In-Reply-To: <29f585dd0803181831g116ae73bga3a0e394be4577e7@mail.gmail.com> References: <29f585dd0803181809h59c3be7bs45d38a59104efd34@mail.gmail.com> <200803190118.m2J1IN2S009528@databaseadvisors.com> <29f585dd0803181831g116ae73bga3a0e394be4577e7@mail.gmail.com> Message-ID: <29f585dd0803181838n7757113eu4656a3efc960f382@mail.gmail.com> Oops. That was supposed to be %%x not %x%. And to hell with the suspense, here's an example: for %%x in (system, command, shellnew, system32) do dir "%windir%\%%x" /W This won't run straight from the command line. Save it as a file called fordemo.cmd and then run it. A. On 3/18/08, Arthur Fuller wrote: > > Whichever test you use, provided there is a goto then the other test is > not required -- unless of course you have more than one branch, in which > case you would need more than one IF since there is no equivalent to Select > Case: > > if exist c:\autoexec.bat goto Yupper > echo c:\autoexec.bat does not exist. > echo Your mother wears army boots. > echo Run as many commands here as you wish. When you're done... > goto Done > > :yupper > copy c:\autoexec.bat c:\autoexec.old > echo Do something else. > echo Do something else. > goto Done <---- this, in this example, is redundant, since the > next line is the Done label > > :Done > echo That's all for now, folks. > echo When you're ready for something really hip, ask me about for %x% > in(). > echo Batch languages are surprisingly powerful. > > Arthur From joe at anamericanjoe.us Tue Mar 18 22:05:10 2008 From: joe at anamericanjoe.us (Joe Hecht) Date: Tue, 18 Mar 2008 20:05:10 -0700 Subject: [AccessD] OT Outlook Code Anybody Message-ID: <000901c8896e$0c0aa050$6401a8c0@ACER2G> We did a couple of big email blasts at work. We got a bunch back as bad address. Does anyone have any code or know an inexpensive program if I point at a specific folder in outlook it can go in and get the original to e mail address. I can match these off the list and work with the good addresses and related data. Thanks Joe Hecht Joe at anamericanjoe.us From joe at anamericanjoe.us Tue Mar 18 22:22:45 2008 From: joe at anamericanjoe.us (Joe Hecht) Date: Tue, 18 Mar 2008 20:22:45 -0700 Subject: [AccessD] Software to repair corrupt database In-Reply-To: <47DFE578.4080001@torchlake.com> References: <47DBCF09.6090407@torchlake.com><000001c8878e$0845b130$6401a8c0@ACER2G> <47DFE578.4080001@torchlake.com> Message-ID: <001901c88970$80522a30$6401a8c0@ACER2G> FMS makes a program that will let you compare 2 databases object by object. I think it is the detective. Joe Hecht Joe at anamericanjoe.us -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Tina Norris Fields Sent: Tuesday, March 18, 2008 8:53 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Software to repair corrupt database Hi Joe, When the problem first happened, I tried creating a fresh blank database and importing all the objects from the problem database. That got me the error message that I couldn't proceed because some other user was using the database, or changing the data, or something similar. There was no one else using the database and there was no lock file. I tried taking a copy of the problem database to a different machine entirely (as in home to my office), and trying again to import all objects into the new database. No joy. Depending on whether I was trying to open the problem database (1 & 2) or trying to import objects from the problem database into a fresh database (3), I got these error messages: 1) " isn't an index in this table. Look in the indexes collection of the TableDef object to determine the valid index names" 2) "Operation invalid without a current index." and 3) "The Microsoft Jet database engine stopped the process because you and another user are attempting to change the same data at the same time." I did send my corrupt file off to corruptfilerepair.com and get it back with all the tables and the relationships grid looking good. I am now going through it to examine all the queries and forms to find flaws and fix them. The first query I tried to run is the one that was running when the system crashed, and it didn't want to work for me. That one I will recreate from scratch, because I believe it is the primary corruption culprit - aside from the hardware and operating systems issues in the client's office. Thanks for the hint, I will check out FMSINC.com. Regards, Tina Joe Hecht wrote: > Hi Tina, > > I do nit know if FMSINC.com has anything but that might be worth a look for > long term. > > What happens if you import everything in the current problem mdb into a new > file? That has helped me once or twice. > > Joe Hecht > Joe at anamericanjoe.us > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Tina Norris > Fields > Sent: Saturday, March 15, 2008 6:29 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Software to repair corrupt database > > Hi Gustav, > > Oh yes, the right thing to do is to deal with the sources of > corruption! And I will use the fine message you sent me to back up my > comments to these lovely people. I have rescued them a few times, even > making minor adjustments to their database. My friend Wayne Madison, > who developed it for them back in 1999 or 2000, tried unsuccessfully to > get the previous management to institute certain procedures. I have > tried, also unsuccessfully, to get them to take serious responsibility > for protecting their database. But, now, I think I have their > attention. For some weeks, now, they have been unable to send out > acknowledgement letters to the people who make donations to them. > First, because they edited the mail-merge document and scrambled the > fields in the letter, and now, because of a system-crash corruption. > > I have bookmarked the Garry Robinson page. Thank you for the link. > > Still, I would like to find a good utility for my own, or my clients', > next emergency. > > Thanks for your response, > Tina > > Gustav Brock wrote: > >> Hi Tina >> >> First, you could double-check with the service of Garry Robinson: >> >> http://www.vb123.com/fixaccess/ >> >> Then I would rather spend yours and the client's limited resources on >> > dealing with the sources for corruption: > >> - split the database >> - arrange for a decent backup to a different or external drive >> - use Win98 for simple lookups and the like >> - perform mail merge on the most powerful machine >> >> Should be quite easy to carry out ... >> >> The only tools I have used for repairing databases is JetComp and a hex >> > editor. > >> /gustav >> >> >> >>>>> tinanfields at torchlake.com 15-03-2008 12:52 >>> >>>>> >>>>> >> Hi All, >> >> A local organization has a nice database of donors, members, and similar >> stuff. It was probably first crafted in A97. I did not build it, but >> know the developer who did (he's a very talented guy who keeps >> disappearing). The organization has the database on a small server with >> three or four computers having access to the database. The database is >> not split into BE and FE, it is simply shared. The computers used for >> accessing the database are of different operating systems, of course, >> ranging from Win98 to WinXP. >> >> The Win98 machine was being used to run a mail merge acknowledgement >> letter in Word that is populated by a parameter select query in the >> database. The Win98 machine choked and froze. The database was >> unusable after that. The message received whenever one tried to open it >> was " isn't an index in this table. Look in the indexes >> collection of the TableDef object to determine the valid index names." >> Clear case of corruption! >> >> I had been working to fix a wrecked mail-merge document, so was present >> when the system froze. I asked about the most recent backup and was >> told that they had no idea how the backup was done, but their network >> guru said it was done automatically. Great! say I, get the backup from >> Jim and we will go back to the mail-merge. Well, they would have to >> call Jim. . . . A week later, I had heard nothing back from them so I >> called. Well, Jim said the whole system is automatically backed up, but >> he can't just get the Access database out for them. Jim and his group >> have been trying to repair the database, but they haven't succeeded. >> >> Meanwhile, I've been out looking for software to repair corrupted Access >> databases, and I've found a couple that let me run a demo for free, but >> will cost about $300 USD to actually get the output file. They are: >> Advanced Access Repair from Data Numen Inc. and AccessFIX from >> Cimaware. They appear to work, although AccessFIX demo indicated that >> part of the structure couldn't be determined without a copy to compare >> to. (That would not be awfully difficult, because whenever I visit this >> organization I make a backup copy of the database, so the dated copy I >> made in October of 2006 is still there.) The $300 USD price-tag is a >> bit stiff. >> >> I found a repair service at corruptfilerepair.com. I sent them the >> zipped corrupt database, and they have sent me an email with a >> screen-shot of the repaired database, showing the tables container and >> one of the tables open. If I am satisfied, they will send me a payment >> link and I will pay them $39 USD and they will send back the repaired >> database. This price seems reasonable, and I am willing to pay that >> much to get my friends back up and running. >> >> For the future, I would like to have in my own possession a decent >> utility for repairing corrupt databases. What can you, my favorite team >> of real gurus, tell me about such software? >> >> Thanks for all help, >> Tina >> >> >> >> -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From darren at activebilling.com.au Tue Mar 18 22:27:09 2008 From: darren at activebilling.com.au (Darren D) Date: Wed, 19 Mar 2008 14:27:09 +1100 Subject: [AccessD] OT:Batch File Syntax In-Reply-To: <29f585dd0803181838n7757113eu4656a3efc960f382@mail.gmail.com> Message-ID: <200803190327.m2J3RAjw027998@databaseadvisors.com> Hi Arthur The %%X stuff looks way cool The If Exist and goto syntax options have worked beautifully The Batch file is now much smarter - I have incorporated this newly learned logic to many areas of the file - a lot more powerful and intuitive now Many many thanks - I am grateful Time for an article on the %%X stuff me thinks Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Wednesday, 19 March 2008 12:39 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT:Batch File Syntax Oops. That was supposed to be %%x not %x%. And to hell with the suspense, here's an example: for %%x in (system, command, shellnew, system32) do dir "%windir%\%%x" /W This won't run straight from the command line. Save it as a file called fordemo.cmd and then run it. A. On 3/18/08, Arthur Fuller wrote: > > Whichever test you use, provided there is a goto then the other test is > not required -- unless of course you have more than one branch, in which > case you would need more than one IF since there is no equivalent to Select > Case: > > if exist c:\autoexec.bat goto Yupper > echo c:\autoexec.bat does not exist. > echo Your mother wears army boots. > echo Run as many commands here as you wish. When you're done... > goto Done > > :yupper > copy c:\autoexec.bat c:\autoexec.old > echo Do something else. > echo Do something else. > goto Done <---- this, in this example, is redundant, since the > next line is the Done label > > :Done > echo That's all for now, folks. > echo When you're ready for something really hip, ask me about for %x% > in(). > echo Batch languages are surprisingly powerful. > > Arthur -- 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 Mar 18 23:03:20 2008 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 19 Mar 2008 14:03:20 +1000 Subject: [AccessD] OT:Batch File Syntax In-Reply-To: <200803190327.m2J3RAjw027998@databaseadvisors.com> References: <29f585dd0803181838n7757113eu4656a3efc960f382@mail.gmail.com>, <200803190327.m2J3RAjw027998@databaseadvisors.com> Message-ID: <47E11D28.18100.3DDE1B6B@stuart.lexacorp.com.pg> %%X tutorial: Open up a CLI and type "HELP FOR" at the prompt. :-) Cheers, Stuart On 19 Mar 2008 at 14:27, Darren D wrote: > Hi Arthur > The %%X stuff looks way cool > The If Exist and goto syntax options have worked beautifully > The Batch file is now much smarter - I have incorporated this newly learned > logic to many areas of the file - a lot more powerful and intuitive now > Many many thanks - I am grateful > > Time for an article on the %%X stuff me thinks > > Darren > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller > Sent: Wednesday, 19 March 2008 12:39 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] OT:Batch File Syntax > > Oops. That was supposed to be %%x not %x%. And to hell with the suspense, > here's an example: > > for %%x in (system, command, shellnew, system32) do dir "%windir%\%%x" /W > > This won't run straight from the command line. Save it as a file called > fordemo.cmd and then run it. > > A. > > On 3/18/08, Arthur Fuller wrote: > > > > Whichever test you use, provided there is a goto then the other test is > > not required -- unless of course you have more than one branch, in which > > case you would need more than one IF since there is no equivalent to Select > > Case: > > > > if exist c:\autoexec.bat goto Yupper > > echo c:\autoexec.bat does not exist. > > echo Your mother wears army boots. > > echo Run as many commands here as you wish. When you're done... > > goto Done > > > > :yupper > > copy c:\autoexec.bat c:\autoexec.old > > echo Do something else. > > echo Do something else. > > goto Done <---- this, in this example, is redundant, since the > > next line is the Done label > > > > :Done > > echo That's all for now, folks. > > echo When you're ready for something really hip, ask me about for %x% > > in(). > > echo Batch languages are surprisingly powerful. > > > > Arthur > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Wed Mar 19 00:24:21 2008 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Tue, 18 Mar 2008 22:24:21 -0700 Subject: [AccessD] Array is locked In-Reply-To: <2360371C11344E8983E465DB8CC5BC63@creativesystemdesigns.com> References: <34C8A2AB1EF3564CB0D64DB6AFFDD5C211DF6579@XLIVMBX35bkup.aig.com><002e01c88912$83e070c0$0301a8c0@HAL9005><014401c88913$d3782730$8119fea9@LTVM><000a01c8891c$19795210$0301a8c0@HAL9005> <2360371C11344E8983E465DB8CC5BC63@creativesystemdesigns.com> Message-ID: <005401c88981$7d22d380$0301a8c0@HAL9005> I haven't looked, but more than likely. Would that lock the array? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Tuesday, March 18, 2008 5:00 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Array is locked Hi Rocky: I am almost sure that you have tested this but is any value is the array set to 'null'? Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Tuesday, March 18, 2008 10:19 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Array is locked Max: Lbound is 1. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Tuesday, March 18, 2008 9:19 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Array is locked Rocky, Shot in the dark but is this zero-based? And if so does this affect a deletion/insert operation? Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Tuesday, March 18, 2008 4:10 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Array is locked Lambert: I tried the decompile per your suggestion yesterday but no change. I guess it'll be one of those enduring mysteries of Access. :) Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Tuesday, March 18, 2008 8:15 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Array is locked I'm on Access 2002 (XP), but that really should not matter. I'm still leaning towards a corrupted module and suggest that you try the decompile process to see if it fixes it - don't forget to back up first. E.g. "C:\Program Files\Microsoft Office\Office\MSACCESS.EXE" "d:\My Documents\access\mayapp.mdb" /decompile Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Tuesday, March 18, 2008 10:40 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Array is locked Here it blew with the With/End With and when I removed that and added the mudTH(n) explicitly (mudTH(n).x) it worked. Go figure. I'm using A2K3. Don't know if that makes a difference. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Tuesday, March 18, 2008 6:24 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Array is locked I don't think so!! :-) This code runs without complaint... Type fooBar x As Long y As String End Type Sub ArryTest() Dim lngDeletes As Long Dim mudTH() As fooBar ReDim mudTH(1 To 41) With mudTH(1) .x = 1 .y = "one" End With Debug.Print mudTH(1).x, mudTH(1).y lngDeletes = 40 If lngDeletes <> 0 Then Dim lngTemp As Long lngTemp = UBound(mudTH) - lngDeletes ReDim Preserve mudTH(1 To lngTemp) End If End Sub I still favor the corrupt module theory. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Monday, March 17, 2008 6:07 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Array is locked FYI: I figured it out - brute force, binary search - ReDimming various places in the module until I found where it failed. Turned out that if you use With/End with on the array, it's locked - and apparently stays locked for the duration of the module. Don't know if there's a way to unlock it. End With doesn't do it. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Monday, March 17, 2008 9:49 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Array is locked Arthur: I tried this: For lngI = 1 To UBound(mudTH) If mudTH(lngI).fOrdering = True Then If lngI <> UBound(mudTH) Then ' if not the last record in the TH array For lngL = lngI To UBound(mudTH) - 1 mudTH(lngL) = mudTH(lngL + 1) Next lngL End If lngDeletes = lngDeletes + 1 ReDim Preserve mudTH(UBound(mudTH) - 1) End If Next lngI 'If lngDeletes <> 0 Then ReDim Preserve mudTH(UBound(mudTH) - lngDeletes) Where before the first ReDim was commented out. I uncommented it and got the lock message first time .fOrdering was True. The rest of the code moves all the downstream elements of the array up one element to delete the current element. It's a legacy app and really one huge bowl of spaghetti. I'm thinking about going around the problems by substituting a variable lngUboundmudTH for everywhere the code uses UBound(mudTH) abd just reduce that variable in this case by lngDeletes. But finding all occurrences of UBound(mudTH) could be a problem since it might be in Control Sources, Record Sources, stored queries, almost anyplace. Like I say - legacy code. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Monday, March 17, 2008 9:31 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Array is locked Just a wag, Rocky, but what if you ReDimmed the array element by element? It might be that something somewhere in the middle is causing the problem. You could easily find out whether the whole array is locked by just shrinking it one element. If that works then try the loop and decrement the size until she goes boom. Just a wag, as I said. Arthur On 3/17/08, Rocky Smolin at Beach Access Software wrote: > > Lambert: > > Here's the Type: > > Private Type THRecord > TaskID As Long 'T > StartDate As Date 'S > DueDate As Date 'D > QuasiDueDate As Date 'Q > TargetDate As Date 'R > RequiredHours As Double 'H > EarliestCompleteDate As Date 'C > ASAP As Double 'A > fOrdering As Boolean 'F > ErrorHours As Double 'E > TempReg As Double 'Z > DueDateFlag As Boolean 'FD > PastDueFlag As Boolean 'FP > ASAPFlag As Boolean 'FA > TargetDateFlag As Boolean 'FT > End Type > Dim mudTH() As THRecord 'TH > > There are lots of references to elements in the aray but at the point > where the redim occurs, there are no references. Does any reference > lock the array and then the lock persists? Is there a way to > determine what element in an array is causing the lock or a way to > release the array? > > > TIA > > 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. Version: 7.5.519 / Virus Database: 269.21.7/1331 - Release Date: 3/16/2008 10:34 AM -- 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. Version: 7.5.519 / Virus Database: 269.21.7/1331 - Release Date: 3/16/2008 10:34 AM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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. Version: 7.5.519 / Virus Database: 269.21.7/1332 - Release Date: 3/17/2008 10:48 AM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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. Version: 7.5.519 / Virus Database: 269.21.7/1332 - Release Date: 3/17/2008 10:48 AM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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. Version: 7.5.519 / Virus Database: 269.21.7/1332 - Release Date: 3/17/2008 10:48 AM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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. Version: 7.5.519 / Virus Database: 269.21.7/1332 - Release Date: 3/17/2008 10:48 AM From fuller.artful at gmail.com Wed Mar 19 05:14:07 2008 From: fuller.artful at gmail.com (Arthur Fuller) Date: Wed, 19 Mar 2008 06:14:07 -0400 Subject: [AccessD] OT:Batch File Syntax In-Reply-To: <200803190327.m2J3RAjw027998@databaseadvisors.com> References: <29f585dd0803181838n7757113eu4656a3efc960f382@mail.gmail.com> <200803190327.m2J3RAjw027998@databaseadvisors.com> Message-ID: <29f585dd0803190314j266403cfndd7f7a198f871fe2@mail.gmail.com> Three more cool things to explore: Parameters to a batch file are known internally as %1, %2... %9, which implies a maximum of 9 parameters. (%0 is the name of the batch file itself). You can extend the number of parameters using the SHIFT command, which pops %1 off the stack and shifts the rest down one, so that after a SHIFT, %3 is now %2 and so on. CALL arg runs arg.com, arg.exe or arg.cmd, whichever is found first. More importantly, it returns to the batch file afterwards, allowing the batch to continue. START runs a program. You can pass arguments to the program. In the case of associated extensions, you can even skip the program's name: MyResume.doc will run Word and load the specified file. Arthur On 3/18/08, Darren D wrote: > > Hi Arthur > The %%X stuff looks way cool > The If Exist and goto syntax options have worked beautifully > The Batch file is now much smarter - I have incorporated this newly > learned > logic to many areas of the file - a lot more powerful and intuitive now > Many many thanks - I am grateful > > Time for an article on the %%X stuff me thinks > > > Darren > > From rosalyn.clarke at barclays.com Wed Mar 19 06:31:00 2008 From: rosalyn.clarke at barclays.com (rosalyn.clarke at barclays.com) Date: Wed, 19 Mar 2008 11:31:00 -0000 Subject: [AccessD] Oracle provider on locked down system In-Reply-To: <29f585dd0803190314j266403cfndd7f7a198f871fe2@mail.gmail.com> Message-ID: <0F978DF74B416B44A351B9143EB0FD33046E3E97@MUKPBCC1XMB0103.collab.barclayscorp.com> Dear List I have a legacy Access database that I need to make work on a Citrix server farm I cannot configure. The database runs a very simple query on an Oracle database and currently uses MSDAORA.1 as the provider. The Citrix farm does not have the Oracle client tools installed, and installing them is probably not an option. It also doesn't have the .net framework. Are there any providers people know of that might be included by default in a normal-ish Windows installation, or is there any way I can bundle something into a package that will run on a system that denies users write access to their C:\ drives? TIA Roz This e-mail and any attachments are confidential and intended solely for the addressee and may also be privileged or exempt from disclosure under applicable law. If you are not the addressee, or have received this e-mail in error, please notify the sender immediately, delete it from your system and do not copy, disclose or otherwise act upon any part of this e-mail or its attachments. Internet communications are not guaranteed to be secure or virus-free. The Barclays Group does not accept responsibility for any loss arising from unauthorised access to, or interference with, any Internet communications by any third party, or from the transmission of any viruses. Replies to this e-mail may be monitored by the Barclays Group for operational or business reasons. Any opinion or other information in this e-mail or its attachments that does not relate to the business of the Barclays Group is personal to the sender and is not given or endorsed by the Barclays Group. Barclays Bank PLC.Registered in England and Wales (registered no. 1026167). Registered Office: 1 Churchill Place, London, E14 5HP, United Kingdom. Barclays Bank PLC is authorised and regulated by the Financial Services Authority. From fuller.artful at gmail.com Wed Mar 19 06:59:36 2008 From: fuller.artful at gmail.com (Arthur Fuller) Date: Wed, 19 Mar 2008 07:59:36 -0400 Subject: [AccessD] OT:Batch File Syntax In-Reply-To: <29f585dd0803190314j266403cfndd7f7a198f871fe2@mail.gmail.com> References: <29f585dd0803181838n7757113eu4656a3efc960f382@mail.gmail.com> <200803190327.m2J3RAjw027998@databaseadvisors.com> <29f585dd0803190314j266403cfndd7f7a198f871fe2@mail.gmail.com> Message-ID: <29f585dd0803190459n5ab7bb84v3f6771cf788b1f6e@mail.gmail.com> Here's another in the ongoing batch-command tutorial. Save this as demochoice.cmd and then run it: @ECHO off cls :start ECHO. ECHO 1. Print Hello ECHO 2. Print Bye ECHO 3. Print Test set choice= set /p choice=Type the number to print text. if not '%choice%'=='' set choice=%choice:~0,1% if '%choice%'=='1' goto hello if '%choice%'=='2' goto bye if '%choice%'=='3' goto test ECHO "%choice%" is not valid please try again ECHO. goto start :hello ECHO HELLO goto end :bye ECHO BYE goto end :test ECHO TEST goto end :end Arthur From DWUTKA at Marlow.com Wed Mar 19 09:51:03 2008 From: DWUTKA at Marlow.com (Drew Wutka) Date: Wed, 19 Mar 2008 09:51:03 -0500 Subject: [AccessD] Continuous subform on a continuous subform In-Reply-To: Message-ID: True, which is why I've really liked Treeviews. http://www.marlow.com/treeviewform.jpg is a form in one of the systems I have running. It's for Process Administration. You can view the data either by process owners or by processes. More importantly, you can edit the data behind the treeview from the treeview itself. In the picture linked above, I right clicked on 'Senior Leadership Network Permissions', and it gives me a menu 'Remove Senior Leadership Network Permissions From Barry Nickerson'. I don't build enough Access interfaces to know how easy or difficult it is to programmatically create/modify menus. In VB it's pretty simple. If I want to let them add a Process to a Process Owner (or vice versa) in this particular form I open a popup form with a combo box with the available list of Processes or Process Owners (depending on which view the list is in). I can also open a menu with that list as the menu items. Also, Treeviews let you edit their data (labels). I have a similar form with Request Types and Sub types. We can rename them just by editing the labels: http://www.marlow.com/treeviewform2.jpg The check boxes determine if the request type or request subtype is used. Single clicking on the label itself allows you to edit the type or subtypes name. What I like best, however, is that treeviews let you add a little visual representation of your data. http://www.marlow.com/treeviewform3.jpg that's our company phone list. I've clicked on my listing (which has a 'person' icon), and as you can see, the items below it are listed with an appropriate icon. Cell phone, regular phone, camera for the badge photo (clicking that expands the form and displays the photo to the right), envelope for sending an email, etc. I think it's a nicer interface. The previous version of this phone list, I had the data displayed in a Flexgrid. It worked, and displayed the data, but it was no where near as visually pleasing as the treeview version. (Nor as capable....with the items being 'nodes', I can list as many items as I want, without worrying about column widths....) Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, March 18, 2008 7:28 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Continuous subform on a continuous subform Unfortunately, I've never found a way to edit list controls ;-> and multiple columns are problematic. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Tuesday, March 18, 2008 4:44 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Continuous subform on a continuous subform > The usual way to handle this is to use multiple subforms at the same > level rather than nested. It's often easier to popup a continuous > subform from a button rather than embedding it. If you nest at the > same level, you pass the key value up to a control on the parent form, > and that's the link the other subform uses to filter its records. =======As a personal druther, I actually find it easier to work with list controls than subforms -- can't say why, I just do -- and they look cool too. It isn't an automate populating soluting like subforms, but rather, a drill-down solution. Susan H. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From rockysmolin at bchacc.com Wed Mar 19 10:17:32 2008 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Wed, 19 Mar 2008 08:17:32 -0700 Subject: [AccessD] Continuous subform on a continuous subform In-Reply-To: References: <002a01c88940$b4c21670$0301a8c0@HAL9005> Message-ID: <002201c889d4$5b2e9270$0301a8c0@HAL9005> Thanks to all who replied to this for your suggestions. I settled on two sub-forms and that's going to work well. In the current event of the first sub-form I'll put a requery of the second sub-form, but I haven't gotten that far yet. Because I ran into a problem on the first sub-form which is bound directly to a table and linked to the main form PK/FK. When I add a record to the first sub-form I get a message: "A problem occurred while (application name) was communicating with the OLE server or ActiveX control." I click OK and everything carries on successfully. The problem seems to be in the record source for the second form. It is a query that has a parameter that returns a value from public function. I've stepped through the code and the value is returned correctly. I would like to requery this second sub-form in the Current event of the first sub-form. But temporarily I put a Requery into a click event of a button on the second sub-form and it works - displaying all of the records associated with the selected record on the first sub-form. When I delete the second sub-form, or just delete the Record Source for the 2nd sub-form, the error message goes away. The second sub-form is not linked Master/Child because it shows the detail of the record selected on the first sub-form and since they're both continuous I could make the 2nd a sub-form of the 1st. I have only three references - VBA, 11.0 Object Library, and DAO 3.6 Object Library. Compiles cleanly. Decompiled - no change. The main form sub-form have no events. I do not get this error on any other mdb. Does anyone know what could be causing this and/or have a fix for this? MTIA Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, March 18, 2008 2:51 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Continuous subform on a continuous subform The usual way to handle this is to use multiple subforms at the same level rather than nested. It's often easier to popup a continuous subform from a button rather than embedding it. If you nest at the same level, you pass the key value up to a control on the parent form, and that's the link the other subform uses to filter its records. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Tuesday, March 18, 2008 2:41 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Continuous subform on a continuous subform Dear List: I would like to put a continuous subform on a continuous subform, but I'm getting a message that this can't be done. So I'm trying to find a way around this. The form tracks incoming shipments. The main form is single form showing the shipment info in the header. Each shipment can have more than one purchase order. So the purchase orders are listed in the detail section. Form is continuous. So far so good. However, each purchase order can have several lots. And for each P.O. added to the shipment the client wants to see all the lots attached to that PO. The lots and purchase orders are already in the tables. They're going to create the shipment last (this incoming shipment thing is an add-on to the existing legacy system). So the user creates a new incoming shipment and adds existing purchase orders (incoming shipment POs are in a table with the shipment table PK as the FK) . So I've got the purchase orders displaying in a continuous form. But for each P.O. the client wants to see all the lots attached to that PO. So I think, OK, subform of lots (lots have the PO number as a field) linking the selected PO numbers to the lots. Subform in a subform. But no-go. So, how does one finesse this? MTIA Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG. Version: 7.5.519 / Virus Database: 269.21.7/1332 - Release Date: 3/17/2008 10:48 AM From jwcolby at colbyconsulting.com Wed Mar 19 10:28:01 2008 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 19 Mar 2008 11:28:01 -0400 Subject: [AccessD] Continuous subform on a continuous subform In-Reply-To: <002201c889d4$5b2e9270$0301a8c0@HAL9005> References: <002a01c88940$b4c21670$0301a8c0@HAL9005> <002201c889d4$5b2e9270$0301a8c0@HAL9005> Message-ID: <000d01c889d5$d1f28370$0201a8c0@M90> Remember that forms load in reverse order from what you would expect, with the grandchild first, then the child, then the parent. 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 Rocky Smolin at Beach Access Software Sent: Wednesday, March 19, 2008 11:18 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Continuous subform on a continuous subform Thanks to all who replied to this for your suggestions. I settled on two sub-forms and that's going to work well. In the current event of the first sub-form I'll put a requery of the second sub-form, but I haven't gotten that far yet. Because I ran into a problem on the first sub-form which is bound directly to a table and linked to the main form PK/FK. When I add a record to the first sub-form I get a message: "A problem occurred while (application name) was communicating with the OLE server or ActiveX control." I click OK and everything carries on successfully. The problem seems to be in the record source for the second form. It is a query that has a parameter that returns a value from public function. I've stepped through the code and the value is returned correctly. I would like to requery this second sub-form in the Current event of the first sub-form. But temporarily I put a Requery into a click event of a button on the second sub-form and it works - displaying all of the records associated with the selected record on the first sub-form. When I delete the second sub-form, or just delete the Record Source for the 2nd sub-form, the error message goes away. The second sub-form is not linked Master/Child because it shows the detail of the record selected on the first sub-form and since they're both continuous I could make the 2nd a sub-form of the 1st. I have only three references - VBA, 11.0 Object Library, and DAO 3.6 Object Library. Compiles cleanly. Decompiled - no change. The main form sub-form have no events. I do not get this error on any other mdb. Does anyone know what could be causing this and/or have a fix for this? MTIA Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, March 18, 2008 2:51 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Continuous subform on a continuous subform The usual way to handle this is to use multiple subforms at the same level rather than nested. It's often easier to popup a continuous subform from a button rather than embedding it. If you nest at the same level, you pass the key value up to a control on the parent form, and that's the link the other subform uses to filter its records. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Tuesday, March 18, 2008 2:41 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Continuous subform on a continuous subform Dear List: I would like to put a continuous subform on a continuous subform, but I'm getting a message that this can't be done. So I'm trying to find a way around this. The form tracks incoming shipments. The main form is single form showing the shipment info in the header. Each shipment can have more than one purchase order. So the purchase orders are listed in the detail section. Form is continuous. So far so good. However, each purchase order can have several lots. And for each P.O. added to the shipment the client wants to see all the lots attached to that PO. The lots and purchase orders are already in the tables. They're going to create the shipment last (this incoming shipment thing is an add-on to the existing legacy system). So the user creates a new incoming shipment and adds existing purchase orders (incoming shipment POs are in a table with the shipment table PK as the FK) . So I've got the purchase orders displaying in a continuous form. But for each P.O. the client wants to see all the lots attached to that PO. So I think, OK, subform of lots (lots have the PO number as a field) linking the selected PO numbers to the lots. Subform in a subform. But no-go. So, how does one finesse this? MTIA Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG. Version: 7.5.519 / Virus Database: 269.21.7/1332 - Release Date: 3/17/2008 10:48 AM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Wed Mar 19 10:39:13 2008 From: dwaters at usinternet.com (Dan Waters) Date: Wed, 19 Mar 2008 10:39:13 -0500 Subject: [AccessD] Continuous subform on a continuous subform In-Reply-To: References: Message-ID: <000301c889d7$6522c2d0$0300a8c0@danwaters> Great treeviews! I have an Open Items List form for each person which can be categorized by Business Process - this would be a good place for a treeview! Thanks! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Wednesday, March 19, 2008 9:51 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Continuous subform on a continuous subform True, which is why I've really liked Treeviews. http://www.marlow.com/treeviewform.jpg is a form in one of the systems I have running. It's for Process Administration. You can view the data either by process owners or by processes. More importantly, you can edit the data behind the treeview from the treeview itself. In the picture linked above, I right clicked on 'Senior Leadership Network Permissions', and it gives me a menu 'Remove Senior Leadership Network Permissions From Barry Nickerson'. I don't build enough Access interfaces to know how easy or difficult it is to programmatically create/modify menus. In VB it's pretty simple. If I want to let them add a Process to a Process Owner (or vice versa) in this particular form I open a popup form with a combo box with the available list of Processes or Process Owners (depending on which view the list is in). I can also open a menu with that list as the menu items. Also, Treeviews let you edit their data (labels). I have a similar form with Request Types and Sub types. We can rename them just by editing the labels: http://www.marlow.com/treeviewform2.jpg The check boxes determine if the request type or request subtype is used. Single clicking on the label itself allows you to edit the type or subtypes name. What I like best, however, is that treeviews let you add a little visual representation of your data. http://www.marlow.com/treeviewform3.jpg that's our company phone list. I've clicked on my listing (which has a 'person' icon), and as you can see, the items below it are listed with an appropriate icon. Cell phone, regular phone, camera for the badge photo (clicking that expands the form and displays the photo to the right), envelope for sending an email, etc. I think it's a nicer interface. The previous version of this phone list, I had the data displayed in a Flexgrid. It worked, and displayed the data, but it was no where near as visually pleasing as the treeview version. (Nor as capable....with the items being 'nodes', I can list as many items as I want, without worrying about column widths....) Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, March 18, 2008 7:28 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Continuous subform on a continuous subform Unfortunately, I've never found a way to edit list controls ;-> and multiple columns are problematic. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Tuesday, March 18, 2008 4:44 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Continuous subform on a continuous subform > The usual way to handle this is to use multiple subforms at the same > level rather than nested. It's often easier to popup a continuous > subform from a button rather than embedding it. If you nest at the > same level, you pass the key value up to a control on the parent form, > and that's the link the other subform uses to filter its records. =======As a personal druther, I actually find it easier to work with list controls than subforms -- can't say why, I just do -- and they look cool too. It isn't an automate populating soluting like subforms, but rather, a drill-down solution. Susan H. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Wed Mar 19 11:28:56 2008 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Wed, 19 Mar 2008 09:28:56 -0700 Subject: [AccessD] Continuous subform on a continuous subform In-Reply-To: <000d01c889d5$d1f28370$0201a8c0@M90> References: <002a01c88940$b4c21670$0301a8c0@HAL9005><002201c889d4$5b2e9270$0301a8c0@HAL9005> <000d01c889d5$d1f28370$0201a8c0@M90> Message-ID: <002701c889de$53fbb910$0301a8c0@HAL9005> The error I get happens after everything's loaded. On the 1st sub-form I go to a new record, there's only one field on the subform in a combo box. I drop down the combo box, make the selection, and at that point I get the OLE error. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, March 19, 2008 8:28 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Continuous subform on a continuous subform Remember that forms load in reverse order from what you would expect, with the grandchild first, then the child, then the parent. 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 Rocky Smolin at Beach Access Software Sent: Wednesday, March 19, 2008 11:18 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Continuous subform on a continuous subform Thanks to all who replied to this for your suggestions. I settled on two sub-forms and that's going to work well. In the current event of the first sub-form I'll put a requery of the second sub-form, but I haven't gotten that far yet. Because I ran into a problem on the first sub-form which is bound directly to a table and linked to the main form PK/FK. When I add a record to the first sub-form I get a message: "A problem occurred while (application name) was communicating with the OLE server or ActiveX control." I click OK and everything carries on successfully. The problem seems to be in the record source for the second form. It is a query that has a parameter that returns a value from public function. I've stepped through the code and the value is returned correctly. I would like to requery this second sub-form in the Current event of the first sub-form. But temporarily I put a Requery into a click event of a button on the second sub-form and it works - displaying all of the records associated with the selected record on the first sub-form. When I delete the second sub-form, or just delete the Record Source for the 2nd sub-form, the error message goes away. The second sub-form is not linked Master/Child because it shows the detail of the record selected on the first sub-form and since they're both continuous I could make the 2nd a sub-form of the 1st. I have only three references - VBA, 11.0 Object Library, and DAO 3.6 Object Library. Compiles cleanly. Decompiled - no change. The main form sub-form have no events. I do not get this error on any other mdb. Does anyone know what could be causing this and/or have a fix for this? MTIA Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, March 18, 2008 2:51 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Continuous subform on a continuous subform The usual way to handle this is to use multiple subforms at the same level rather than nested. It's often easier to popup a continuous subform from a button rather than embedding it. If you nest at the same level, you pass the key value up to a control on the parent form, and that's the link the other subform uses to filter its records. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Tuesday, March 18, 2008 2:41 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Continuous subform on a continuous subform Dear List: I would like to put a continuous subform on a continuous subform, but I'm getting a message that this can't be done. So I'm trying to find a way around this. The form tracks incoming shipments. The main form is single form showing the shipment info in the header. Each shipment can have more than one purchase order. So the purchase orders are listed in the detail section. Form is continuous. So far so good. However, each purchase order can have several lots. And for each P.O. added to the shipment the client wants to see all the lots attached to that PO. The lots and purchase orders are already in the tables. They're going to create the shipment last (this incoming shipment thing is an add-on to the existing legacy system). So the user creates a new incoming shipment and adds existing purchase orders (incoming shipment POs are in a table with the shipment table PK as the FK) . So I've got the purchase orders displaying in a continuous form. But for each P.O. the client wants to see all the lots attached to that PO. So I think, OK, subform of lots (lots have the PO number as a field) linking the selected PO numbers to the lots. Subform in a subform. But no-go. So, how does one finesse this? MTIA Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG. Version: 7.5.519 / Virus Database: 269.21.7/1332 - Release Date: 3/17/2008 10:48 AM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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. Version: 7.5.519 / Virus Database: 269.21.7/1334 - Release Date: 3/18/2008 8:52 PM From DWUTKA at Marlow.com Wed Mar 19 11:32:44 2008 From: DWUTKA at Marlow.com (Drew Wutka) Date: Wed, 19 Mar 2008 11:32:44 -0500 Subject: [AccessD] Continuous subform on a continuous subform In-Reply-To: <000301c889d7$6522c2d0$0300a8c0@danwaters> Message-ID: Yep, sounds like they would work great for that. I am curious if Access has the same menu/popupmenu capability. One of the key processes of the Treeview is HitTest. You give it x,y coordinates (which the treeview mouse events (up, down, move) give you), and it returns the node that is at those coordinates. That's how I customize the menu that appears by right clicking on a node. Very handy. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, March 19, 2008 10:39 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Continuous subform on a continuous subform Great treeviews! I have an Open Items List form for each person which can be categorized by Business Process - this would be a good place for a treeview! Thanks! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Wednesday, March 19, 2008 9:51 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Continuous subform on a continuous subform True, which is why I've really liked Treeviews. http://www.marlow.com/treeviewform.jpg is a form in one of the systems I have running. It's for Process Administration. You can view the data either by process owners or by processes. More importantly, you can edit the data behind the treeview from the treeview itself. In the picture linked above, I right clicked on 'Senior Leadership Network Permissions', and it gives me a menu 'Remove Senior Leadership Network Permissions From Barry Nickerson'. I don't build enough Access interfaces to know how easy or difficult it is to programmatically create/modify menus. In VB it's pretty simple. If I want to let them add a Process to a Process Owner (or vice versa) in this particular form I open a popup form with a combo box with the available list of Processes or Process Owners (depending on which view the list is in). I can also open a menu with that list as the menu items. Also, Treeviews let you edit their data (labels). I have a similar form with Request Types and Sub types. We can rename them just by editing the labels: http://www.marlow.com/treeviewform2.jpg The check boxes determine if the request type or request subtype is used. Single clicking on the label itself allows you to edit the type or subtypes name. What I like best, however, is that treeviews let you add a little visual representation of your data. http://www.marlow.com/treeviewform3.jpg that's our company phone list. I've clicked on my listing (which has a 'person' icon), and as you can see, the items below it are listed with an appropriate icon. Cell phone, regular phone, camera for the badge photo (clicking that expands the form and displays the photo to the right), envelope for sending an email, etc. I think it's a nicer interface. The previous version of this phone list, I had the data displayed in a Flexgrid. It worked, and displayed the data, but it was no where near as visually pleasing as the treeview version. (Nor as capable....with the items being 'nodes', I can list as many items as I want, without worrying about column widths....) Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, March 18, 2008 7:28 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Continuous subform on a continuous subform Unfortunately, I've never found a way to edit list controls ;-> and multiple columns are problematic. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Tuesday, March 18, 2008 4:44 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Continuous subform on a continuous subform > The usual way to handle this is to use multiple subforms at the same > level rather than nested. It's often easier to popup a continuous > subform from a button rather than embedding it. If you nest at the > same level, you pass the key value up to a control on the parent form, > and that's the link the other subform uses to filter its records. =======As a personal druther, I actually find it easier to work with list controls than subforms -- can't say why, I just do -- and they look cool too. It isn't an automate populating soluting like subforms, but rather, a drill-down solution. Susan H. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From accessd at shaw.ca Wed Mar 19 11:56:36 2008 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 19 Mar 2008 09:56:36 -0700 Subject: [AccessD] Oracle provider on locked down system In-Reply-To: <0F978DF74B416B44A351B9143EB0FD33046E3E97@MUKPBCC1XMB0103.collab.barclayscorp.com> References: <29f585dd0803190314j266403cfndd7f7a198f871fe2@mail.gmail.com> <0F978DF74B416B44A351B9143EB0FD33046E3E97@MUKPBCC1XMB0103.collab.barclayscorp.com> Message-ID: <76ACAC7B0EEF4625B108BD605FD5AABE@creativesystemdesigns.com> Hi Roz: There should be all your standard common files like the ADO components. Just check to see what the TNSNAMES file looks like and duplicate the connection string in ADO-OLE. See example below: (This use to be a actual set but it has long since changed so I think it has no current security issues.) 'from the tnsnames.ora ' 'PCAG.gov.bc.ca = ' (DESCRIPTION = ' (ADDRESS_LIST = ' (ADDRESS = ' (COMMUNITY = tcpcom.gov.bc.ca) ' (PROTOCOL = TCP) ' (Host = CRUSHER.gov.bc.ca) ' (Port = 1521) ' ) ' ) ' (CONNECT_DATA = ' (SID = PCAG) ' (GLOBAL_NAME = PCAG.gov.bc.ca) ' ) ' ) ' Microsoft connection string...standard security ' Substituted your msdaora.1 provider Roz. gstrConnection = "Provider=msdaora.1;" & _ "Data Source=PCAG.gov.bc.ca;" & _ "User Id=" & myUsername & ";" & _ "Password=" & myPassword ' Test connection string Set mobjConn = New ADODB.Connection mobjConn.ConnectionString = gstrConnection ... HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of rosalyn.clarke at barclays.com Sent: Wednesday, March 19, 2008 4:31 AM To: accessd at databaseadvisors.com Subject: [AccessD] Oracle provider on locked down system Dear List I have a legacy Access database that I need to make work on a Citrix server farm I cannot configure. The database runs a very simple query on an Oracle database and currently uses MSDAORA.1 as the provider. The Citrix farm does not have the Oracle client tools installed, and installing them is probably not an option. It also doesn't have the .net framework. Are there any providers people know of that might be included by default in a normal-ish Windows installation, or is there any way I can bundle something into a package that will run on a system that denies users write access to their C:\ drives? TIA Roz This e-mail and any attachments are confidential and intended solely for the addressee and may also be privileged or exempt from disclosure under applicable law. If you are not the addressee, or have received this e-mail in error, please notify the sender immediately, delete it from your system and do not copy, disclose or otherwise act upon any part of this e-mail or its attachments. Internet communications are not guaranteed to be secure or virus-free. The Barclays Group does not accept responsibility for any loss arising from unauthorised access to, or interference with, any Internet communications by any third party, or from the transmission of any viruses. Replies to this e-mail may be monitored by the Barclays Group for operational or business reasons. Any opinion or other information in this e-mail or its attachments that does not relate to the business of the Barclays Group is personal to the sender and is not given or endorsed by the Barclays Group. Barclays Bank PLC.Registered in England and Wales (registered no. 1026167). Registered Office: 1 Churchill Place, London, E14 5HP, United Kingdom. Barclays Bank PLC is authorised and regulated by the Financial Services Authority. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at gmail.com Wed Mar 19 11:48:57 2008 From: ssharkins at gmail.com (Susan Harkins) Date: Wed, 19 Mar 2008 12:48:57 -0400 Subject: [AccessD] Customizing 2007's Navigation Pane Message-ID: <031401c889e1$6e6ea110$4b3a8343@SusanOne> I'm wondering how many of you have changed 2007's Navigation pane display and how? Are you resetting it for users or just for yourself? I'm writing an article on the subject aimed at the "user" level and just curious what everyone's doing. Susan H. From rosalyn.clarke at barclays.com Wed Mar 19 12:15:04 2008 From: rosalyn.clarke at barclays.com (rosalyn.clarke at barclays.com) Date: Wed, 19 Mar 2008 17:15:04 -0000 Subject: [AccessD] Oracle provider on locked down system In-Reply-To: <76ACAC7B0EEF4625B108BD605FD5AABE@creativesystemdesigns.com> Message-ID: <0F978DF74B416B44A351B9143EB0FD33046E3F45@MUKPBCC1XMB0103.collab.barclayscorp.com> Sorry if I'm being dense Jim but I don't think I follow! The only thing wrong with my connection string afaik is that the provider is not installed - I inherited the string and it works fine on the legacy machines. There is no TNSNAMES file - there is no Oracle directory. Or would this be on the Oracle server? I have msado15, msado26 and msado27, plus the MDAC. But the code hangs on the connection string with either MSDAORA.1 or MSDAORA as the provider. According to MSDN the Oracle OLE DB provider is included with the .net framework but I don't have that. I've worked with Oracle before but in that case we had the Oracle client installed on the farm. This whole project is driving me nuts :) Roz -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: 19 March 2008 16:57 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Oracle provider on locked down system Hi Roz: There should be all your standard common files like the ADO components. Just check to see what the TNSNAMES file looks like and duplicate the connection string in ADO-OLE. See example below: (This use to be a actual set but it has long since changed so I think it has no current security issues.) 'from the tnsnames.ora ' 'PCAG.gov.bc.ca = ' (DESCRIPTION = ' (ADDRESS_LIST = ' (ADDRESS = ' (COMMUNITY = tcpcom.gov.bc.ca) ' (PROTOCOL = TCP) ' (Host = CRUSHER.gov.bc.ca) ' (Port = 1521) ' ) ' ) ' (CONNECT_DATA = ' (SID = PCAG) ' (GLOBAL_NAME = PCAG.gov.bc.ca) ' ) ' ) ' Microsoft connection string...standard security ' Substituted your msdaora.1 provider Roz. gstrConnection = "Provider=msdaora.1;" & _ "Data Source=PCAG.gov.bc.ca;" & _ "User Id=" & myUsername & ";" & _ "Password=" & myPassword ' Test connection string Set mobjConn = New ADODB.Connection mobjConn.ConnectionString = gstrConnection ... HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of rosalyn.clarke at barclays.com Sent: Wednesday, March 19, 2008 4:31 AM To: accessd at databaseadvisors.com Subject: [AccessD] Oracle provider on locked down system Dear List I have a legacy Access database that I need to make work on a Citrix server farm I cannot configure. The database runs a very simple query on an Oracle database and currently uses MSDAORA.1 as the provider. The Citrix farm does not have the Oracle client tools installed, and installing them is probably not an option. It also doesn't have the .net framework. Are there any providers people know of that might be included by default in a normal-ish Windows installation, or is there any way I can bundle something into a package that will run on a system that denies users write access to their C:\ drives? TIA Roz This e-mail and any attachments are confidential and intended solely for the addressee and may also be privileged or exempt from disclosure under applicable law. If you are not the addressee, or have received this e-mail in error, please notify the sender immediately, delete it from your system and do not copy, disclose or otherwise act upon any part of this e-mail or its attachments. Internet communications are not guaranteed to be secure or virus-free. The Barclays Group does not accept responsibility for any loss arising from unauthorised access to, or interference with, any Internet communications by any third party, or from the transmission of any viruses. Replies to this e-mail may be monitored by the Barclays Group for operational or business reasons. Any opinion or other information in this e-mail or its attachments that does not relate to the business of the Barclays Group is personal to the sender and is not given or endorsed by the Barclays Group. Barclays Bank PLC.Registered in England and Wales (registered no. 1026167). Registered Office: 1 Churchill Place, London, E14 5HP, United Kingdom. Barclays Bank PLC is authorised and regulated by the Financial Services Authority. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This e-mail and any attachments are confidential and intended solely for the addressee and may also be privileged or exempt from disclosure under applicable law. If you are not the addressee, or have received this e-mail in error, please notify the sender immediately, delete it from your system and do not copy, disclose or otherwise act upon any part of this e-mail or its attachments. Internet communications are not guaranteed to be secure or virus-free. The Barclays Group does not accept responsibility for any loss arising from unauthorised access to, or interference with, any Internet communications by any third party, or from the transmission of any viruses. Replies to this e-mail may be monitored by the Barclays Group for operational or business reasons. Any opinion or other information in this e-mail or its attachments that does not relate to the business of the Barclays Group is personal to the sender and is not given or endorsed by the Barclays Group. Barclays Bank PLC.Registered in England and Wales (registered no. 1026167). Registered Office: 1 Churchill Place, London, E14 5HP, United Kingdom. Barclays Bank PLC is authorised and regulated by the Financial Services Authority. From rockysmolin at bchacc.com Wed Mar 19 12:17:49 2008 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Wed, 19 Mar 2008 10:17:49 -0700 Subject: [AccessD] Continuous subform on a continuous subform In-Reply-To: <002701c889de$53fbb910$0301a8c0@HAL9005> References: <002a01c88940$b4c21670$0301a8c0@HAL9005><002201c889d4$5b2e9270$0301a8c0@HAL9005><000d01c889d5$d1f28370$0201a8c0@M90> <002701c889de$53fbb910$0301a8c0@HAL9005> Message-ID: <003001c889e5$289441a0$0301a8c0@HAL9005> OK. I solved it. But I don't know why this is a solution: On subform 1 I changed the record source from tblIncompingPO to Select * FROM tblIncomingPO, where tblIncomingPO is a linked table. So why does the corrected record source work? TIA Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Wednesday, March 19, 2008 9:29 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Continuous subform on a continuous subform The error I get happens after everything's loaded. On the 1st sub-form I go to a new record, there's only one field on the subform in a combo box. I drop down the combo box, make the selection, and at that point I get the OLE error. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, March 19, 2008 8:28 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Continuous subform on a continuous subform Remember that forms load in reverse order from what you would expect, with the grandchild first, then the child, then the parent. 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 Rocky Smolin at Beach Access Software Sent: Wednesday, March 19, 2008 11:18 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Continuous subform on a continuous subform Thanks to all who replied to this for your suggestions. I settled on two sub-forms and that's going to work well. In the current event of the first sub-form I'll put a requery of the second sub-form, but I haven't gotten that far yet. Because I ran into a problem on the first sub-form which is bound directly to a table and linked to the main form PK/FK. When I add a record to the first sub-form I get a message: "A problem occurred while (application name) was communicating with the OLE server or ActiveX control." I click OK and everything carries on successfully. The problem seems to be in the record source for the second form. It is a query that has a parameter that returns a value from public function. I've stepped through the code and the value is returned correctly. I would like to requery this second sub-form in the Current event of the first sub-form. But temporarily I put a Requery into a click event of a button on the second sub-form and it works - displaying all of the records associated with the selected record on the first sub-form. When I delete the second sub-form, or just delete the Record Source for the 2nd sub-form, the error message goes away. The second sub-form is not linked Master/Child because it shows the detail of the record selected on the first sub-form and since they're both continuous I could make the 2nd a sub-form of the 1st. I have only three references - VBA, 11.0 Object Library, and DAO 3.6 Object Library. Compiles cleanly. Decompiled - no change. The main form sub-form have no events. I do not get this error on any other mdb. Does anyone know what could be causing this and/or have a fix for this? MTIA Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, March 18, 2008 2:51 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Continuous subform on a continuous subform The usual way to handle this is to use multiple subforms at the same level rather than nested. It's often easier to popup a continuous subform from a button rather than embedding it. If you nest at the same level, you pass the key value up to a control on the parent form, and that's the link the other subform uses to filter its records. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Tuesday, March 18, 2008 2:41 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Continuous subform on a continuous subform Dear List: I would like to put a continuous subform on a continuous subform, but I'm getting a message that this can't be done. So I'm trying to find a way around this. The form tracks incoming shipments. The main form is single form showing the shipment info in the header. Each shipment can have more than one purchase order. So the purchase orders are listed in the detail section. Form is continuous. So far so good. However, each purchase order can have several lots. And for each P.O. added to the shipment the client wants to see all the lots attached to that PO. The lots and purchase orders are already in the tables. They're going to create the shipment last (this incoming shipment thing is an add-on to the existing legacy system). So the user creates a new incoming shipment and adds existing purchase orders (incoming shipment POs are in a table with the shipment table PK as the FK) . So I've got the purchase orders displaying in a continuous form. But for each P.O. the client wants to see all the lots attached to that PO. So I think, OK, subform of lots (lots have the PO number as a field) linking the selected PO numbers to the lots. Subform in a subform. But no-go. So, how does one finesse this? MTIA Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG. Version: 7.5.519 / Virus Database: 269.21.7/1332 - Release Date: 3/17/2008 10:48 AM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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. Version: 7.5.519 / Virus Database: 269.21.7/1334 - Release Date: 3/18/2008 8:52 PM -- 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. Version: 7.5.519 / Virus Database: 269.21.7/1334 - Release Date: 3/18/2008 8:52 PM From accessd at shaw.ca Wed Mar 19 13:41:46 2008 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 19 Mar 2008 11:41:46 -0700 Subject: [AccessD] Oracle provider on locked down system In-Reply-To: <0F978DF74B416B44A351B9143EB0FD33046E3F45@MUKPBCC1XMB0103.collab.barclayscorp.com> References: <76ACAC7B0EEF4625B108BD605FD5AABE@creativesystemdesigns.com> <0F978DF74B416B44A351B9143EB0FD33046E3F45@MUKPBCC1XMB0103.collab.barclayscorp.com> Message-ID: Hi Roz: Maybe I am being dense just not knowing what functionality you have available to you. First, can you connect in any way to the Oracle database from the Citrix desktop. You can test to see if you can get a connection by: 1. Going to the Citrix desktop. 2. If you can create a text box > new > Text Document I.E. test.txt 3. Rename the new file to test.udl 4. > properties of the test.udl and go to the provider tab. If you see an Oracle option (Microsoft OLE DB Provider for SQL Oracle will be there by default). You should see all. 5. Go to the Connection tab and try and setup a connection syntax that will connect... Test connection. 6. Once you have a good test open the file with notepad and you will see the proven connection string. > Open With > Notepad. The connection string should then be able to be copied and pasted into your Access connection string and it should work just fine. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of rosalyn.clarke at barclays.com Sent: Wednesday, March 19, 2008 10:15 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Oracle provider on locked down system Sorry if I'm being dense Jim but I don't think I follow! The only thing wrong with my connection string afaik is that the provider is not installed - I inherited the string and it works fine on the legacy machines. There is no TNSNAMES file - there is no Oracle directory. Or would this be on the Oracle server? I have msado15, msado26 and msado27, plus the MDAC. But the code hangs on the connection string with either MSDAORA.1 or MSDAORA as the provider. According to MSDN the Oracle OLE DB provider is included with the .net framework but I don't have that. I've worked with Oracle before but in that case we had the Oracle client installed on the farm. This whole project is driving me nuts :) Roz -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: 19 March 2008 16:57 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Oracle provider on locked down system Hi Roz: There should be all your standard common files like the ADO components. Just check to see what the TNSNAMES file looks like and duplicate the connection string in ADO-OLE. See example below: (This use to be a actual set but it has long since changed so I think it has no current security issues.) 'from the tnsnames.ora ' 'PCAG.gov.bc.ca = ' (DESCRIPTION = ' (ADDRESS_LIST = ' (ADDRESS = ' (COMMUNITY = tcpcom.gov.bc.ca) ' (PROTOCOL = TCP) ' (Host = CRUSHER.gov.bc.ca) ' (Port = 1521) ' ) ' ) ' (CONNECT_DATA = ' (SID = PCAG) ' (GLOBAL_NAME = PCAG.gov.bc.ca) ' ) ' ) ' Microsoft connection string...standard security ' Substituted your msdaora.1 provider Roz. gstrConnection = "Provider=msdaora.1;" & _ "Data Source=PCAG.gov.bc.ca;" & _ "User Id=" & myUsername & ";" & _ "Password=" & myPassword ' Test connection string Set mobjConn = New ADODB.Connection mobjConn.ConnectionString = gstrConnection ... HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of rosalyn.clarke at barclays.com Sent: Wednesday, March 19, 2008 4:31 AM To: accessd at databaseadvisors.com Subject: [AccessD] Oracle provider on locked down system Dear List I have a legacy Access database that I need to make work on a Citrix server farm I cannot configure. The database runs a very simple query on an Oracle database and currently uses MSDAORA.1 as the provider. The Citrix farm does not have the Oracle client tools installed, and installing them is probably not an option. It also doesn't have the .net framework. Are there any providers people know of that might be included by default in a normal-ish Windows installation, or is there any way I can bundle something into a package that will run on a system that denies users write access to their C:\ drives? TIA Roz This e-mail and any attachments are confidential and intended solely for the addressee and may also be privileged or exempt from disclosure under applicable law. If you are not the addressee, or have received this e-mail in error, please notify the sender immediately, delete it from your system and do not copy, disclose or otherwise act upon any part of this e-mail or its attachments. Internet communications are not guaranteed to be secure or virus-free. The Barclays Group does not accept responsibility for any loss arising from unauthorised access to, or interference with, any Internet communications by any third party, or from the transmission of any viruses. Replies to this e-mail may be monitored by the Barclays Group for operational or business reasons. Any opinion or other information in this e-mail or its attachments that does not relate to the business of the Barclays Group is personal to the sender and is not given or endorsed by the Barclays Group. Barclays Bank PLC.Registered in England and Wales (registered no. 1026167). Registered Office: 1 Churchill Place, London, E14 5HP, United Kingdom. Barclays Bank PLC is authorised and regulated by the Financial Services Authority. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This e-mail and any attachments are confidential and intended solely for the addressee and may also be privileged or exempt from disclosure under applicable law. If you are not the addressee, or have received this e-mail in error, please notify the sender immediately, delete it from your system and do not copy, disclose or otherwise act upon any part of this e-mail or its attachments. Internet communications are not guaranteed to be secure or virus-free. The Barclays Group does not accept responsibility for any loss arising from unauthorised access to, or interference with, any Internet communications by any third party, or from the transmission of any viruses. Replies to this e-mail may be monitored by the Barclays Group for operational or business reasons. Any opinion or other information in this e-mail or its attachments that does not relate to the business of the Barclays Group is personal to the sender and is not given or endorsed by the Barclays Group. Barclays Bank PLC.Registered in England and Wales (registered no. 1026167). Registered Office: 1 Churchill Place, London, E14 5HP, United Kingdom. Barclays Bank PLC is authorised and regulated by the Financial Services Authority. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From zora_db at yahoo.com Wed Mar 19 13:45:50 2008 From: zora_db at yahoo.com (Roz Clarke) Date: Wed, 19 Mar 2008 11:45:50 -0700 (PDT) Subject: [AccessD] Oracle provider on locked down system Message-ID: <532068.66477.qm@web50102.mail.re2.yahoo.com> Thanks Jim. I'll try that tomorrow (it's home time here!) ----- Original Message ---- From: Jim Lawrence To: Access Developers discussion and problem solving Sent: Wednesday, 19 March, 2008 6:41:46 PM Subject: Re: [AccessD] Oracle provider on locked down system Hi Roz: Maybe I am being dense just not knowing what functionality you have available to you. First, can you connect in any way to the Oracle database from the Citrix desktop. You can test to see if you can get a connection by: 1. Going to the Citrix desktop. 2. If you can create a text box > new > Text Document I.E. test.txt 3. Rename the new file to test.udl 4. > properties of the test.udl and go to the provider tab. If you see an Oracle option (Microsoft OLE DB Provider for SQL Oracle will be there by default). You should see all. 5. Go to the Connection tab and try and setup a connection syntax that will connect... Test connection. 6. Once you have a good test open the file with notepad and you will see the proven connection string. > Open With > Notepad. The connection string should then be able to be copied and pasted into your Access connection string and it should work just fine. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of rosalyn.clarke at barclays.com Sent: Wednesday, March 19, 2008 10:15 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Oracle provider on locked down system Sorry if I'm being dense Jim but I don't think I follow! The only thing wrong with my connection string afaik is that the provider is not installed - I inherited the string and it works fine on the legacy machines. There is no TNSNAMES file - there is no Oracle directory. Or would this be on the Oracle server? I have msado15, msado26 and msado27, plus the MDAC. But the code hangs on the connection string with either MSDAORA.1 or MSDAORA as the provider. According to MSDN the Oracle OLE DB provider is included with the .net framework but I don't have that. I've worked with Oracle before but in that case we had the Oracle client installed on the farm. This whole project is driving me nuts :) Roz -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: 19 March 2008 16:57 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Oracle provider on locked down system Hi Roz: There should be all your standard common files like the ADO components. Just check to see what the TNSNAMES file looks like and duplicate the connection string in ADO-OLE. See example below: (This use to be a actual set but it has long since changed so I think it has no current security issues.) 'from the tnsnames.ora ' 'PCAG.gov.bc.ca = ' (DESCRIPTION = ' (ADDRESS_LIST = ' (ADDRESS = ' (COMMUNITY = tcpcom.gov.bc.ca) ' (PROTOCOL = TCP) ' (Host = CRUSHER.gov.bc.ca) ' (Port = 1521) ' ) ' ) ' (CONNECT_DATA = ' (SID = PCAG) ' (GLOBAL_NAME = PCAG.gov.bc.ca) ' ) ' ) ' Microsoft connection string...standard security ' Substituted your msdaora.1 provider Roz. gstrConnection = "Provider=msdaora.1;" & _ "Data Source=PCAG.gov.bc.ca;" & _ "User Id=" & myUsername & ";" & _ "Password=" & myPassword ' Test connection string Set mobjConn = New ADODB.Connection mobjConn.ConnectionString = gstrConnection ... HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of rosalyn.clarke at barclays.com Sent: Wednesday, March 19, 2008 4:31 AM To: accessd at databaseadvisors.com Subject: [AccessD] Oracle provider on locked down system Dear List I have a legacy Access database that I need to make work on a Citrix server farm I cannot configure. The database runs a very simple query on an Oracle database and currently uses MSDAORA.1 as the provider. The Citrix farm does not have the Oracle client tools installed, and installing them is probably not an option. It also doesn't have the .net framework. Are there any providers people know of that might be included by default in a normal-ish Windows installation, or is there any way I can bundle something into a package that will run on a system that denies users write access to their C:\ drives? TIA Roz This e-mail and any attachments are confidential and intended solely for the addressee and may also be privileged or exempt from disclosure under applicable law. If you are not the addressee, or have received this e-mail in error, please notify the sender immediately, delete it from your system and do not copy, disclose or otherwise act upon any part of this e-mail or its attachments. Internet communications are not guaranteed to be secure or virus-free. The Barclays Group does not accept responsibility for any loss arising from unauthorised access to, or interference with, any Internet communications by any third party, or from the transmission of any viruses. Replies to this e-mail may be monitored by the Barclays Group for operational or business reasons. Any opinion or other information in this e-mail or its attachments that does not relate to the business of the Barclays Group is personal to the sender and is not given or endorsed by the Barclays Group. Barclays Bank PLC.Registered in England and Wales (registered no. 1026167). Registered Office: 1 Churchill Place, London, E14 5HP, United Kingdom. Barclays Bank PLC is authorised and regulated by the Financial Services Authority. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This e-mail and any attachments are confidential and intended solely for the addressee and may also be privileged or exempt from disclosure under applicable law. If you are not the addressee, or have received this e-mail in error, please notify the sender immediately, delete it from your system and do not copy, disclose or otherwise act upon any part of this e-mail or its attachments. Internet communications are not guaranteed to be secure or virus-free. The Barclays Group does not accept responsibility for any loss arising from unauthorised access to, or interference with, any Internet communications by any third party, or from the transmission of any viruses. Replies to this e-mail may be monitored by the Barclays Group for operational or business reasons. Any opinion or other information in this e-mail or its attachments that does not relate to the business of the Barclays Group is personal to the sender and is not given or endorsed by the Barclays Group. Barclays Bank PLC.Registered in England and Wales (registered no. 1026167). Registered Office: 1 Churchill Place, London, E14 5HP, United Kingdom. Barclays Bank PLC is authorised and regulated by the Financial Services Authority. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ___________________________________________________________ Rise to the challenge for Sport Relief with Yahoo! For Good http://uk.promotions.yahoo.com/forgood/ From cfoust at infostatsystems.com Wed Mar 19 14:27:11 2008 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 19 Mar 2008 12:27:11 -0700 Subject: [AccessD] Continuous subform on a continuous subform In-Reply-To: <005801c88961$7b2c6840$4b3a8343@SusanOne> References: <002a01c88940$b4c21670$0301a8c0@HAL9005><00ae01c88952$ffe9dfe0$4b3a8343@SusanOne> <005801c88961$7b2c6840$4b3a8343@SusanOne> Message-ID: Listboxes don't HAVE multiple columns. Try lining up the data when you build the string for each row out of multiple bits. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Tuesday, March 18, 2008 6:35 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Continuous subform on a continuous subform True, no editing -- just viewing related data and of course, a quick double-click can open an editing form, but I don't have a problem with the mutliple columns. Susan H. > Unfortunately, I've never found a way to edit list controls ;-> and > multiple columns are problematic. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at gmail.com Wed Mar 19 14:32:51 2008 From: ssharkins at gmail.com (Susan Harkins) Date: Wed, 19 Mar 2008 15:32:51 -0400 Subject: [AccessD] Continuous subform on a continuous subform References: <002a01c88940$b4c21670$0301a8c0@HAL9005><00ae01c88952$ffe9dfe0$4b3a8343@SusanOne><005801c88961$7b2c6840$4b3a8343@SusanOne> Message-ID: <046201c889f8$0ac29c40$4b3a8343@SusanOne> We must be talking about two different things I guess. Susan H. > Listboxes don't HAVE multiple columns. Try lining up the data when you > build the string for each row out of multiple bits. From cfoust at infostatsystems.com Wed Mar 19 14:33:30 2008 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 19 Mar 2008 12:33:30 -0700 Subject: [AccessD] Continuous subform on a continuous subform In-Reply-To: <003001c889e5$289441a0$0301a8c0@HAL9005> References: <002a01c88940$b4c21670$0301a8c0@HAL9005><002201c889d4$5b2e9270$0301a8c0@HAL9005><000d01c889d5$d1f28370$0201a8c0@M90><002701c889de$53fbb910$0301a8c0@HAL9005> <003001c889e5$289441a0$0301a8c0@HAL9005> Message-ID: Are you filtering the subform in question using master/child links? If so, you don't need to get your parameters from a public function. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Wednesday, March 19, 2008 10:18 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Continuous subform on a continuous subform OK. I solved it. But I don't know why this is a solution: On subform 1 I changed the record source from tblIncompingPO to Select * FROM tblIncomingPO, where tblIncomingPO is a linked table. So why does the corrected record source work? TIA Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Wednesday, March 19, 2008 9:29 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Continuous subform on a continuous subform The error I get happens after everything's loaded. On the 1st sub-form I go to a new record, there's only one field on the subform in a combo box. I drop down the combo box, make the selection, and at that point I get the OLE error. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, March 19, 2008 8:28 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Continuous subform on a continuous subform Remember that forms load in reverse order from what you would expect, with the grandchild first, then the child, then the parent. 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 Rocky Smolin at Beach Access Software Sent: Wednesday, March 19, 2008 11:18 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Continuous subform on a continuous subform Thanks to all who replied to this for your suggestions. I settled on two sub-forms and that's going to work well. In the current event of the first sub-form I'll put a requery of the second sub-form, but I haven't gotten that far yet. Because I ran into a problem on the first sub-form which is bound directly to a table and linked to the main form PK/FK. When I add a record to the first sub-form I get a message: "A problem occurred while (application name) was communicating with the OLE server or ActiveX control." I click OK and everything carries on successfully. The problem seems to be in the record source for the second form. It is a query that has a parameter that returns a value from public function. I've stepped through the code and the value is returned correctly. I would like to requery this second sub-form in the Current event of the first sub-form. But temporarily I put a Requery into a click event of a button on the second sub-form and it works - displaying all of the records associated with the selected record on the first sub-form. When I delete the second sub-form, or just delete the Record Source for the 2nd sub-form, the error message goes away. The second sub-form is not linked Master/Child because it shows the detail of the record selected on the first sub-form and since they're both continuous I could make the 2nd a sub-form of the 1st. I have only three references - VBA, 11.0 Object Library, and DAO 3.6 Object Library. Compiles cleanly. Decompiled - no change. The main form sub-form have no events. I do not get this error on any other mdb. Does anyone know what could be causing this and/or have a fix for this? MTIA Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, March 18, 2008 2:51 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Continuous subform on a continuous subform The usual way to handle this is to use multiple subforms at the same level rather than nested. It's often easier to popup a continuous subform from a button rather than embedding it. If you nest at the same level, you pass the key value up to a control on the parent form, and that's the link the other subform uses to filter its records. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Tuesday, March 18, 2008 2:41 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Continuous subform on a continuous subform Dear List: I would like to put a continuous subform on a continuous subform, but I'm getting a message that this can't be done. So I'm trying to find a way around this. The form tracks incoming shipments. The main form is single form showing the shipment info in the header. Each shipment can have more than one purchase order. So the purchase orders are listed in the detail section. Form is continuous. So far so good. However, each purchase order can have several lots. And for each P.O. added to the shipment the client wants to see all the lots attached to that PO. The lots and purchase orders are already in the tables. They're going to create the shipment last (this incoming shipment thing is an add-on to the existing legacy system). So the user creates a new incoming shipment and adds existing purchase orders (incoming shipment POs are in a table with the shipment table PK as the FK) . So I've got the purchase orders displaying in a continuous form. But for each P.O. the client wants to see all the lots attached to that PO. So I think, OK, subform of lots (lots have the PO number as a field) linking the selected PO numbers to the lots. Subform in a subform. But no-go. So, how does one finesse this? MTIA Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG. Version: 7.5.519 / Virus Database: 269.21.7/1332 - Release Date: 3/17/2008 10:48 AM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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. Version: 7.5.519 / Virus Database: 269.21.7/1334 - Release Date: 3/18/2008 8:52 PM -- 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. Version: 7.5.519 / Virus Database: 269.21.7/1334 - Release Date: 3/18/2008 8:52 PM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at Marlow.com Wed Mar 19 14:35:43 2008 From: DWUTKA at Marlow.com (Drew Wutka) Date: Wed, 19 Mar 2008 14:35:43 -0500 Subject: [AccessD] Continuous subform on a continuous subform In-Reply-To: Message-ID: Huh, listboxes do have multiple columns.... Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, March 19, 2008 2:27 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Continuous subform on a continuous subform Listboxes don't HAVE multiple columns. Try lining up the data when you build the string for each row out of multiple bits. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Tuesday, March 18, 2008 6:35 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Continuous subform on a continuous subform True, no editing -- just viewing related data and of course, a quick double-click can open an editing form, but I don't have a problem with the mutliple columns. Susan H. > Unfortunately, I've never found a way to edit list controls ;-> and > multiple columns are problematic. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From cfoust at infostatsystems.com Wed Mar 19 14:46:52 2008 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 19 Mar 2008 12:46:52 -0700 Subject: [AccessD] Continuous subform on a continuous subform In-Reply-To: References: Message-ID: In what version? I'm not talking about listviews, but listboxes. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Wednesday, March 19, 2008 12:36 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Continuous subform on a continuous subform Huh, listboxes do have multiple columns.... Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, March 19, 2008 2:27 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Continuous subform on a continuous subform Listboxes don't HAVE multiple columns. Try lining up the data when you build the string for each row out of multiple bits. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Tuesday, March 18, 2008 6:35 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Continuous subform on a continuous subform True, no editing -- just viewing related data and of course, a quick double-click can open an editing form, but I don't have a problem with the mutliple columns. Susan H. > Unfortunately, I've never found a way to edit list controls ;-> and > multiple columns are problematic. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at Marlow.com Wed Mar 19 14:55:27 2008 From: DWUTKA at Marlow.com (Drew Wutka) Date: Wed, 19 Mar 2008 14:55:27 -0500 Subject: [AccessD] Continuous subform on a continuous subform In-Reply-To: Message-ID: Ummmm, every version I've seen, though I don't have 2007 on anything anymore. A Listbox is a combobox, that doesn't drop down, so you see multiple items. In fact, listboxes and comboboxes are functionally identical with that one exception. Both have column count properties. If you are trying to create data in multiple columns with a string datasource (Value List), you set the column count, then put in the data, like this: Columncount=3 DataString"1,2,3,2,3,4,3,4,5" Would produce a listbox of: 1 2 3 2 3 4 3 4 5 Of course, I personally recommend callback functions over value lists anytime! Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, March 19, 2008 2:47 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Continuous subform on a continuous subform In what version? I'm not talking about listviews, but listboxes. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Wednesday, March 19, 2008 12:36 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Continuous subform on a continuous subform Huh, listboxes do have multiple columns.... Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, March 19, 2008 2:27 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Continuous subform on a continuous subform Listboxes don't HAVE multiple columns. Try lining up the data when you build the string for each row out of multiple bits. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Tuesday, March 18, 2008 6:35 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Continuous subform on a continuous subform True, no editing -- just viewing related data and of course, a quick double-click can open an editing form, but I don't have a problem with the mutliple columns. Susan H. > Unfortunately, I've never found a way to edit list controls ;-> and > multiple columns are problematic. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From rockysmolin at bchacc.com Wed Mar 19 15:32:19 2008 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Wed, 19 Mar 2008 13:32:19 -0700 Subject: [AccessD] Continuous subform on a continuous subform In-Reply-To: References: <002a01c88940$b4c21670$0301a8c0@HAL9005><002201c889d4$5b2e9270$0301a8c0@HAL9005><000d01c889d5$d1f28370$0201a8c0@M90><002701c889de$53fbb910$0301a8c0@HAL9005><003001c889e5$289441a0$0301a8c0@HAL9005> Message-ID: <000901c88a00$79bfdfb0$0301a8c0@HAL9005> No, I couldn't do that because the sub-form - No. 2 is the one I wanted to make a sub-form in sub-form No1. But since they were both continuous I couldn't. So your idea was the right stuff. But I have to refresh No 2 (which is look only, no editing - makes things easier) in the current event of No.1. And it's working now that I changed No.2's record source. But I don't know why having the record source as a table didn't work and "Select * FROM..." SQL statement does. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, March 19, 2008 12:34 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Continuous subform on a continuous subform Are you filtering the subform in question using master/child links? If so, you don't need to get your parameters from a public function. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Wednesday, March 19, 2008 10:18 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Continuous subform on a continuous subform OK. I solved it. But I don't know why this is a solution: On subform 1 I changed the record source from tblIncompingPO to Select * FROM tblIncomingPO, where tblIncomingPO is a linked table. So why does the corrected record source work? TIA Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Wednesday, March 19, 2008 9:29 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Continuous subform on a continuous subform The error I get happens after everything's loaded. On the 1st sub-form I go to a new record, there's only one field on the subform in a combo box. I drop down the combo box, make the selection, and at that point I get the OLE error. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, March 19, 2008 8:28 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Continuous subform on a continuous subform Remember that forms load in reverse order from what you would expect, with the grandchild first, then the child, then the parent. 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 Rocky Smolin at Beach Access Software Sent: Wednesday, March 19, 2008 11:18 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Continuous subform on a continuous subform Thanks to all who replied to this for your suggestions. I settled on two sub-forms and that's going to work well. In the current event of the first sub-form I'll put a requery of the second sub-form, but I haven't gotten that far yet. Because I ran into a problem on the first sub-form which is bound directly to a table and linked to the main form PK/FK. When I add a record to the first sub-form I get a message: "A problem occurred while (application name) was communicating with the OLE server or ActiveX control." I click OK and everything carries on successfully. The problem seems to be in the record source for the second form. It is a query that has a parameter that returns a value from public function. I've stepped through the code and the value is returned correctly. I would like to requery this second sub-form in the Current event of the first sub-form. But temporarily I put a Requery into a click event of a button on the second sub-form and it works - displaying all of the records associated with the selected record on the first sub-form. When I delete the second sub-form, or just delete the Record Source for the 2nd sub-form, the error message goes away. The second sub-form is not linked Master/Child because it shows the detail of the record selected on the first sub-form and since they're both continuous I could make the 2nd a sub-form of the 1st. I have only three references - VBA, 11.0 Object Library, and DAO 3.6 Object Library. Compiles cleanly. Decompiled - no change. The main form sub-form have no events. I do not get this error on any other mdb. Does anyone know what could be causing this and/or have a fix for this? MTIA Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, March 18, 2008 2:51 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Continuous subform on a continuous subform The usual way to handle this is to use multiple subforms at the same level rather than nested. It's often easier to popup a continuous subform from a button rather than embedding it. If you nest at the same level, you pass the key value up to a control on the parent form, and that's the link the other subform uses to filter its records. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Tuesday, March 18, 2008 2:41 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Continuous subform on a continuous subform Dear List: I would like to put a continuous subform on a continuous subform, but I'm getting a message that this can't be done. So I'm trying to find a way around this. The form tracks incoming shipments. The main form is single form showing the shipment info in the header. Each shipment can have more than one purchase order. So the purchase orders are listed in the detail section. Form is continuous. So far so good. However, each purchase order can have several lots. And for each P.O. added to the shipment the client wants to see all the lots attached to that PO. The lots and purchase orders are already in the tables. They're going to create the shipment last (this incoming shipment thing is an add-on to the existing legacy system). So the user creates a new incoming shipment and adds existing purchase orders (incoming shipment POs are in a table with the shipment table PK as the FK) . So I've got the purchase orders displaying in a continuous form. But for each P.O. the client wants to see all the lots attached to that PO. So I think, OK, subform of lots (lots have the PO number as a field) linking the selected PO numbers to the lots. Subform in a subform. But no-go. So, how does one finesse this? MTIA Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG. Version: 7.5.519 / Virus Database: 269.21.7/1332 - Release Date: 3/17/2008 10:48 AM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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. Version: 7.5.519 / Virus Database: 269.21.7/1334 - Release Date: 3/18/2008 8:52 PM -- 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. Version: 7.5.519 / Virus Database: 269.21.7/1334 - Release Date: 3/18/2008 8:52 PM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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. Version: 7.5.519 / Virus Database: 269.21.7/1334 - Release Date: 3/18/2008 8:52 PM From miscellany at mvps.org Thu Mar 20 00:54:14 2008 From: miscellany at mvps.org (Steve Schapel) Date: Thu, 20 Mar 2008 18:54:14 +1300 Subject: [AccessD] Continuous subform on a continuous subform In-Reply-To: <000901c88a00$79bfdfb0$0301a8c0@HAL9005> References: <002a01c88940$b4c21670$0301a8c0@HAL9005> <002201c889d4$5b2e9270$0301a8c0@HAL9005> <000d01c889d5$d1f28370$0201a8c0@M90> <002701c889de$53fbb910$0301a8c0@HAL9005> <003001c889e5$289441a0$0301a8c0@HAL9005> <000901c88a00$79bfdfb0$0301a8c0@HAL9005> Message-ID: <47E1FC06.4050106@mvps.org> Rocky, I normally put an unbound (hidden) textbox on the main form, with its Control Source set to the equivalent of: =[Subform No1]![Primary Key field of subform 1] And then, set the Link Master Fields property of Subform No2 to this textbox. That way, as you move from one record to another on Subform No1, the records shown on Subform No2 will automatically be synched, without the need for any code at all. Regards Steve Rocky Smolin at Beach Access Software wrote: > No, I couldn't do that because the sub-form - No. 2 is the one I wanted to > make a sub-form in sub-form No1. But since they were both continuous I > couldn't. So your idea was the right stuff. But I have to refresh No 2 > (which is look only, no editing - makes things easier) in the current event > of No.1. And it's working now that I changed No.2's record source. From max.wanadoo at gmail.com Thu Mar 20 02:37:18 2008 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Thu, 20 Mar 2008 07:37:18 -0000 Subject: [AccessD] Continuous subform on a continuous subform In-Reply-To: References: Message-ID: <005b01c88a5d$3c31fe00$8119fea9@LTVM> Standard Listboxes can show multi columns if you set the column count property. Eg: "A";"B";"C";"D";"E";"F" With column count set to 3 will show A B C D E F Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, March 19, 2008 7:47 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Continuous subform on a continuous subform In what version? I'm not talking about listviews, but listboxes. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Wednesday, March 19, 2008 12:36 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Continuous subform on a continuous subform Huh, listboxes do have multiple columns.... Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, March 19, 2008 2:27 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Continuous subform on a continuous subform Listboxes don't HAVE multiple columns. Try lining up the data when you build the string for each row out of multiple bits. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Tuesday, March 18, 2008 6:35 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Continuous subform on a continuous subform True, no editing -- just viewing related data and of course, a quick double-click can open an editing form, but I don't have a problem with the mutliple columns. Susan H. > Unfortunately, I've never found a way to edit list controls ;-> and > multiple columns are problematic. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rosalyn.clarke at barclays.com Thu Mar 20 03:56:53 2008 From: rosalyn.clarke at barclays.com (rosalyn.clarke at barclays.com) Date: Thu, 20 Mar 2008 08:56:53 -0000 Subject: [AccessD] Oracle provider on locked down system In-Reply-To: Message-ID: <0F978DF74B416B44A351B9143EB0FD33046E3F54@MUKPBCC1XMB0103.collab.barclayscorp.com> Hi Jim The MS OLE DB Provider for Oracle appears in the list, huzzah. BUT when I try to connect I get the same old error message: "Test connection failed because of an error in initializing provider. Oracle client and networking components were not found. These components are supplied by Oracle Corporation and are part of the Oracle Version 7.3.3 or later client software installation. Provider is unable to function until these components are installed." So there's another layer? It's been such a long time since I've needed to think about this stuff... Roz -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: 19 March 2008 18:42 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Oracle provider on locked down system Hi Roz: Maybe I am being dense just not knowing what functionality you have available to you. First, can you connect in any way to the Oracle database from the Citrix desktop. You can test to see if you can get a connection by: 1. Going to the Citrix desktop. 2. If you can create a text box > new > Text Document I.E. test.txt 3. Rename the new file to test.udl 4. > properties of the test.udl and go to the provider tab. If you see an Oracle option (Microsoft OLE DB Provider for SQL Oracle will be there by default). You should see all. 5. Go to the Connection tab and try and setup a connection syntax that will connect... Test connection. 6. Once you have a good test open the file with notepad and you will see the proven connection string. > Open With > Notepad. The connection string should then be able to be copied and pasted into your Access connection string and it should work just fine. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of rosalyn.clarke at barclays.com Sent: Wednesday, March 19, 2008 10:15 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Oracle provider on locked down system Sorry if I'm being dense Jim but I don't think I follow! The only thing wrong with my connection string afaik is that the provider is not installed - I inherited the string and it works fine on the legacy machines. There is no TNSNAMES file - there is no Oracle directory. Or would this be on the Oracle server? I have msado15, msado26 and msado27, plus the MDAC. But the code hangs on the connection string with either MSDAORA.1 or MSDAORA as the provider. According to MSDN the Oracle OLE DB provider is included with the .net framework but I don't have that. I've worked with Oracle before but in that case we had the Oracle client installed on the farm. This whole project is driving me nuts :) Roz -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: 19 March 2008 16:57 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Oracle provider on locked down system Hi Roz: There should be all your standard common files like the ADO components. Just check to see what the TNSNAMES file looks like and duplicate the connection string in ADO-OLE. See example below: (This use to be a actual set but it has long since changed so I think it has no current security issues.) 'from the tnsnames.ora ' 'PCAG.gov.bc.ca = ' (DESCRIPTION = ' (ADDRESS_LIST = ' (ADDRESS = ' (COMMUNITY = tcpcom.gov.bc.ca) ' (PROTOCOL = TCP) ' (Host = CRUSHER.gov.bc.ca) ' (Port = 1521) ' ) ' ) ' (CONNECT_DATA = ' (SID = PCAG) ' (GLOBAL_NAME = PCAG.gov.bc.ca) ' ) ' ) ' Microsoft connection string...standard security ' Substituted your msdaora.1 provider Roz. gstrConnection = "Provider=msdaora.1;" & _ "Data Source=PCAG.gov.bc.ca;" & _ "User Id=" & myUsername & ";" & _ "Password=" & myPassword ' Test connection string Set mobjConn = New ADODB.Connection mobjConn.ConnectionString = gstrConnection ... HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of rosalyn.clarke at barclays.com Sent: Wednesday, March 19, 2008 4:31 AM To: accessd at databaseadvisors.com Subject: [AccessD] Oracle provider on locked down system Dear List I have a legacy Access database that I need to make work on a Citrix server farm I cannot configure. The database runs a very simple query on an Oracle database and currently uses MSDAORA.1 as the provider. The Citrix farm does not have the Oracle client tools installed, and installing them is probably not an option. It also doesn't have the .net framework. Are there any providers people know of that might be included by default in a normal-ish Windows installation, or is there any way I can bundle something into a package that will run on a system that denies users write access to their C:\ drives? TIA Roz This e-mail and any attachments are confidential and intended solely for the addressee and may also be privileged or exempt from disclosure under applicable law. If you are not the addressee, or have received this e-mail in error, please notify the sender immediately, delete it from your system and do not copy, disclose or otherwise act upon any part of this e-mail or its attachments. Internet communications are not guaranteed to be secure or virus-free. The Barclays Group does not accept responsibility for any loss arising from unauthorised access to, or interference with, any Internet communications by any third party, or from the transmission of any viruses. Replies to this e-mail may be monitored by the Barclays Group for operational or business reasons. Any opinion or other information in this e-mail or its attachments that does not relate to the business of the Barclays Group is personal to the sender and is not given or endorsed by the Barclays Group. Barclays Bank PLC.Registered in England and Wales (registered no. 1026167). Registered Office: 1 Churchill Place, London, E14 5HP, United Kingdom. Barclays Bank PLC is authorised and regulated by the Financial Services Authority. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This e-mail and any attachments are confidential and intended solely for the addressee and may also be privileged or exempt from disclosure under applicable law. If you are not the addressee, or have received this e-mail in error, please notify the sender immediately, delete it from your system and do not copy, disclose or otherwise act upon any part of this e-mail or its attachments. Internet communications are not guaranteed to be secure or virus-free. The Barclays Group does not accept responsibility for any loss arising from unauthorised access to, or interference with, any Internet communications by any third party, or from the transmission of any viruses. Replies to this e-mail may be monitored by the Barclays Group for operational or business reasons. Any opinion or other information in this e-mail or its attachments that does not relate to the business of the Barclays Group is personal to the sender and is not given or endorsed by the Barclays Group. Barclays Bank PLC.Registered in England and Wales (registered no. 1026167). Registered Office: 1 Churchill Place, London, E14 5HP, United Kingdom. Barclays Bank PLC is authorised and regulated by the Financial Services Authority. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This e-mail and any attachments are confidential and intended solely for the addressee and may also be privileged or exempt from disclosure under applicable law. If you are not the addressee, or have received this e-mail in error, please notify the sender immediately, delete it from your system and do not copy, disclose or otherwise act upon any part of this e-mail or its attachments. Internet communications are not guaranteed to be secure or virus-free. The Barclays Group does not accept responsibility for any loss arising from unauthorised access to, or interference with, any Internet communications by any third party, or from the transmission of any viruses. Replies to this e-mail may be monitored by the Barclays Group for operational or business reasons. Any opinion or other information in this e-mail or its attachments that does not relate to the business of the Barclays Group is personal to the sender and is not given or endorsed by the Barclays Group. Barclays Bank PLC.Registered in England and Wales (registered no. 1026167). Registered Office: 1 Churchill Place, London, E14 5HP, United Kingdom. Barclays Bank PLC is authorised and regulated by the Financial Services Authority. From rosalyn.clarke at barclays.com Thu Mar 20 04:05:11 2008 From: rosalyn.clarke at barclays.com (rosalyn.clarke at barclays.com) Date: Thu, 20 Mar 2008 09:05:11 -0000 Subject: [AccessD] Oracle provider on locked down system In-Reply-To: <0F978DF74B416B44A351B9143EB0FD33046E3F54@MUKPBCC1XMB0103.collab.barclayscorp.com> Message-ID: <0F978DF74B416B44A351B9143EB0FD33046E3F59@MUKPBCC1XMB0103.collab.barclayscorp.com> Ah OK - the provider connects to the client, not the server. So I have to beg the build team to install the Oracle client, or sidestep this whole thing. Luckily the data is not volatile and a nightly export to a .txt file or something should be acceptable. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Clarke, Rosalyn : UK CIO GRCB Sent: 20 March 2008 08:57 To: accessd at databaseadvisors.com Subject: Re: [AccessD] Oracle provider on locked down system Hi Jim The MS OLE DB Provider for Oracle appears in the list, huzzah. BUT when I try to connect I get the same old error message: "Test connection failed because of an error in initializing provider. Oracle client and networking components were not found. These components are supplied by Oracle Corporation and are part of the Oracle Version 7.3.3 or later client software installation. Provider is unable to function until these components are installed." So there's another layer? It's been such a long time since I've needed to think about this stuff... Roz -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: 19 March 2008 18:42 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Oracle provider on locked down system Hi Roz: Maybe I am being dense just not knowing what functionality you have available to you. First, can you connect in any way to the Oracle database from the Citrix desktop. You can test to see if you can get a connection by: 1. Going to the Citrix desktop. 2. If you can create a text box > new > Text Document I.E. test.txt 3. Rename the new file to test.udl 4. > properties of the test.udl and go to the provider tab. If you see an Oracle option (Microsoft OLE DB Provider for SQL Oracle will be there by default). You should see all. 5. Go to the Connection tab and try and setup a connection syntax that will connect... Test connection. 6. Once you have a good test open the file with notepad and you will see the proven connection string. > Open With > Notepad. The connection string should then be able to be copied and pasted into your Access connection string and it should work just fine. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of rosalyn.clarke at barclays.com Sent: Wednesday, March 19, 2008 10:15 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Oracle provider on locked down system Sorry if I'm being dense Jim but I don't think I follow! The only thing wrong with my connection string afaik is that the provider is not installed - I inherited the string and it works fine on the legacy machines. There is no TNSNAMES file - there is no Oracle directory. Or would this be on the Oracle server? I have msado15, msado26 and msado27, plus the MDAC. But the code hangs on the connection string with either MSDAORA.1 or MSDAORA as the provider. According to MSDN the Oracle OLE DB provider is included with the .net framework but I don't have that. I've worked with Oracle before but in that case we had the Oracle client installed on the farm. This whole project is driving me nuts :) Roz -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: 19 March 2008 16:57 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Oracle provider on locked down system Hi Roz: There should be all your standard common files like the ADO components. Just check to see what the TNSNAMES file looks like and duplicate the connection string in ADO-OLE. See example below: (This use to be a actual set but it has long since changed so I think it has no current security issues.) 'from the tnsnames.ora ' 'PCAG.gov.bc.ca = ' (DESCRIPTION = ' (ADDRESS_LIST = ' (ADDRESS = ' (COMMUNITY = tcpcom.gov.bc.ca) ' (PROTOCOL = TCP) ' (Host = CRUSHER.gov.bc.ca) ' (Port = 1521) ' ) ' ) ' (CONNECT_DATA = ' (SID = PCAG) ' (GLOBAL_NAME = PCAG.gov.bc.ca) ' ) ' ) ' Microsoft connection string...standard security ' Substituted your msdaora.1 provider Roz. gstrConnection = "Provider=msdaora.1;" & _ "Data Source=PCAG.gov.bc.ca;" & _ "User Id=" & myUsername & ";" & _ "Password=" & myPassword ' Test connection string Set mobjConn = New ADODB.Connection mobjConn.ConnectionString = gstrConnection ... HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of rosalyn.clarke at barclays.com Sent: Wednesday, March 19, 2008 4:31 AM To: accessd at databaseadvisors.com Subject: [AccessD] Oracle provider on locked down system Dear List I have a legacy Access database that I need to make work on a Citrix server farm I cannot configure. The database runs a very simple query on an Oracle database and currently uses MSDAORA.1 as the provider. The Citrix farm does not have the Oracle client tools installed, and installing them is probably not an option. It also doesn't have the .net framework. Are there any providers people know of that might be included by default in a normal-ish Windows installation, or is there any way I can bundle something into a package that will run on a system that denies users write access to their C:\ drives? TIA Roz This e-mail and any attachments are confidential and intended solely for the addressee and may also be privileged or exempt from disclosure under applicable law. If you are not the addressee, or have received this e-mail in error, please notify the sender immediately, delete it from your system and do not copy, disclose or otherwise act upon any part of this e-mail or its attachments. Internet communications are not guaranteed to be secure or virus-free. The Barclays Group does not accept responsibility for any loss arising from unauthorised access to, or interference with, any Internet communications by any third party, or from the transmission of any viruses. Replies to this e-mail may be monitored by the Barclays Group for operational or business reasons. Any opinion or other information in this e-mail or its attachments that does not relate to the business of the Barclays Group is personal to the sender and is not given or endorsed by the Barclays Group. Barclays Bank PLC.Registered in England and Wales (registered no. 1026167). Registered Office: 1 Churchill Place, London, E14 5HP, United Kingdom. Barclays Bank PLC is authorised and regulated by the Financial Services Authority. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This e-mail and any attachments are confidential and intended solely for the addressee and may also be privileged or exempt from disclosure under applicable law. If you are not the addressee, or have received this e-mail in error, please notify the sender immediately, delete it from your system and do not copy, disclose or otherwise act upon any part of this e-mail or its attachments. Internet communications are not guaranteed to be secure or virus-free. The Barclays Group does not accept responsibility for any loss arising from unauthorised access to, or interference with, any Internet communications by any third party, or from the transmission of any viruses. Replies to this e-mail may be monitored by the Barclays Group for operational or business reasons. Any opinion or other information in this e-mail or its attachments that does not relate to the business of the Barclays Group is personal to the sender and is not given or endorsed by the Barclays Group. Barclays Bank PLC.Registered in England and Wales (registered no. 1026167). Registered Office: 1 Churchill Place, London, E14 5HP, United Kingdom. Barclays Bank PLC is authorised and regulated by the Financial Services Authority. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This e-mail and any attachments are confidential and intended solely for the addressee and may also be privileged or exempt from disclosure under applicable law. If you are not the addressee, or have received this e-mail in error, please notify the sender immediately, delete it from your system and do not copy, disclose or otherwise act upon any part of this e-mail or its attachments. Internet communications are not guaranteed to be secure or virus-free. The Barclays Group does not accept responsibility for any loss arising from unauthorised access to, or interference with, any Internet communications by any third party, or from the transmission of any viruses. Replies to this e-mail may be monitored by the Barclays Group for operational or business reasons. Any opinion or other information in this e-mail or its attachments that does not relate to the business of the Barclays Group is personal to the sender and is not given or endorsed by the Barclays Group. Barclays Bank PLC.Registered in England and Wales (registered no. 1026167). Registered Office: 1 Churchill Place, London, E14 5HP, United Kingdom. Barclays Bank PLC is authorised and regulated by the Financial Services Authority. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This e-mail and any attachments are confidential and intended solely for the addressee and may also be privileged or exempt from disclosure under applicable law. If you are not the addressee, or have received this e-mail in error, please notify the sender immediately, delete it from your system and do not copy, disclose or otherwise act upon any part of this e-mail or its attachments. Internet communications are not guaranteed to be secure or virus-free. The Barclays Group does not accept responsibility for any loss arising from unauthorised access to, or interference with, any Internet communications by any third party, or from the transmission of any viruses. Replies to this e-mail may be monitored by the Barclays Group for operational or business reasons. Any opinion or other information in this e-mail or its attachments that does not relate to the business of the Barclays Group is personal to the sender and is not given or endorsed by the Barclays Group. Barclays Bank PLC.Registered in England and Wales (registered no. 1026167). Registered Office: 1 Churchill Place, London, E14 5HP, United Kingdom. Barclays Bank PLC is authorised and regulated by the Financial Services Authority. From rosalyn.clarke at barclays.com Thu Mar 20 06:05:38 2008 From: rosalyn.clarke at barclays.com (rosalyn.clarke at barclays.com) Date: Thu, 20 Mar 2008 11:05:38 -0000 Subject: [AccessD] Look & Feel wizard? Message-ID: <0F978DF74B416B44A351B9143EB0FD33046E3F89@MUKPBCC1XMB0103.collab.barclayscorp.com> Hi everyone I am thinking about building a wizard that allows power users to set up form types with a certain look & feel (and possibly behaviour set) and then apply settings to all forms in the database, interating through forms and controls. It would also allow them to create new forms based on the defined types - like the template option, but with multiple templates, and (possibly) stored within the database. So the sanity check - has this been done? I feel like it must have been, but I can't find anything out there. The point is to allow people to update the look & feel if they go through a rebranding exercise or whatever. Inspired by me trying to bring 13 different databases up-to-date with the Big Bank's current brand guidelines. TIA for any input Roz "DSMP Mission - Building the future of Barclays computing infrastructure. 4K customers won in 2007, 10k+ to delight in 2008." This e-mail and any attachments are confidential and intended solely for the addressee and may also be privileged or exempt from disclosure under applicable law. If you are not the addressee, or have received this e-mail in error, please notify the sender immediately, delete it from your system and do not copy, disclose or otherwise act upon any part of this e-mail or its attachments. Internet communications are not guaranteed to be secure or virus-free. The Barclays Group does not accept responsibility for any loss arising from unauthorised access to, or interference with, any Internet communications by any third party, or from the transmission of any viruses. Replies to this e-mail may be monitored by the Barclays Group for operational or business reasons. Any opinion or other information in this e-mail or its attachments that does not relate to the business of the Barclays Group is personal to the sender and is not given or endorsed by the Barclays Group. Barclays Bank PLC.Registered in England and Wales (registered no. 1026167). Registered Office: 1 Churchill Place, London, E14 5HP, United Kingdom. Barclays Bank PLC is authorised and regulated by the Financial Services Authority. From andy at minstersystems.co.uk Thu Mar 20 06:56:14 2008 From: andy at minstersystems.co.uk (Andy Lacey) Date: Thu, 20 Mar 2008 11:56:14 -0000 Subject: [AccessD] Look & Feel wizard? In-Reply-To: <0F978DF74B416B44A351B9143EB0FD33046E3F89@MUKPBCC1XMB0103.collab.barclayscorp.com> Message-ID: <013d01c88a81$66a2d1e0$25e2d355@minster33c3r25> Hi Roz Sounds a great idea if it's feasible. I once had to write code to change the point size throughout a very large database. Of course different (larger) point size meant increasing size of controls and that meant repositioning them and so on. Bit of a nightmare really. So if your wizard's going to allow for that option it'll need to take lots into account. As I say though, sounds a great idea and I for one don't know of anything out there. -- Andy Lacey http://www.minstersystems.co.uk >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of >rosalyn.clarke at barclays.com >Sent: 20 March 2008 11:06 >To: accessd at databaseadvisors.com >Subject: [AccessD] Look & Feel wizard? > > >Hi everyone > >I am thinking about building a wizard that allows power users >to set up form types with a certain look & feel (and possibly >behaviour set) and then apply settings to all forms in the >database, interating through forms and controls. It would also >allow them to create new forms based on the defined types - >like the template option, but with multiple templates, and >(possibly) stored within the database. > >So the sanity check - has this been done? I feel like it must >have been, but I can't find anything out there. The point is >to allow people to update the look & feel if they go through a >rebranding exercise or whatever. Inspired by me trying to >bring 13 different databases up-to-date with the Big Bank's >current brand guidelines. > >TIA for any input > >Roz > >"DSMP Mission - Building the future of Barclays computing >infrastructure. 4K customers won in 2007, 10k+ to delight in 2008." > > > >This e-mail and any attachments are confidential and intended >solely for the addressee and may also be privileged or exempt >from disclosure under applicable law. If you are not the >addressee, or have received this e-mail in error, please >notify the sender immediately, delete it from your system and >do not copy, disclose or otherwise act upon any part of this >e-mail or its attachments. > >Internet communications are not guaranteed to be secure or >virus-free. The Barclays Group does not accept responsibility >for any loss arising from unauthorised access to, or >interference with, any Internet communications by any third >party, or from the transmission of any viruses. Replies to >this e-mail may be monitored by the Barclays Group for >operational or business reasons. > >Any opinion or other information in this e-mail or its >attachments that does not relate to the business of the >Barclays Group is personal to the sender and is not given or >endorsed by the Barclays Group. > >Barclays Bank PLC.Registered in England and Wales (registered >no. 1026167). Registered Office: 1 Churchill Place, London, >E14 5HP, United Kingdom. > >Barclays Bank PLC is authorised and regulated by the Financial >Services Authority. >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > From fuller.artful at gmail.com Thu Mar 20 06:56:53 2008 From: fuller.artful at gmail.com (Arthur Fuller) Date: Thu, 20 Mar 2008 07:56:53 -0400 Subject: [AccessD] Look & Feel wizard? In-Reply-To: <0F978DF74B416B44A351B9143EB0FD33046E3F89@MUKPBCC1XMB0103.collab.barclayscorp.com> References: <0F978DF74B416B44A351B9143EB0FD33046E3F89@MUKPBCC1XMB0103.collab.barclayscorp.com> Message-ID: <29f585dd0803200456j4cbabcfas2e0cf54b983ad7c3@mail.gmail.com> I recall that Helen Feddema has something on her site that does similar work, although it sounds like you're taking it further than she did. I don't have her thing handy (I recently did a disk cleanup and it and many other things moved to one of these DVDs in a pile), but if you Google her you'll find her site quickly enough and then you can grab the file I'm talking about. hth, Arthur From rosalyn.clarke at barclays.com Thu Mar 20 07:50:08 2008 From: rosalyn.clarke at barclays.com (rosalyn.clarke at barclays.com) Date: Thu, 20 Mar 2008 12:50:08 -0000 Subject: [AccessD] Look & Feel wizard? In-Reply-To: <29f585dd0803200456j4cbabcfas2e0cf54b983ad7c3@mail.gmail.com> Message-ID: <0F978DF74B416B44A351B9143EB0FD33046E3FAE@MUKPBCC1XMB0103.collab.barclayscorp.com> Got it - hurrah for Helen; this does make a start on what I wanted to do and will definitely help me a lot. Cheers Arthur Roz -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: 20 March 2008 11:57 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Look & Feel wizard? I recall that Helen Feddema has something on her site that does similar work, although it sounds like you're taking it further than she did. I don't have her thing handy (I recently did a disk cleanup and it and many other things moved to one of these DVDs in a pile), but if you Google her you'll find her site quickly enough and then you can grab the file I'm talking about. hth, Arthur -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This e-mail and any attachments are confidential and intended solely for the addressee and may also be privileged or exempt from disclosure under applicable law. If you are not the addressee, or have received this e-mail in error, please notify the sender immediately, delete it from your system and do not copy, disclose or otherwise act upon any part of this e-mail or its attachments. Internet communications are not guaranteed to be secure or virus-free. The Barclays Group does not accept responsibility for any loss arising from unauthorised access to, or interference with, any Internet communications by any third party, or from the transmission of any viruses. Replies to this e-mail may be monitored by the Barclays Group for operational or business reasons. Any opinion or other information in this e-mail or its attachments that does not relate to the business of the Barclays Group is personal to the sender and is not given or endorsed by the Barclays Group. Barclays Bank PLC.Registered in England and Wales (registered no. 1026167). Registered Office: 1 Churchill Place, London, E14 5HP, United Kingdom. Barclays Bank PLC is authorised and regulated by the Financial Services Authority. From rosalyn.clarke at barclays.com Thu Mar 20 07:50:40 2008 From: rosalyn.clarke at barclays.com (rosalyn.clarke at barclays.com) Date: Thu, 20 Mar 2008 12:50:40 -0000 Subject: [AccessD] Look & Feel wizard? In-Reply-To: <013d01c88a81$66a2d1e0$25e2d355@minster33c3r25> Message-ID: <0F978DF74B416B44A351B9143EB0FD33046E3FAF@MUKPBCC1XMB0103.collab.barclayscorp.com> Hi Andy I hadn't thought of that. I was just going to sweep through and then allow the user to finish off the forms by hand, or roll back the changes if the result was disastrous. I suppose the thing to do would be to combine it with the auto-resize functionality that's out there. It's not something I've done before but I know it's possible to rescale fonts and controls according to resolution, maintaining relative positions etc., so it ought to be possible to do it the other way around... I hope... It would be a way of adding something to Helen's work :) Roz -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: 20 March 2008 11:56 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Look & Feel wizard? Hi Roz Sounds a great idea if it's feasible. I once had to write code to change the point size throughout a very large database. Of course different (larger) point size meant increasing size of controls and that meant repositioning them and so on. Bit of a nightmare really. So if your wizard's going to allow for that option it'll need to take lots into account. As I say though, sounds a great idea and I for one don't know of anything out there. -- Andy Lacey http://www.minstersystems.co.uk >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of >rosalyn.clarke at barclays.com >Sent: 20 March 2008 11:06 >To: accessd at databaseadvisors.com >Subject: [AccessD] Look & Feel wizard? > > >Hi everyone > >I am thinking about building a wizard that allows power users to set up >form types with a certain look & feel (and possibly behaviour set) and >then apply settings to all forms in the database, interating through >forms and controls. It would also allow them to create new forms based >on the defined types - like the template option, but with multiple >templates, and >(possibly) stored within the database. > >So the sanity check - has this been done? I feel like it must have >been, but I can't find anything out there. The point is to allow people >to update the look & feel if they go through a rebranding exercise or >whatever. Inspired by me trying to bring 13 different databases >up-to-date with the Big Bank's current brand guidelines. > >TIA for any input > >Roz > >"DSMP Mission - Building the future of Barclays computing >infrastructure. 4K customers won in 2007, 10k+ to delight in 2008." > > > >This e-mail and any attachments are confidential and intended solely >for the addressee and may also be privileged or exempt from disclosure >under applicable law. If you are not the addressee, or have received >this e-mail in error, please notify the sender immediately, delete it >from your system and do not copy, disclose or otherwise act upon any >part of this e-mail or its attachments. > >Internet communications are not guaranteed to be secure or virus-free. >The Barclays Group does not accept responsibility for any loss arising >from unauthorised access to, or interference with, any Internet >communications by any third party, or from the transmission of any >viruses. Replies to this e-mail may be monitored by the Barclays Group >for operational or business reasons. > >Any opinion or other information in this e-mail or its attachments that >does not relate to the business of the Barclays Group is personal to >the sender and is not given or endorsed by the Barclays Group. > >Barclays Bank PLC.Registered in England and Wales (registered no. >1026167). Registered Office: 1 Churchill Place, London, >E14 5HP, United Kingdom. > >Barclays Bank PLC is authorised and regulated by the Financial Services >Authority. >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This e-mail and any attachments are confidential and intended solely for the addressee and may also be privileged or exempt from disclosure under applicable law. If you are not the addressee, or have received this e-mail in error, please notify the sender immediately, delete it from your system and do not copy, disclose or otherwise act upon any part of this e-mail or its attachments. Internet communications are not guaranteed to be secure or virus-free. The Barclays Group does not accept responsibility for any loss arising from unauthorised access to, or interference with, any Internet communications by any third party, or from the transmission of any viruses. Replies to this e-mail may be monitored by the Barclays Group for operational or business reasons. Any opinion or other information in this e-mail or its attachments that does not relate to the business of the Barclays Group is personal to the sender and is not given or endorsed by the Barclays Group. Barclays Bank PLC.Registered in England and Wales (registered no. 1026167). Registered Office: 1 Churchill Place, London, E14 5HP, United Kingdom. Barclays Bank PLC is authorised and regulated by the Financial Services Authority. From rockysmolin at bchacc.com Thu Mar 20 09:02:21 2008 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Thu, 20 Mar 2008 07:02:21 -0700 Subject: [AccessD] Continuous subform on a continuous subform In-Reply-To: <47E1FC06.4050106@mvps.org> References: <002a01c88940$b4c21670$0301a8c0@HAL9005><002201c889d4$5b2e9270$0301a8c0@HAL9005><000d01c889d5$d1f28370$0201a8c0@M90><002701c889de$53fbb910$0301a8c0@HAL9005><003001c889e5$289441a0$0301a8c0@HAL9005><000901c88a00$79bfdfb0$0301a8c0@HAL9005> <47E1FC06.4050106@mvps.org> Message-ID: <002d01c88a93$046e1d10$0301a8c0@HAL9005> Too slick! Thanks. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve Schapel Sent: Wednesday, March 19, 2008 10:54 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Continuous subform on a continuous subform Rocky, I normally put an unbound (hidden) textbox on the main form, with its Control Source set to the equivalent of: =[Subform No1]![Primary Key field of subform 1] And then, set the Link Master Fields property of Subform No2 to this textbox. That way, as you move from one record to another on Subform No1, the records shown on Subform No2 will automatically be synched, without the need for any code at all. Regards Steve Rocky Smolin at Beach Access Software wrote: > No, I couldn't do that because the sub-form - No. 2 is the one I > wanted to make a sub-form in sub-form No1. But since they were both > continuous I couldn't. So your idea was the right stuff. But I have > to refresh No 2 (which is look only, no editing - makes things easier) > in the current event of No.1. And it's working now that I changed No.2's record source. -- 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. Version: 7.5.519 / Virus Database: 269.21.7/1335 - Release Date: 3/19/2008 9:54 AM From markamatte at hotmail.com Thu Mar 20 09:31:47 2008 From: markamatte at hotmail.com (Mark A Matte) Date: Thu, 20 Mar 2008 14:31:47 +0000 Subject: [AccessD] Oracle provider on locked down system In-Reply-To: <0F978DF74B416B44A351B9143EB0FD33046E3F54@MUKPBCC1XMB0103.collab.barclayscorp.com> References: <0F978DF74B416B44A351B9143EB0FD33046E3F54@MUKPBCC1XMB0103.collab.barclayscorp.com> Message-ID: I know that error well. I just went through this with SQL Server. I talked with a few people...no one knew what "MS OLE DB Provider for Oracle " was actually for. I had to install drivers from Oracle and select it. Worked like a charm. Mark > Date: Thu, 20 Mar 2008 08:56:53 +0000 > From: rosalyn.clarke at barclays.com > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] Oracle provider on locked down system > > Hi Jim > > The MS OLE DB Provider for Oracle appears in the list, huzzah. > > BUT when I try to connect I get the same old error message: "Test connection > failed because of an error in initializing provider. Oracle client and > networking components were not found. These components are supplied by Oracle > Corporation and are part of the Oracle Version 7.3.3 or later client software > installation. Provider is unable to function until these components are > installed." > > So there's another layer? It's been such a long time since I've needed to > think about this stuff... > > Roz > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence > Sent: 19 March 2008 18:42 > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Oracle provider on locked down system > > Hi Roz: > > Maybe I am being dense just not knowing what functionality you have available > to you. First, can you connect in any way to the Oracle database from the > Citrix desktop. > > You can test to see if you can get a connection by: > 1. Going to the Citrix desktop. > 2. If you can create a text box > new> Text Document > I.E. test.txt 3. Rename the new file to test.udl 4. > > properties of the test.udl and go to the provider tab. If you see an Oracle > option (Microsoft OLE DB Provider for SQL Oracle will be there by default). > You should see all. > 5. Go to the Connection tab and try and setup a connection syntax that will > connect... Test connection. > 6. Once you have a good test open the file with notepad and you will see the > proven connection string. > Open With> Notepad. > > The connection string should then be able to be copied and pasted into your > Access connection string and it should work just fine. > > HTH > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > rosalyn.clarke at barclays.com > Sent: Wednesday, March 19, 2008 10:15 AM > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] Oracle provider on locked down system > > Sorry if I'm being dense Jim but I don't think I follow! > > The only thing wrong with my connection string afaik is that the provider is > not installed - I inherited the string and it works fine on the legacy > machines. There is no TNSNAMES file - there is no Oracle directory. Or would > this be on the Oracle server? > > I have msado15, msado26 and msado27, plus the MDAC. But the code hangs on the > connection string with either MSDAORA.1 or MSDAORA as the provider. > According > to MSDN the Oracle OLE DB provider is included with the .net framework but I > don't have that. > > I've worked with Oracle before but in that case we had the Oracle client > installed on the farm. > > This whole project is driving me nuts :) > > Roz > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence > Sent: 19 March 2008 16:57 > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Oracle provider on locked down system > > Hi Roz: > > There should be all your standard common files like the ADO components. > > Just check to see what the TNSNAMES file looks like and duplicate the > connection string in ADO-OLE. See example below: (This use to be a actual set > but it has long since changed so I think it has no current security > issues.) > > > 'from the tnsnames.ora > ' > 'PCAG.gov.bc.ca = > ' (DESCRIPTION = > ' (ADDRESS_LIST = > ' (ADDRESS = > ' (COMMUNITY = tcpcom.gov.bc.ca) > ' (PROTOCOL = TCP) > ' (Host = CRUSHER.gov.bc.ca) > ' (Port = 1521) > ' ) > ' ) > ' (CONNECT_DATA = > ' (SID = PCAG) > ' (GLOBAL_NAME = PCAG.gov.bc.ca) > ' ) > ' ) > > > ' Microsoft connection string...standard security ' Substituted your > msdaora.1 provider Roz. > gstrConnection = "Provider=msdaora.1;" & _ > "Data Source=PCAG.gov.bc.ca;" & _ > "User Id=" & myUsername & ";" & _ > "Password=" & myPassword > > ' Test connection string > Set mobjConn = New ADODB.Connection > mobjConn.ConnectionString = gstrConnection ... > > > HTH > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > rosalyn.clarke at barclays.com > Sent: Wednesday, March 19, 2008 4:31 AM > To: accessd at databaseadvisors.com > Subject: [AccessD] Oracle provider on locked down system > > Dear List > > I have a legacy Access database that I need to make work on a Citrix server > farm I cannot configure. The database runs a very simple query on an Oracle > database and currently uses MSDAORA.1 as the provider. The Citrix farm does > not have the Oracle client tools installed, and installing them is probably > not an option. It also doesn't have the .net framework. > > Are there any providers people know of that might be included by default in a > normal-ish Windows installation, or is there any way I can bundle something > into a package that will run on a system that denies users write access to > their C:\ drives? > > TIA > > Roz > > This e-mail and any attachments are confidential and intended solely for the > addressee and may also be privileged or exempt from disclosure under > applicable law. If you are not the addressee, or have received this e-mail in > error, please notify the sender immediately, delete it from your system and > do not copy, disclose or otherwise act upon any part of this e-mail or its > attachments. > > Internet communications are not guaranteed to be secure or virus-free. > The Barclays Group does not accept responsibility for any loss arising from > unauthorised access to, or interference with, any Internet communications by > any third party, or from the transmission of any viruses. Replies to this > e-mail may be monitored by the Barclays Group for operational or business > reasons. > > Any opinion or other information in this e-mail or its attachments that does > not relate to the business of the Barclays Group is personal to the sender > and is not given or endorsed by the Barclays Group. > > Barclays Bank PLC.Registered in England and Wales (registered no. 1026167). > Registered Office: 1 Churchill Place, London, E14 5HP, United Kingdom. > > Barclays Bank PLC is authorised and regulated by the Financial Services > Authority. > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > This e-mail and any attachments are confidential and intended solely for the > addressee and may also be privileged or exempt from disclosure under > applicable law. If you are not the addressee, or have received this e-mail in > error, please notify the sender immediately, delete it from your system and > do not copy, disclose or otherwise act upon any part of this e-mail or its > attachments. > > Internet communications are not guaranteed to be secure or virus-free. > The Barclays Group does not accept responsibility for any loss arising from > unauthorised access to, or interference with, any Internet communications by > any third party, or from the transmission of any viruses. Replies to this > e-mail may be monitored by the Barclays Group for operational or business > reasons. > > Any opinion or other information in this e-mail or its attachments that does > not relate to the business of the Barclays Group is personal to the sender > and is not given or endorsed by the Barclays Group. > > Barclays Bank PLC.Registered in England and Wales (registered no. 1026167). > Registered Office: 1 Churchill Place, London, E14 5HP, United Kingdom. > > Barclays Bank PLC is authorised and regulated by the Financial Services > Authority. > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > This e-mail and any attachments are confidential and intended solely for the addressee and may also be privileged or exempt from disclosure under applicable law. If you are not the addressee, or have received this e-mail in error, please notify the sender immediately, delete it from your system and do not copy, disclose or otherwise act upon any part of this e-mail or its attachments. > > Internet communications are not guaranteed to be secure or virus-free. > The Barclays Group does not accept responsibility for any loss arising from unauthorised access to, or interference with, any Internet communications by any third party, or from the transmission of any viruses. Replies to this e-mail may be monitored by the Barclays Group for operational or business reasons. > > Any opinion or other information in this e-mail or its attachments that does not relate to the business of the Barclays Group is personal to the sender and is not given or endorsed by the Barclays Group. > > Barclays Bank PLC.Registered in England and Wales (registered no. 1026167). > Registered Office: 1 Churchill Place, London, E14 5HP, United Kingdom. > > Barclays Bank PLC is authorised and regulated by the Financial Services Authority. > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com _________________________________________________________________ Climb to the top of the charts!?Play the word scramble challenge with star power. http://club.live.com/star_shuffle.aspx?icid=starshuffle_wlmailtextlink_jan From cfoust at infostatsystems.com Thu Mar 20 09:37:58 2008 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 20 Mar 2008 07:37:58 -0700 Subject: [AccessD] Continuous subform on a continuous subform In-Reply-To: <002d01c88a93$046e1d10$0301a8c0@HAL9005> References: <002a01c88940$b4c21670$0301a8c0@HAL9005><002201c889d4$5b2e9270$0301a8c0@HAL9005><000d01c889d5$d1f28370$0201a8c0@M90><002701c889de$53fbb910$0301a8c0@HAL9005><003001c889e5$289441a0$0301a8c0@HAL9005><000901c88a00$79bfdfb0$0301a8c0@HAL9005><47E1FC06.4050106@mvps.org> <002d01c88a93$046e1d10$0301a8c0@HAL9005> Message-ID: Yep, that's the way I do it too. I just didn't explain myself well. One of those hit and run posts. LOL Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Thursday, March 20, 2008 7:02 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Continuous subform on a continuous subform Too slick! Thanks. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve Schapel Sent: Wednesday, March 19, 2008 10:54 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Continuous subform on a continuous subform Rocky, I normally put an unbound (hidden) textbox on the main form, with its Control Source set to the equivalent of: =[Subform No1]![Primary Key field of subform 1] And then, set the Link Master Fields property of Subform No2 to this textbox. That way, as you move from one record to another on Subform No1, the records shown on Subform No2 will automatically be synched, without the need for any code at all. Regards Steve Rocky Smolin at Beach Access Software wrote: > No, I couldn't do that because the sub-form - No. 2 is the one I > wanted to make a sub-form in sub-form No1. But since they were both > continuous I couldn't. So your idea was the right stuff. But I have > to refresh No 2 (which is look only, no editing - makes things easier) > in the current event of No.1. And it's working now that I changed > No.2's record source. -- 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. Version: 7.5.519 / Virus Database: 269.21.7/1335 - Release Date: 3/19/2008 9:54 AM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Thu Mar 20 11:04:39 2008 From: accessd at shaw.ca (Jim Lawrence) Date: Thu, 20 Mar 2008 09:04:39 -0700 Subject: [AccessD] Oracle provider on locked down system In-Reply-To: <0F978DF74B416B44A351B9143EB0FD33046E3F59@MUKPBCC1XMB0103.collab.barclayscorp.com> References: <0F978DF74B416B44A351B9143EB0FD33046E3F54@MUKPBCC1XMB0103.collab.barclayscorp.com> <0F978DF74B416B44A351B9143EB0FD33046E3F59@MUKPBCC1XMB0103.collab.barclayscorp.com> Message-ID: <758DE63D6E66491CA8E3AD9B2CAD8971@creativesystemdesigns.com> Hi Roz: Sounds like you now have things well in hand as you have kept answering your own questions as soon as they were posted. Keep me apprized on your progress. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of rosalyn.clarke at barclays.com Sent: Thursday, March 20, 2008 2:05 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Oracle provider on locked down system Ah OK - the provider connects to the client, not the server. So I have to beg the build team to install the Oracle client, or sidestep this whole thing. Luckily the data is not volatile and a nightly export to a .txt file or something should be acceptable. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Clarke, Rosalyn : UK CIO GRCB Sent: 20 March 2008 08:57 To: accessd at databaseadvisors.com Subject: Re: [AccessD] Oracle provider on locked down system Hi Jim The MS OLE DB Provider for Oracle appears in the list, huzzah. BUT when I try to connect I get the same old error message: "Test connection failed because of an error in initializing provider. Oracle client and networking components were not found. These components are supplied by Oracle Corporation and are part of the Oracle Version 7.3.3 or later client software installation. Provider is unable to function until these components are installed." So there's another layer? It's been such a long time since I've needed to think about this stuff... Roz -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: 19 March 2008 18:42 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Oracle provider on locked down system Hi Roz: Maybe I am being dense just not knowing what functionality you have available to you. First, can you connect in any way to the Oracle database from the Citrix desktop. You can test to see if you can get a connection by: 1. Going to the Citrix desktop. 2. If you can create a text box > new > Text Document I.E. test.txt 3. Rename the new file to test.udl 4. > properties of the test.udl and go to the provider tab. If you see an Oracle option (Microsoft OLE DB Provider for SQL Oracle will be there by default). You should see all. 5. Go to the Connection tab and try and setup a connection syntax that will connect... Test connection. 6. Once you have a good test open the file with notepad and you will see the proven connection string. > Open With > Notepad. The connection string should then be able to be copied and pasted into your Access connection string and it should work just fine. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of rosalyn.clarke at barclays.com Sent: Wednesday, March 19, 2008 10:15 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Oracle provider on locked down system Sorry if I'm being dense Jim but I don't think I follow! The only thing wrong with my connection string afaik is that the provider is not installed - I inherited the string and it works fine on the legacy machines. There is no TNSNAMES file - there is no Oracle directory. Or would this be on the Oracle server? I have msado15, msado26 and msado27, plus the MDAC. But the code hangs on the connection string with either MSDAORA.1 or MSDAORA as the provider. According to MSDN the Oracle OLE DB provider is included with the .net framework but I don't have that. I've worked with Oracle before but in that case we had the Oracle client installed on the farm. This whole project is driving me nuts :) Roz -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: 19 March 2008 16:57 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Oracle provider on locked down system Hi Roz: There should be all your standard common files like the ADO components. Just check to see what the TNSNAMES file looks like and duplicate the connection string in ADO-OLE. See example below: (This use to be a actual set but it has long since changed so I think it has no current security issues.) 'from the tnsnames.ora ' 'PCAG.gov.bc.ca = ' (DESCRIPTION = ' (ADDRESS_LIST = ' (ADDRESS = ' (COMMUNITY = tcpcom.gov.bc.ca) ' (PROTOCOL = TCP) ' (Host = CRUSHER.gov.bc.ca) ' (Port = 1521) ' ) ' ) ' (CONNECT_DATA = ' (SID = PCAG) ' (GLOBAL_NAME = PCAG.gov.bc.ca) ' ) ' ) ' Microsoft connection string...standard security ' Substituted your msdaora.1 provider Roz. gstrConnection = "Provider=msdaora.1;" & _ "Data Source=PCAG.gov.bc.ca;" & _ "User Id=" & myUsername & ";" & _ "Password=" & myPassword ' Test connection string Set mobjConn = New ADODB.Connection mobjConn.ConnectionString = gstrConnection ... HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of rosalyn.clarke at barclays.com Sent: Wednesday, March 19, 2008 4:31 AM To: accessd at databaseadvisors.com Subject: [AccessD] Oracle provider on locked down system Dear List I have a legacy Access database that I need to make work on a Citrix server farm I cannot configure. The database runs a very simple query on an Oracle database and currently uses MSDAORA.1 as the provider. The Citrix farm does not have the Oracle client tools installed, and installing them is probably not an option. It also doesn't have the .net framework. Are there any providers people know of that might be included by default in a normal-ish Windows installation, or is there any way I can bundle something into a package that will run on a system that denies users write access to their C:\ drives? TIA Roz This e-mail and any attachments are confidential and intended solely for the addressee and may also be privileged or exempt from disclosure under applicable law. If you are not the addressee, or have received this e-mail in error, please notify the sender immediately, delete it from your system and do not copy, disclose or otherwise act upon any part of this e-mail or its attachments. Internet communications are not guaranteed to be secure or virus-free. The Barclays Group does not accept responsibility for any loss arising from unauthorised access to, or interference with, any Internet communications by any third party, or from the transmission of any viruses. Replies to this e-mail may be monitored by the Barclays Group for operational or business reasons. Any opinion or other information in this e-mail or its attachments that does not relate to the business of the Barclays Group is personal to the sender and is not given or endorsed by the Barclays Group. Barclays Bank PLC.Registered in England and Wales (registered no. 1026167). Registered Office: 1 Churchill Place, London, E14 5HP, United Kingdom. Barclays Bank PLC is authorised and regulated by the Financial Services Authority. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This e-mail and any attachments are confidential and intended solely for the addressee and may also be privileged or exempt from disclosure under applicable law. If you are not the addressee, or have received this e-mail in error, please notify the sender immediately, delete it from your system and do not copy, disclose or otherwise act upon any part of this e-mail or its attachments. Internet communications are not guaranteed to be secure or virus-free. The Barclays Group does not accept responsibility for any loss arising from unauthorised access to, or interference with, any Internet communications by any third party, or from the transmission of any viruses. Replies to this e-mail may be monitored by the Barclays Group for operational or business reasons. Any opinion or other information in this e-mail or its attachments that does not relate to the business of the Barclays Group is personal to the sender and is not given or endorsed by the Barclays Group. Barclays Bank PLC.Registered in England and Wales (registered no. 1026167). Registered Office: 1 Churchill Place, London, E14 5HP, United Kingdom. Barclays Bank PLC is authorised and regulated by the Financial Services Authority. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This e-mail and any attachments are confidential and intended solely for the addressee and may also be privileged or exempt from disclosure under applicable law. If you are not the addressee, or have received this e-mail in error, please notify the sender immediately, delete it from your system and do not copy, disclose or otherwise act upon any part of this e-mail or its attachments. Internet communications are not guaranteed to be secure or virus-free. The Barclays Group does not accept responsibility for any loss arising from unauthorised access to, or interference with, any Internet communications by any third party, or from the transmission of any viruses. Replies to this e-mail may be monitored by the Barclays Group for operational or business reasons. Any opinion or other information in this e-mail or its attachments that does not relate to the business of the Barclays Group is personal to the sender and is not given or endorsed by the Barclays Group. Barclays Bank PLC.Registered in England and Wales (registered no. 1026167). Registered Office: 1 Churchill Place, London, E14 5HP, United Kingdom. Barclays Bank PLC is authorised and regulated by the Financial Services Authority. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This e-mail and any attachments are confidential and intended solely for the addressee and may also be privileged or exempt from disclosure under applicable law. If you are not the addressee, or have received this e-mail in error, please notify the sender immediately, delete it from your system and do not copy, disclose or otherwise act upon any part of this e-mail or its attachments. Internet communications are not guaranteed to be secure or virus-free. The Barclays Group does not accept responsibility for any loss arising from unauthorised access to, or interference with, any Internet communications by any third party, or from the transmission of any viruses. Replies to this e-mail may be monitored by the Barclays Group for operational or business reasons. Any opinion or other information in this e-mail or its attachments that does not relate to the business of the Barclays Group is personal to the sender and is not given or endorsed by the Barclays Group. Barclays Bank PLC.Registered in England and Wales (registered no. 1026167). Registered Office: 1 Churchill Place, London, E14 5HP, United Kingdom. Barclays Bank PLC is authorised and regulated by the Financial Services Authority. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Thu Mar 20 13:40:10 2008 From: accessd at shaw.ca (Jim Lawrence) Date: Thu, 20 Mar 2008 11:40:10 -0700 Subject: [AccessD] Rocky's new Book In-Reply-To: References: <0F978DF74B416B44A351B9143EB0FD33046E3F54@MUKPBCC1XMB0103.collab.barclayscorp.com> Message-ID: Hi All: Rocky has a new book on how to develop an application into a product. See description and link on the DBA web site at http://www.DatabaseAdvisors.com and/or link to Apress books at http://www.apress.com/book/view/1590599713 Jim From dbdoug at gmail.com Thu Mar 20 13:55:33 2008 From: dbdoug at gmail.com (Doug Steele) Date: Thu, 20 Mar 2008 11:55:33 -0700 Subject: [AccessD] Customizing 2007's Navigation Pane Message-ID: <4dd71a0c0803201155o3ecf57aekca28c56ca726372a@mail.gmail.com> I hide it. Two reasons: 1. Most of my screens are full already. 2. The last thing I want is my 'experimental' users discovering they can activate a form or query from the main menu. I generally find that users find the database window in earlier versions of Access too intimidating to play with, but the Nav Pane is just sitting there waiting to be clicked on... Doug Steele From fuller.artful at gmail.com Thu Mar 20 15:47:10 2008 From: fuller.artful at gmail.com (Arthur Fuller) Date: Thu, 20 Mar 2008 15:47:10 -0500 Subject: [AccessD] Customizing 2007's Navigation Pane In-Reply-To: <4dd71a0c0803201155o3ecf57aekca28c56ca726372a@mail.gmail.com> References: <4dd71a0c0803201155o3ecf57aekca28c56ca726372a@mail.gmail.com> Message-ID: <29f585dd0803201347h5bda4a05g714f61d6cdd0964e@mail.gmail.com> I don't want to get bitchy just before Good Friday, but IMO you're taking the lazy way out, and also failing to exploit some of the significant advantages of this new feature. You can customize it to hide everything you wish, and also to display the new items you have created expressly for that purpose. The tremendous advantage of such an approach is that you can open several items in sequence and they are all open in tabs and you can switch from one to another with a click. In addition, this UI far surpasses the old Switchboard technology, not least because it's always visible and available. Invest a little time in learning to customize this thing and I am confident that you will change your mind and realize how cool it is. Arthur On Thu, Mar 20, 2008 at 1:55 PM, Doug Steele wrote: > I hide it. Two reasons: > > 1. Most of my screens are full already. > 2. The last thing I want is my 'experimental' users discovering they can > activate a form or query from the main menu. I generally find that users > find the database window in earlier versions of Access too intimidating to > play with, but the Nav Pane is just sitting there waiting to be clicked > on... > > Doug Steele From dbdoug at gmail.com Thu Mar 20 19:08:20 2008 From: dbdoug at gmail.com (Doug Steele) Date: Thu, 20 Mar 2008 17:08:20 -0700 Subject: [AccessD] Customizing 2007's Navigation Pane In-Reply-To: <29f585dd0803201347h5bda4a05g714f61d6cdd0964e@mail.gmail.com> References: <4dd71a0c0803201155o3ecf57aekca28c56ca726372a@mail.gmail.com> <29f585dd0803201347h5bda4a05g714f61d6cdd0964e@mail.gmail.com> Message-ID: <4dd71a0c0803201708i6f70be2fx3e970958b7afaf19@mail.gmail.com> Hi Arthur: Thanks for the comment, and I'm not insulted. I'd be the first person to admit that I've spent very little time exploring the new features of the Nav Pane, and I expect that, as time passes, I'll get more comfortable with it as a tool. It's going to be a while, though. Even if the Nav Pane can provide a generally improved navigation experience, getting my clients to pay me for changing the look and feel of their existing, perfectly functional, databases will be an arduous process. Thanks, Doug Steele On Thu, Mar 20, 2008 at 1:47 PM, Arthur Fuller wrote: > I don't want to get bitchy just before Good Friday, but IMO you're taking > the lazy way out, and also failing to exploit some of the significant > advantages of this new feature. You can customize it to hide everything > you > wish, and also to display the new items you have created expressly for > that > purpose. The tremendous advantage of such an approach is that you can open > several items in sequence and they are all open in tabs and you can switch > from one to another with a click. In addition, this UI far surpasses the > old > Switchboard technology, not least because it's always visible and > available. > > Invest a little time in learning to customize this thing and I am > confident > that you will change your mind and realize how cool it is. > > Arthur > > On Thu, Mar 20, 2008 at 1:55 PM, Doug Steele wrote: > > > I hide it. Two reasons: > > > > 1. Most of my screens are full already. > > 2. The last thing I want is my 'experimental' users discovering they can > > activate a form or query from the main menu. I generally find that > users > > find the database window in earlier versions of Access too intimidating > to > > play with, but the Nav Pane is just sitting there waiting to be clicked > > on... > > > > Doug Steele > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From fuller.artful at gmail.com Thu Mar 20 22:30:00 2008 From: fuller.artful at gmail.com (Arthur Fuller) Date: Thu, 20 Mar 2008 22:30:00 -0500 Subject: [AccessD] Customizing 2007's Navigation Pane In-Reply-To: <4dd71a0c0803201708i6f70be2fx3e970958b7afaf19@mail.gmail.com> References: <4dd71a0c0803201155o3ecf57aekca28c56ca726372a@mail.gmail.com> <29f585dd0803201347h5bda4a05g714f61d6cdd0964e@mail.gmail.com> <4dd71a0c0803201708i6f70be2fx3e970958b7afaf19@mail.gmail.com> Message-ID: <29f585dd0803202030pe7283c0t3675625698d178fd@mail.gmail.com> On that score, Doug, I have no rebuttal. I myself am doing an app for the provincial government currently, and they insist on 800 resolution. When was the last time anyone you know used that resolution? Wow. So while I'm writing it, I put my 22" flat screen monitor into that resolution LOL. I can get really drunk and sit on the other side of the room and still read it clearly! O well. Your tax dollars at work. They also have another funny policy which is that I am only allowed to work 7.5 hours a day. Well, that's just not in my nature. So I said, I typically work more, I don't want overtime, but can't I bill 12 hours a day and do the thing faster? No. 7.5hours a day max. So then I work my own hours (this is a remote job), and then slice the time sheet accordingly, so in this virtual universe it's technically April 2, not March 20. Go figure. And there isn't a chance in hell they'd go for the nav panel. That would be way too radical. Besides, at 800 resolution there wouldn't be much room for anything else on the screen at the same time. A. On 3/20/08, Doug Steele wrote: > > Hi Arthur: > > Thanks for the comment, and I'm not insulted. I'd be the first person to > admit that I've spent very little time exploring the new features of the > Nav > Pane, and I expect that, as time passes, I'll get more comfortable with it > as a tool. It's going to be a while, though. Even if the Nav Pane can > provide a generally improved navigation experience, getting my clients to > pay me for changing the look and feel of their existing, perfectly > functional, databases will be an arduous process. > > Thanks, > Doug Steele > From fuller.artful at gmail.com Thu Mar 20 23:39:26 2008 From: fuller.artful at gmail.com (Arthur Fuller) Date: Thu, 20 Mar 2008 23:39:26 -0500 Subject: [AccessD] Friday musings Message-ID: <29f585dd0803202139p4b4ac806md0897ffff8d544dc@mail.gmail.com> Since it's about to become Good Friday, I once again muse about the symbology inherent in this weekend -- not the Christian part of it, which is fairly easy to comprehend, but the Easter Bunny part. I don't know the history of this add-in, but I do find it curious. This alleged benign bunny distributes chocolate and pure sugar eggs to millions of children. All right, bunny rabbits, last time I turned one upside down, don't lay eggs. Therefore they must steal them. Millions of chickens victimized annually (presumably only certain chickens can lay chocolate or pure sugar eggs, which makes the crime even worse). Robbed of their progeny. And if that isn't enough, the Easter Bunny doesn't just give his booty away, but hides it, forcing the children to hunt and search for the booty, thereby compromising their integrity twofold. >From whence hath this tradition emerged? Was it purely a marketing scam by the drug dealers known as chocolate|sugar manufacturers? How long have these drug dealers been able to purvey their wares, while the constabulary turns a blind eye? A. From rockysmolin at bchacc.com Thu Mar 20 23:43:26 2008 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Thu, 20 Mar 2008 21:43:26 -0700 Subject: [AccessD] Customizing 2007's Navigation Pane In-Reply-To: <29f585dd0803202030pe7283c0t3675625698d178fd@mail.gmail.com> References: <4dd71a0c0803201155o3ecf57aekca28c56ca726372a@mail.gmail.com><29f585dd0803201347h5bda4a05g714f61d6cdd0964e@mail.gmail.com><4dd71a0c0803201708i6f70be2fx3e970958b7afaf19@mail.gmail.com> <29f585dd0803202030pe7283c0t3675625698d178fd@mail.gmail.com> Message-ID: <017d01c88b0e$1a65eeb0$0301a8c0@HAL9005> Provincial: having or showing the manners, viewpoints, etc., considered characteristic of unsophisticated inhabitants of a province; rustic; narrow or illiberal; parochial. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Thursday, March 20, 2008 8:30 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Customizing 2007's Navigation Pane On that score, Doug, I have no rebuttal. I myself am doing an app for the provincial government currently, and they insist on 800 resolution. When was the last time anyone you know used that resolution? Wow. So while I'm writing it, I put my 22" flat screen monitor into that resolution LOL. I can get really drunk and sit on the other side of the room and still read it clearly! O well. Your tax dollars at work. They also have another funny policy which is that I am only allowed to work 7.5 hours a day. Well, that's just not in my nature. So I said, I typically work more, I don't want overtime, but can't I bill 12 hours a day and do the thing faster? No. 7.5hours a day max. So then I work my own hours (this is a remote job), and then slice the time sheet accordingly, so in this virtual universe it's technically April 2, not March 20. Go figure. And there isn't a chance in hell they'd go for the nav panel. That would be way too radical. Besides, at 800 resolution there wouldn't be much room for anything else on the screen at the same time. A. On 3/20/08, Doug Steele wrote: > > Hi Arthur: > > Thanks for the comment, and I'm not insulted. I'd be the first person > to admit that I've spent very little time exploring the new features > of the Nav Pane, and I expect that, as time passes, I'll get more > comfortable with it as a tool. It's going to be a while, though. > Even if the Nav Pane can provide a generally improved navigation > experience, getting my clients to pay me for changing the look and > feel of their existing, perfectly functional, databases will be an > arduous process. > > Thanks, > Doug Steele > -- 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. Version: 7.5.519 / Virus Database: 269.21.8/1337 - Release Date: 3/20/2008 8:10 PM From fuller.artful at gmail.com Thu Mar 20 23:48:20 2008 From: fuller.artful at gmail.com (Arthur Fuller) Date: Thu, 20 Mar 2008 23:48:20 -0500 Subject: [AccessD] Customizing 2007's Navigation Pane In-Reply-To: <017d01c88b0e$1a65eeb0$0301a8c0@HAL9005> References: <4dd71a0c0803201155o3ecf57aekca28c56ca726372a@mail.gmail.com> <29f585dd0803201347h5bda4a05g714f61d6cdd0964e@mail.gmail.com> <4dd71a0c0803201708i6f70be2fx3e970958b7afaf19@mail.gmail.com> <29f585dd0803202030pe7283c0t3675625698d178fd@mail.gmail.com> <017d01c88b0e$1a65eeb0$0301a8c0@HAL9005> Message-ID: <29f585dd0803202148g54cff743g7c7893b970be8a0d@mail.gmail.com> Guilty as charged, Rocky -- me and them. On 3/20/08, Rocky Smolin at Beach Access Software wrote: > > Provincial: having or showing the manners, viewpoints, etc., considered > characteristic of unsophisticated inhabitants of a province; rustic; > narrow > or illiberal; parochial. > > Rocky > > > > > > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller > Sent: Thursday, March 20, 2008 8:30 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Customizing 2007's Navigation Pane > > On that score, Doug, I have no rebuttal. I myself am doing an app for the > provincial government currently, and they insist on 800 resolution. When > was > the last time anyone you know used that resolution? Wow. So while I'm > writing it, I put my 22" flat screen monitor into that resolution LOL. I > can > get really drunk and sit on the other side of the room and still read it > clearly! O well. Your tax dollars at work. They also have another funny > policy which is that I am only allowed to work 7.5 hours a day. Well, > that's > just not in my nature. So I said, I typically work more, I don't want > overtime, but can't I bill 12 hours a day and do the thing faster? No. > 7.5hours a day max. So then I work my own hours (this is a remote job), > and > then slice the time sheet accordingly, so in this virtual universe it's > technically April 2, not March 20. Go figure. > > And there isn't a chance in hell they'd go for the nav panel. That would > be > way too radical. Besides, at 800 resolution there wouldn't be much room > for > anything else on the screen at the same time. > > A. > > > On 3/20/08, Doug Steele wrote: > > > > Hi Arthur: > > > > Thanks for the comment, and I'm not insulted. I'd be the first person > > to admit that I've spent very little time exploring the new features > > of the Nav Pane, and I expect that, as time passes, I'll get more > > comfortable with it as a tool. It's going to be a while, though. > > Even if the Nav Pane can provide a generally improved navigation > > experience, getting my clients to pay me for changing the look and > > feel of their existing, perfectly functional, databases will be an > > arduous process. > > > > Thanks, > > Doug Steele > > > -- > 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. > Version: 7.5.519 / Virus Database: 269.21.8/1337 - Release Date: 3/20/2008 > 8:10 PM > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From rockysmolin at bchacc.com Fri Mar 21 00:23:55 2008 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Thu, 20 Mar 2008 22:23:55 -0700 Subject: [AccessD] Friday musings In-Reply-To: <29f585dd0803202139p4b4ac806md0897ffff8d544dc@mail.gmail.com> References: <29f585dd0803202139p4b4ac806md0897ffff8d544dc@mail.gmail.com> Message-ID: <019b01c88b13$c26641a0$0301a8c0@HAL9005> I think it's a springtime, renewal, fertility thing. Indiscriminate sex, unbridled reproduction, etc. Do the phrase multiplying like rabbits strike a familiar note? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Thursday, March 20, 2008 9:39 PM To: Access Developers discussion and problem solving Subject: [AccessD] Friday musings Since it's about to become Good Friday, I once again muse about the symbology inherent in this weekend -- not the Christian part of it, which is fairly easy to comprehend, but the Easter Bunny part. I don't know the history of this add-in, but I do find it curious. This alleged benign bunny distributes chocolate and pure sugar eggs to millions of children. All right, bunny rabbits, last time I turned one upside down, don't lay eggs. Therefore they must steal them. Millions of chickens victimized annually (presumably only certain chickens can lay chocolate or pure sugar eggs, which makes the crime even worse). Robbed of their progeny. And if that isn't enough, the Easter Bunny doesn't just give his booty away, but hides it, forcing the children to hunt and search for the booty, thereby compromising their integrity twofold. >From whence hath this tradition emerged? Was it purely a marketing scam >by the drug dealers known as chocolate|sugar manufacturers? How long have these drug dealers been able to purvey their wares, while the constabulary turns a blind eye? A. -- 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. Version: 7.5.519 / Virus Database: 269.21.8/1337 - Release Date: 3/20/2008 8:10 PM From rockysmolin at bchacc.com Fri Mar 21 00:24:34 2008 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Thu, 20 Mar 2008 22:24:34 -0700 Subject: [AccessD] Customizing 2007's Navigation Pane In-Reply-To: <29f585dd0803202148g54cff743g7c7893b970be8a0d@mail.gmail.com> References: <4dd71a0c0803201155o3ecf57aekca28c56ca726372a@mail.gmail.com><29f585dd0803201347h5bda4a05g714f61d6cdd0964e@mail.gmail.com><4dd71a0c0803201708i6f70be2fx3e970958b7afaf19@mail.gmail.com><29f585dd0803202030pe7283c0t3675625698d178fd@mail.gmail.com><017d01c88b0e$1a65eeb0$0301a8c0@HAL9005> <29f585dd0803202148g54cff743g7c7893b970be8a0d@mail.gmail.com> Message-ID: <019c01c88b13$d99e0330$0301a8c0@HAL9005> On you it has a certain charm. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Thursday, March 20, 2008 9:48 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Customizing 2007's Navigation Pane Guilty as charged, Rocky -- me and them. On 3/20/08, Rocky Smolin at Beach Access Software wrote: > > Provincial: having or showing the manners, viewpoints, etc., > considered characteristic of unsophisticated inhabitants of a > province; rustic; narrow or illiberal; parochial. > > Rocky > > > > > > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur > Fuller > Sent: Thursday, March 20, 2008 8:30 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Customizing 2007's Navigation Pane > > On that score, Doug, I have no rebuttal. I myself am doing an app for > the provincial government currently, and they insist on 800 > resolution. When was the last time anyone you know used that > resolution? Wow. So while I'm writing it, I put my 22" flat screen > monitor into that resolution LOL. I can get really drunk and sit on > the other side of the room and still read it clearly! O well. Your tax > dollars at work. They also have another funny policy which is that I > am only allowed to work 7.5 hours a day. Well, that's just not in my > nature. So I said, I typically work more, I don't want overtime, but > can't I bill 12 hours a day and do the thing faster? No. > 7.5hours a day max. So then I work my own hours (this is a remote > job), and then slice the time sheet accordingly, so in this virtual > universe it's technically April 2, not March 20. Go figure. > > And there isn't a chance in hell they'd go for the nav panel. That > would be way too radical. Besides, at 800 resolution there wouldn't be > much room for anything else on the screen at the same time. > > A. > > > On 3/20/08, Doug Steele wrote: > > > > Hi Arthur: > > > > Thanks for the comment, and I'm not insulted. I'd be the first > > person to admit that I've spent very little time exploring the new > > features of the Nav Pane, and I expect that, as time passes, I'll > > get more comfortable with it as a tool. It's going to be a while, though. > > Even if the Nav Pane can provide a generally improved navigation > > experience, getting my clients to pay me for changing the look and > > feel of their existing, perfectly functional, databases will be an > > arduous process. > > > > Thanks, > > Doug Steele > > > -- > 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. > Version: 7.5.519 / Virus Database: 269.21.8/1337 - Release Date: > 3/20/2008 8:10 PM > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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. Version: 7.5.519 / Virus Database: 269.21.8/1337 - Release Date: 3/20/2008 8:10 PM From adtp at airtelmail.in Fri Mar 21 00:53:23 2008 From: adtp at airtelmail.in (A.D.Tejpal) Date: Fri, 21 Mar 2008 11:23:23 +0530 Subject: [AccessD] Rocky's new Book References: <0F978DF74B416B44A351B9143EB0FD33046E3F54@MUKPBCC1XMB0103.collab.barclayscorp.com> Message-ID: <370801c88b17$f600b7d0$e957a27a@personald6374f> Heartiest congratulations Rocky! Writing a book requires special effort and I wish you all success. I would also like to compliment the other authors in this forum, for their achievements in this area. Best wishes, A.D.Tejpal ------------ ----- Original Message ----- From: Jim Lawrence To: 'Access Developers discussion and problem solving' ; dba-sqlserver at databaseadvisors.com Sent: Friday, March 21, 2008 00:10 Subject: [AccessD] Rocky's new Book Hi All: Rocky has a new book on how to develop an application into a product. See description and link on the DBA web site at http://www.DatabaseAdvisors.com and/or link to Apress books at http://www.apress.com/book/view/1590599713 Jim From max.wanadoo at gmail.com Fri Mar 21 02:15:25 2008 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Fri, 21 Mar 2008 07:15:25 -0000 Subject: [AccessD] OT:Backup and Restore Complete PCs In-Reply-To: <370801c88b17$f600b7d0$e957a27a@personald6374f> References: <0F978DF74B416B44A351B9143EB0FD33046E3F54@MUKPBCC1XMB0103.collab.barclayscorp.com> <370801c88b17$f600b7d0$e957a27a@personald6374f> Message-ID: <000a01c88b23$57377e70$8119fea9@LTVM> Dear List, Can anybody offer a solution. Last week I had a complete PC Crash which resulted in having to purchase a new PC. Data is backed up ok. However all the setting, updates, personalization etc has gone out of the window. Had to reinstall apps, download all updates, etc, etc. Re-install all printers. I am sure you will get the picture. It still isn't back to where it was. I need some sort of software/hardware fix so that if this happens again (not just for me but for anybody) then the "Fix" will restore the new PC exactly as the Broken PC and take into account the fact that the *hardware is different.* *hardware is different.* Herein lies the rub. If I use an IMAGE then it does just that - which include all hardware settings, OS setting, Registry setting etc. I cannot restore an IMAGE to a new PC which may have a completely different hardware configuration. Likewise, just backing up everything will not work because a Restore will overwrite the new PC installed setting/directories etc. I need something which works like, say, PCMover. But PCMover expects the PC being restored to, to be the one it was backed up from! I need to move "the stuff" to the standby PC. Ditch the broken PC. Set up a new PC. Restore "the stuff" from the standby PC. "The Stuff" to include *everything* not related to the physical PC. Printer drivers, apps, data, etc. Any solutions, ideas, pointers? Thanks Max From andy at minstersystems.co.uk Fri Mar 21 02:33:43 2008 From: andy at minstersystems.co.uk (Andy Lacey) Date: Fri, 21 Mar 2008 07:33:43 -0000 Subject: [AccessD] Rocky's new Book In-Reply-To: <370801c88b17$f600b7d0$e957a27a@personald6374f> Message-ID: <016e01c88b25$e462cc30$25e2d355@minster33c3r25> Yea, congratulations Rocky. A great achievement. -- Andy Lacey http://www.minstersystems.co.uk >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of A.D.Tejpal >Sent: 21 March 2008 05:53 >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Rocky's new Book > > > Heartiest congratulations Rocky! Writing a book requires >special effort and I wish you all success. > > I would also like to compliment the other authors in this >forum, for their achievements in this area. > >Best wishes, >A.D.Tejpal >------------ > > ----- Original Message ----- > From: Jim Lawrence > To: 'Access Developers discussion and problem solving' ; >dba-sqlserver at databaseadvisors.com > Sent: Friday, March 21, 2008 00:10 > Subject: [AccessD] Rocky's new Book > > > Hi All: > > Rocky has a new book on how to develop an application into a >product. See > description and link on the DBA web site at >http://www.DatabaseAdvisors.com > and/or link to Apress books at >http://www.apress.com/book/view/1590599713 > > Jim >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > From Gustav at cactus.dk Fri Mar 21 05:58:04 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 21 Mar 2008 11:58:04 +0100 Subject: [AccessD] OT:Backup and Restore Complete PCs Message-ID: Hi Max One interesting option is to use the free VMware Converter to copy a physical machine to a virtual machine from time to time. That way you can have your "machine" up an running on any other decent hardware - not at full specs, of course, but identical with all applications, passwords, and settings. /gustav >>> max.wanadoo at gmail.com 21-03-2008 08:15 >>> Dear List, Can anybody offer a solution. Last week I had a complete PC Crash which resulted in having to purchase a new PC. Data is backed up ok. However all the setting, updates, personalization etc has gone out of the window. Had to reinstall apps, download all updates, etc, etc. Re-install all printers. I am sure you will get the picture. It still isn't back to where it was. I need some sort of software/hardware fix so that if this happens again (not just for me but for anybody) then the "Fix" will restore the new PC exactly as the Broken PC and take into account the fact that the *hardware is different.* *hardware is different.* Herein lies the rub. If I use an IMAGE then it does just that - which include all hardware settings, OS setting, Registry setting etc. I cannot restore an IMAGE to a new PC which may have a completely different hardware configuration. Likewise, just backing up everything will not work because a Restore will overwrite the new PC installed setting/directories etc. I need something which works like, say, PCMover. But PCMover expects the PC being restored to, to be the one it was backed up from! I need to move "the stuff" to the standby PC. Ditch the broken PC. Set up a new PC. Restore "the stuff" from the standby PC. "The Stuff" to include *everything* not related to the physical PC. Printer drivers, apps, data, etc. Any solutions, ideas, pointers? Thanks Max From Gustav at cactus.dk Fri Mar 21 06:09:31 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 21 Mar 2008 12:09:31 +0100 Subject: [AccessD] OT:Backup and Restore Complete PCs Message-ID: Hi Max Forgot the link: http://www.vmware.com/products/converter/ >>> Gustav at cactus.dk 21-03-2008 11:58 >>> Hi Max One interesting option is to use the free VMware Converter to copy a physical machine to a virtual machine from time to time. That way you can have your "machine" up an running on any other decent hardware - not at full specs, of course, but identical with all applications, passwords, and settings. /gustav From max.wanadoo at gmail.com Fri Mar 21 07:55:03 2008 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Fri, 21 Mar 2008 12:55:03 -0000 Subject: [AccessD] OT:Backup and Restore Complete PCs In-Reply-To: References: Message-ID: <004701c88b52$c9738770$8119fea9@LTVM> Gustav, I could kiss you! That sounds really great. I have read the details on the site but what I am a bit uncertain about is how do I get the details out of the remote virtual machine copy back onto the NEW PC once I have set it up? Ta Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, March 21, 2008 11:10 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] OT:Backup and Restore Complete PCs Hi Max Forgot the link: http://www.vmware.com/products/converter/ >>> Gustav at cactus.dk 21-03-2008 11:58 >>> Hi Max One interesting option is to use the free VMware Converter to copy a physical machine to a virtual machine from time to time. That way you can have your "machine" up an running on any other decent hardware - not at full specs, of course, but identical with all applications, passwords, and settings. /gustav -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Fri Mar 21 08:23:51 2008 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 21 Mar 2008 09:23:51 -0400 Subject: [AccessD] OT:Backup and Restore Complete PCs In-Reply-To: <004701c88b52$c9738770$8119fea9@LTVM> References: <004701c88b52$c9738770$8119fea9@LTVM> Message-ID: <000d01c88b56$cdf78c20$0201a8c0@M90> You don't. What you do is always run a virtual machine. When the current machine crashes, install the VMWare server software on the new machine, copy the virtual machine to the new hardware and launch the virtual machine. Voila, you are running your "old system". 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 Max Wanadoo Sent: Friday, March 21, 2008 8:55 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT:Backup and Restore Complete PCs Gustav, I could kiss you! That sounds really great. I have read the details on the site but what I am a bit uncertain about is how do I get the details out of the remote virtual machine copy back onto the NEW PC once I have set it up? Ta Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, March 21, 2008 11:10 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] OT:Backup and Restore Complete PCs Hi Max Forgot the link: http://www.vmware.com/products/converter/ >>> Gustav at cactus.dk 21-03-2008 11:58 >>> Hi Max One interesting option is to use the free VMware Converter to copy a physical machine to a virtual machine from time to time. That way you can have your "machine" up an running on any other decent hardware - not at full specs, of course, but identical with all applications, passwords, and settings. /gustav -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Fri Mar 21 08:30:02 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 21 Mar 2008 14:30:02 +0100 Subject: [AccessD] OT:Backup and Restore Complete PCs Message-ID: Hi Max Well, if you have your physical machine repaired, a simple Windows backup from the virtual machine to the physical should do it. However, if you wish to establish a new machine (different hardware), Windows backup may fail if the hardware isn't nearly identical. One option to copy your old apps etc. is offered by good ol' Laplink: PCmover: http://www.laplink.com/pcmover I believe several similar tools, even free, exists but this one is capable of moving your data (quoting): "across a network, Laplink USB cable, Laplink parallel cable, Windows Easy Transfer Cable, or any type of removable media that can be read by both PCs". The only catch appears to be that the license (though not very costly) is for one transfer session only. /gustav >>> max.wanadoo at gmail.com 21-03-2008 13:55 >>> Gustav, I could kiss you! That sounds really great. I have read the details on the site but what I am a bit uncertain about is how do I get the details out of the remote virtual machine copy back onto the NEW PC once I have set it up? Ta Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, March 21, 2008 11:10 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] OT:Backup and Restore Complete PCs Hi Max Forgot the link: http://www.vmware.com/products/converter/ >>> Gustav at cactus.dk 21-03-2008 11:58 >>> Hi Max One interesting option is to use the free VMware Converter to copy a physical machine to a virtual machine from time to time. That way you can have your "machine" up an running on any other decent hardware - not at full specs, of course, but identical with all applications, passwords, and settings. /gustav From zora_db at yahoo.com Fri Mar 21 08:38:03 2008 From: zora_db at yahoo.com (Roz Clarke) Date: Fri, 21 Mar 2008 06:38:03 -0700 (PDT) Subject: [AccessD] Friday musings Message-ID: <125324.99910.qm@web50111.mail.re2.yahoo.com> It's all in the name. 'Easter' is derived from the Germanic goddess Ostara or Eostre (who also gives us 'oestregen') - far from being an add-in, it predates Christianity by centuries. It is a celebration of the Spring Equinox (and fertility rites are obviously associated with spring). Some people report that Eostre was symbolised or accompanied by a rabbit or a hare, and there is a story that it was orginally a bird that she transformed into an egg-laying rabbit. The Wikipedia entry on Easter claims Easter eggs are evidence of secularisation, but I'm tempted to call them out on it - the entry on the Easter Bunny is more balanced. http://en.wikipedia.org/wiki/Easter_Bunny ----- Original Message ---- From: Rocky Smolin at Beach Access Software To: Access Developers discussion and problem solving Sent: Friday, 21 March, 2008 5:23:55 AM Subject: Re: [AccessD] Friday musings I think it's a springtime, renewal, fertility thing. Indiscriminate sex, unbridled reproduction, etc. Do the phrase multiplying like rabbits strike a familiar note? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Thursday, March 20, 2008 9:39 PM To: Access Developers discussion and problem solving Subject: [AccessD] Friday musings Since it's about to become Good Friday, I once again muse about the symbology inherent in this weekend -- not the Christian part of it, which is fairly easy to comprehend, but the Easter Bunny part. I don't know the history of this add-in, but I do find it curious. This alleged benign bunny distributes chocolate and pure sugar eggs to millions of children. All right, bunny rabbits, last time I turned one upside down, don't lay eggs. Therefore they must steal them. Millions of chickens victimized annually (presumably only certain chickens can lay chocolate or pure sugar eggs, which makes the crime even worse). Robbed of their progeny. And if that isn't enough, the Easter Bunny doesn't just give his booty away, but hides it, forcing the children to hunt and search for the booty, thereby compromising their integrity twofold. >From whence hath this tradition emerged? Was it purely a marketing scam >by the drug dealers known as chocolate|sugar manufacturers? How long have these drug dealers been able to purvey their wares, while the constabulary turns a blind eye? A. -- 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. Version: 7.5.519 / Virus Database: 269.21.8/1337 - Release Date: 3/20/2008 8:10 PM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com __________________________________________________________ Sent from Yahoo! Mail. More Ways to Keep in Touch. http://uk.docs.yahoo.com/nowyoucan.html From jwcolby at colbyconsulting.com Fri Mar 21 08:38:55 2008 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 21 Mar 2008 09:38:55 -0400 Subject: [AccessD] OT:Backup and Restore Complete PCs In-Reply-To: References: Message-ID: <000301c88b58$eb2fa410$0201a8c0@M90> Gustav, I have tried many times to get the converter and for whatever reason I cannot. Would it be possible for you to get that file and send it to me? 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: Friday, March 21, 2008 7:10 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] OT:Backup and Restore Complete PCs Hi Max Forgot the link: http://www.vmware.com/products/converter/ >>> Gustav at cactus.dk 21-03-2008 11:58 >>> Hi Max One interesting option is to use the free VMware Converter to copy a physical machine to a virtual machine from time to time. That way you can have your "machine" up an running on any other decent hardware - not at full specs, of course, but identical with all applications, passwords, and settings. /gustav -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Fri Mar 21 08:41:59 2008 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 21 Mar 2008 09:41:59 -0400 Subject: [AccessD] OT:Backup and Restore Complete PCs In-Reply-To: References: Message-ID: <000401c88b59$5674bb20$0201a8c0@M90> Never mind Gustav, it seems that I can do it this time. 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: Friday, March 21, 2008 7:10 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] OT:Backup and Restore Complete PCs Hi Max Forgot the link: http://www.vmware.com/products/converter/ >>> Gustav at cactus.dk 21-03-2008 11:58 >>> Hi Max One interesting option is to use the free VMware Converter to copy a physical machine to a virtual machine from time to time. That way you can have your "machine" up an running on any other decent hardware - not at full specs, of course, but identical with all applications, passwords, and settings. /gustav -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Fri Mar 21 10:24:05 2008 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 21 Mar 2008 08:24:05 -0700 Subject: [AccessD] Friday musings In-Reply-To: <019b01c88b13$c26641a0$0301a8c0@HAL9005> References: <29f585dd0803202139p4b4ac806md0897ffff8d544dc@mail.gmail.com> <019b01c88b13$c26641a0$0301a8c0@HAL9005> Message-ID: Gosh, Rocky, I didn't even know rabbits could COUNT!! LOL Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Thursday, March 20, 2008 10:24 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Friday musings I think it's a springtime, renewal, fertility thing. Indiscriminate sex, unbridled reproduction, etc. Do the phrase multiplying like rabbits strike a familiar note? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Thursday, March 20, 2008 9:39 PM To: Access Developers discussion and problem solving Subject: [AccessD] Friday musings Since it's about to become Good Friday, I once again muse about the symbology inherent in this weekend -- not the Christian part of it, which is fairly easy to comprehend, but the Easter Bunny part. I don't know the history of this add-in, but I do find it curious. This alleged benign bunny distributes chocolate and pure sugar eggs to millions of children. All right, bunny rabbits, last time I turned one upside down, don't lay eggs. Therefore they must steal them. Millions of chickens victimized annually (presumably only certain chickens can lay chocolate or pure sugar eggs, which makes the crime even worse). Robbed of their progeny. And if that isn't enough, the Easter Bunny doesn't just give his booty away, but hides it, forcing the children to hunt and search for the booty, thereby compromising their integrity twofold. >From whence hath this tradition emerged? Was it purely a marketing scam >by the drug dealers known as chocolate|sugar manufacturers? How long have these drug dealers been able to purvey their wares, while the constabulary turns a blind eye? A. -- 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. Version: 7.5.519 / Virus Database: 269.21.8/1337 - Release Date: 3/20/2008 8:10 PM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Fri Mar 21 10:27:34 2008 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 21 Mar 2008 08:27:34 -0700 Subject: [AccessD] OT:Backup and Restore Complete PCs In-Reply-To: <000a01c88b23$57377e70$8119fea9@LTVM> References: <0F978DF74B416B44A351B9143EB0FD33046E3F54@MUKPBCC1XMB0103.collab.barclayscorp.com><370801c88b17$f600b7d0$e957a27a@personald6374f> <000a01c88b23$57377e70$8119fea9@LTVM> Message-ID: Another option is a product like Acronis TrueImage or Norton Ghost, which create images that can be restored to another machine, settings and all. I never had any luck with Norton but the Acronis product is one I like very much. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Friday, March 21, 2008 12:15 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] OT:Backup and Restore Complete PCs Dear List, Can anybody offer a solution. Last week I had a complete PC Crash which resulted in having to purchase a new PC. Data is backed up ok. However all the setting, updates, personalization etc has gone out of the window. Had to reinstall apps, download all updates, etc, etc. Re-install all printers. I am sure you will get the picture. It still isn't back to where it was. I need some sort of software/hardware fix so that if this happens again (not just for me but for anybody) then the "Fix" will restore the new PC exactly as the Broken PC and take into account the fact that the *hardware is different.* *hardware is different.* Herein lies the rub. If I use an IMAGE then it does just that - which include all hardware settings, OS setting, Registry setting etc. I cannot restore an IMAGE to a new PC which may have a completely different hardware configuration. Likewise, just backing up everything will not work because a Restore will overwrite the new PC installed setting/directories etc. I need something which works like, say, PCMover. But PCMover expects the PC being restored to, to be the one it was backed up from! I need to move "the stuff" to the standby PC. Ditch the broken PC. Set up a new PC. Restore "the stuff" from the standby PC. "The Stuff" to include *everything* not related to the physical PC. Printer drivers, apps, data, etc. Any solutions, ideas, pointers? Thanks Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Fri Mar 21 11:22:56 2008 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Fri, 21 Mar 2008 16:22:56 -0000 Subject: [AccessD] OT:Backup and Restore Complete PCs In-Reply-To: <000d01c88b56$cdf78c20$0201a8c0@M90> References: <004701c88b52$c9738770$8119fea9@LTVM> <000d01c88b56$cdf78c20$0201a8c0@M90> Message-ID: <006501c88b6f$d3dfa820$8119fea9@LTVM> Oh right, I think I see now. 1. install VMWare on the remote backup PC. 2. install VMWare on the working PCs. 3. Do a backup of each working PC onto the remote backup PC. Repeat this periodically. 4. Run all working PCs using the VMWare software every day as if it was the normal (direct) system. 5. If a new PC is obtained, install VMWare on it and the recover from the remote backup PC. 6. Continue at step 4. Have I understood that ok? Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, March 21, 2008 1:24 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT:Backup and Restore Complete PCs You don't. What you do is always run a virtual machine. When the current machine crashes, install the VMWare server software on the new machine, copy the virtual machine to the new hardware and launch the virtual machine. Voila, you are running your "old system". 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 Max Wanadoo Sent: Friday, March 21, 2008 8:55 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT:Backup and Restore Complete PCs Gustav, I could kiss you! That sounds really great. I have read the details on the site but what I am a bit uncertain about is how do I get the details out of the remote virtual machine copy back onto the NEW PC once I have set it up? Ta Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, March 21, 2008 11:10 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] OT:Backup and Restore Complete PCs Hi Max Forgot the link: http://www.vmware.com/products/converter/ >>> Gustav at cactus.dk 21-03-2008 11:58 >>> Hi Max One interesting option is to use the free VMware Converter to copy a physical machine to a virtual machine from time to time. That way you can have your "machine" up an running on any other decent hardware - not at full specs, of course, but identical with all applications, passwords, and settings. /gustav -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Fri Mar 21 11:22:56 2008 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Fri, 21 Mar 2008 16:22:56 -0000 Subject: [AccessD] OT:Backup and Restore Complete PCs In-Reply-To: References: <0F978DF74B416B44A351B9143EB0FD33046E3F54@MUKPBCC1XMB0103.collab.barclayscorp.com><370801c88b17$f600b7d0$e957a27a@personald6374f><000a01c88b23$57377e70$8119fea9@LTVM> Message-ID: <006701c88b6f$d65c40e0$8119fea9@LTVM> No Charlotte, these are not suitable because the create "IMAGES" of the Disk which includes the hardware setting. If you reinstall them onto a PC with a completely different hardware configuration then the OS will complain bitterly when you boot it. The Registry will be wrong, motherboard, chipset etc, etc. Thanks anyway Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, March 21, 2008 3:28 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT:Backup and Restore Complete PCs Another option is a product like Acronis TrueImage or Norton Ghost, which create images that can be restored to another machine, settings and all. I never had any luck with Norton but the Acronis product is one I like very much. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Friday, March 21, 2008 12:15 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] OT:Backup and Restore Complete PCs Dear List, Can anybody offer a solution. Last week I had a complete PC Crash which resulted in having to purchase a new PC. Data is backed up ok. However all the setting, updates, personalization etc has gone out of the window. Had to reinstall apps, download all updates, etc, etc. Re-install all printers. I am sure you will get the picture. It still isn't back to where it was. I need some sort of software/hardware fix so that if this happens again (not just for me but for anybody) then the "Fix" will restore the new PC exactly as the Broken PC and take into account the fact that the *hardware is different.* *hardware is different.* Herein lies the rub. If I use an IMAGE then it does just that - which include all hardware settings, OS setting, Registry setting etc. I cannot restore an IMAGE to a new PC which may have a completely different hardware configuration. Likewise, just backing up everything will not work because a Restore will overwrite the new PC installed setting/directories etc. I need something which works like, say, PCMover. But PCMover expects the PC being restored to, to be the one it was backed up from! I need to move "the stuff" to the standby PC. Ditch the broken PC. Set up a new PC. Restore "the stuff" from the standby PC. "The Stuff" to include *everything* not related to the physical PC. Printer drivers, apps, data, etc. Any solutions, ideas, pointers? Thanks Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Fri Mar 21 11:22:56 2008 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Fri, 21 Mar 2008 16:22:56 -0000 Subject: [AccessD] OT:Backup and Restore Complete PCs In-Reply-To: References: Message-ID: <006601c88b6f$d5586570$8119fea9@LTVM> No Gustav, these won't work because they *expect* to be restoring to the same hardware platform that they came from. In the case of a NEW PC this will not be the case. Most PCs fail after 3-5 years (or people wish to replace at that stage) and the hardware has moved on. In my case the Power unit blew the motherboard and the CPU. A new PC has a completely different configuration. PCMover, Ghost, Image writers, etc just don't cut the mustard. Ta Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, March 21, 2008 1:30 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] OT:Backup and Restore Complete PCs Hi Max Well, if you have your physical machine repaired, a simple Windows backup from the virtual machine to the physical should do it. However, if you wish to establish a new machine (different hardware), Windows backup may fail if the hardware isn't nearly identical. One option to copy your old apps etc. is offered by good ol' Laplink: PCmover: http://www.laplink.com/pcmover I believe several similar tools, even free, exists but this one is capable of moving your data (quoting): "across a network, Laplink USB cable, Laplink parallel cable, Windows Easy Transfer Cable, or any type of removable media that can be read by both PCs". The only catch appears to be that the license (though not very costly) is for one transfer session only. /gustav >>> max.wanadoo at gmail.com 21-03-2008 13:55 >>> Gustav, I could kiss you! That sounds really great. I have read the details on the site but what I am a bit uncertain about is how do I get the details out of the remote virtual machine copy back onto the NEW PC once I have set it up? Ta Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, March 21, 2008 11:10 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] OT:Backup and Restore Complete PCs Hi Max Forgot the link: http://www.vmware.com/products/converter/ >>> Gustav at cactus.dk 21-03-2008 11:58 >>> Hi Max One interesting option is to use the free VMware Converter to copy a physical machine to a virtual machine from time to time. That way you can have your "machine" up an running on any other decent hardware - not at full specs, of course, but identical with all applications, passwords, and settings. /gustav -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Fri Mar 21 12:07:56 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 21 Mar 2008 18:07:56 +0100 Subject: [AccessD] OT:Backup and Restore Complete PCs Message-ID: Hi Max True, changing hardware represents a challenge where a normal backup is of limited use. But isn't it exactly where PCmover differs from the "image" products? I'm not advocating this product in any way, just noticed it has a different approach. /gustav >>> max.wanadoo at gmail.com 21-03-2008 17:22 >>> No Gustav, these won't work because they *expect* to be restoring to the same hardware platform that they came from. In the case of a NEW PC this will not be the case. Most PCs fail after 3-5 years (or people wish to replace at that stage) and the hardware has moved on. In my case the Power unit blew the motherboard and the CPU. A new PC has a completely different configuration. PCMover, Ghost, Image writers, etc just don't cut the mustard. Ta Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, March 21, 2008 1:30 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] OT:Backup and Restore Complete PCs Hi Max Well, if you have your physical machine repaired, a simple Windows backup from the virtual machine to the physical should do it. However, if you wish to establish a new machine (different hardware), Windows backup may fail if the hardware isn't nearly identical. One option to copy your old apps etc. is offered by good ol' Laplink: PCmover: http://www.laplink.com/pcmover I believe several similar tools, even free, exists but this one is capable of moving your data (quoting): "across a network, Laplink USB cable, Laplink parallel cable, Windows Easy Transfer Cable, or any type of removable media that can be read by both PCs". The only catch appears to be that the license (though not very costly) is for one transfer session only. /gustav >>> max.wanadoo at gmail.com 21-03-2008 13:55 >>> Gustav, I could kiss you! That sounds really great. I have read the details on the site but what I am a bit uncertain about is how do I get the details out of the remote virtual machine copy back onto the NEW PC once I have set it up? Ta Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, March 21, 2008 11:10 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] OT:Backup and Restore Complete PCs Hi Max Forgot the link: http://www.vmware.com/products/converter/ >>> Gustav at cactus.dk 21-03-2008 11:58 >>> Hi Max One interesting option is to use the free VMware Converter to copy a physical machine to a virtual machine from time to time. That way you can have your "machine" up an running on any other decent hardware - not at full specs, of course, but identical with all applications, passwords, and settings. /gustav From bill_patten at embarqmail.com Fri Mar 21 12:09:13 2008 From: bill_patten at embarqmail.com (Bill Patten) Date: Fri, 21 Mar 2008 10:09:13 -0700 Subject: [AccessD] OT:Backup and Restore Complete PCs In-Reply-To: <006601c88b6f$d5586570$8119fea9@LTVM> References: <006601c88b6f$d5586570$8119fea9@LTVM> Message-ID: <8E755F453C3941F0903F3C07CA86F541@BPCS> Max, You might take a look at Acronis Echo Workstation with Universal Restore module. It is design to do what you are asking for. I have not used it myself but a friend of mine has and it worked for him. http://www.acronis.com/enterprise/products/ATICW/ Bill ----- Original Message ----- From: "Max Wanadoo" To: "'Access Developers discussion and problem solving'" Sent: Friday, March 21, 2008 9:22 AM Subject: Re: [AccessD] OT:Backup and Restore Complete PCs No Gustav, these won't work because they *expect* to be restoring to the same hardware platform that they came from. In the case of a NEW PC this will not be the case. Most PCs fail after 3-5 years (or people wish to replace at that stage) and the hardware has moved on. In my case the Power unit blew the motherboard and the CPU. A new PC has a completely different configuration. PCMover, Ghost, Image writers, etc just don't cut the mustard. Ta Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, March 21, 2008 1:30 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] OT:Backup and Restore Complete PCs Hi Max Well, if you have your physical machine repaired, a simple Windows backup from the virtual machine to the physical should do it. However, if you wish to establish a new machine (different hardware), Windows backup may fail if the hardware isn't nearly identical. One option to copy your old apps etc. is offered by good ol' Laplink: PCmover: http://www.laplink.com/pcmover I believe several similar tools, even free, exists but this one is capable of moving your data (quoting): "across a network, Laplink USB cable, Laplink parallel cable, Windows Easy Transfer Cable, or any type of removable media that can be read by both PCs". The only catch appears to be that the license (though not very costly) is for one transfer session only. /gustav >>> max.wanadoo at gmail.com 21-03-2008 13:55 >>> Gustav, I could kiss you! That sounds really great. I have read the details on the site but what I am a bit uncertain about is how do I get the details out of the remote virtual machine copy back onto the NEW PC once I have set it up? Ta Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, March 21, 2008 11:10 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] OT:Backup and Restore Complete PCs Hi Max Forgot the link: http://www.vmware.com/products/converter/ >>> Gustav at cactus.dk 21-03-2008 11:58 >>> Hi Max One interesting option is to use the free VMware Converter to copy a physical machine to a virtual machine from time to time. That way you can have your "machine" up an running on any other decent hardware - not at full specs, of course, but identical with all applications, passwords, and settings. /gustav -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Fri Mar 21 13:56:47 2008 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 21 Mar 2008 14:56:47 -0400 Subject: [AccessD] OT:Backup and Restore Complete PCs In-Reply-To: <006501c88b6f$d3dfa820$8119fea9@LTVM> References: <004701c88b52$c9738770$8119fea9@LTVM><000d01c88b56$cdf78c20$0201a8c0@M90> <006501c88b6f$d3dfa820$8119fea9@LTVM> Message-ID: <001d01c88b85$5172d310$0201a8c0@M90> That is what I mean. To "backup" AFAIK all you have to do is to copy the directory itself that contains the virtual machine files. And of course to restore, or even just to move to another machine entirely, just copy that same directory. The host machine obviously has to have VMWare server running on it (to run VMWare virtual machines). Now, to backup the INSIDE of the virtual machine you would need to do regular old backup from the running virtual machine. This method has some ups and downs. The ups are that you can literally move your machine to ANY other machine that has enough disk space to hold the VM files. Disk space is an important gotcha, however a fairly minor one. In fact the VM can run on a Linux host machine, or a Windows XP host, or a Windows server host etc. My understanding is that a Linux machine is actually the most efficient simply because it uses the fewest resources for the host, the smallest memory footprint, the least unnecessary junk etc. I for one would LIKE to go with a Linux host but am very hesitant to do so because of the familiarity issue. One other thing to keep in mind is that a VM has horrendous graphics because it emulates a very basic graphics controller. No 3D stuff etc. Games simply will not run on these virtual machines. But for doing your normal office / web browsing and even development stuff they are fine. Their overhead is amazingly minimal. And, you can run several VMs at once with sufficient host hardware and memory and a small enough VM Memory requirement. I have a fairly powerful server which runs a quad core processor and 8 gigs of RAM. I run Windows 2003 x64 on that machine and it will host two very powerful VMs simultaneously. Which does bring up another limitation of VMs however, that being that with VMWare VMs you can only assign two cores to the VM. With the windows stuff I believe you can only assign a single core. I am amazed and impressed with VMs and what they can be used for. In fact today I am looking at getting my laptop moved to a VM, then reinstalling XP onto the laptop and running my current environment inside of a VM from now on. To take my laptop as an example, it has a dual core processor and 2 gigs of RAM and a 120 gig hard drive. I could throw the entire machine into a VM with a 100g "virtual drive", and then run it on the same laptop running a very basic XP install. The 100g VM drive would fit in the 120g real drive, leaving about 20 gigs for the basic XP install. I could probably assign 2 cores and 1.5 gigs of ram to the VM, leaving .5 gigs to the host XP system. That is a pretty powerful system even inside of the VM. OTOH If I ever need to send the laptop in to be fixed I could copy off the VM onto my big server and run "my laptop" on the server with 4 gigs of ram and dual cores, leaving 4 gigs to the host to run the SQL Server instance I have running on it etc. BTW, each machine gets an IP address and can be seen on the internal network as a real machine. If you are running XP Pro you could remote desktop in to a VM running on the server from any other machine on the network. This gives you a great deal of flexibility on how to control your systems. I have a client who is looking at distributing a database using two virtual machines, pre setup "at the factory". Have a VM running a database FE and a VM running a database BE. The FE virtual machines can be delivered already set up, the Be machine already having SQL Server lite or MySQL or an MDB set up and functioning. The FE then has everything needed to run it. Drop the two VMs on a machine and "link" the FE application to the database running on the BE VM. This allows him to make changes to the FE VM and ship that new VM to the client. The BE is embedded in a BE VM and is not touched by him. To the network ADMIN it looks like two new machines on the network. Cool stuff really. 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 Max Wanadoo Sent: Friday, March 21, 2008 12:23 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT:Backup and Restore Complete PCs Oh right, I think I see now. 1. install VMWare on the remote backup PC. 2. install VMWare on the working PCs. 3. Do a backup of each working PC onto the remote backup PC. Repeat this periodically. 4. Run all working PCs using the VMWare software every day as if it was the normal (direct) system. 5. If a new PC is obtained, install VMWare on it and the recover from the remote backup PC. 6. Continue at step 4. Have I understood that ok? Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, March 21, 2008 1:24 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT:Backup and Restore Complete PCs You don't. What you do is always run a virtual machine. When the current machine crashes, install the VMWare server software on the new machine, copy the virtual machine to the new hardware and launch the virtual machine. Voila, you are running your "old system". 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 Max Wanadoo Sent: Friday, March 21, 2008 8:55 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT:Backup and Restore Complete PCs Gustav, I could kiss you! That sounds really great. I have read the details on the site but what I am a bit uncertain about is how do I get the details out of the remote virtual machine copy back onto the NEW PC once I have set it up? Ta Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, March 21, 2008 11:10 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] OT:Backup and Restore Complete PCs Hi Max Forgot the link: http://www.vmware.com/products/converter/ >>> Gustav at cactus.dk 21-03-2008 11:58 >>> Hi Max One interesting option is to use the free VMware Converter to copy a physical machine to a virtual machine from time to time. That way you can have your "machine" up an running on any other decent hardware - not at full specs, of course, but identical with all applications, passwords, and settings. /gustav -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Fri Mar 21 15:55:01 2008 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 21 Mar 2008 16:55:01 -0400 Subject: [AccessD] OT:Backup and Restore Complete PCs In-Reply-To: <004701c88b52$c9738770$8119fea9@LTVM> References: <004701c88b52$c9738770$8119fea9@LTVM> Message-ID: <000301c88b95$d6955d00$0201a8c0@M90> Max, Google "files and settings transfer wizard" John W. Colby Colby Consulting www.ColbyConsulting.com From max.wanadoo at gmail.com Fri Mar 21 16:27:41 2008 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Fri, 21 Mar 2008 21:27:41 -0000 Subject: [AccessD] OT:Backup and Restore Complete PCs In-Reply-To: <001d01c88b85$5172d310$0201a8c0@M90> References: <004701c88b52$c9738770$8119fea9@LTVM><000d01c88b56$cdf78c20$0201a8c0@M90><006501c88b6f$d3dfa820$8119fea9@LTVM> <001d01c88b85$5172d310$0201a8c0@M90> Message-ID: <001201c88b9a$66443670$8119fea9@LTVM> >>Cool stuff really. Absolutely brilliant actually! I must try to get my head around all of this. The pointer that Bill Patten sent is also an apparent solution as it restores to "bare bones" hardware. My pal is off sick at the moment but when he returns I will give him everything that you, Gustav, Bill and others have posted and ask him to spend some time looking them over. I will post my decision in due course and hope that I never again have to go through the difficulties of the past few weeks. Thanks all for your help Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, March 21, 2008 6:57 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT:Backup and Restore Complete PCs That is what I mean. To "backup" AFAIK all you have to do is to copy the directory itself that contains the virtual machine files. And of course to restore, or even just to move to another machine entirely, just copy that same directory. The host machine obviously has to have VMWare server running on it (to run VMWare virtual machines). Now, to backup the INSIDE of the virtual machine you would need to do regular old backup from the running virtual machine. This method has some ups and downs. The ups are that you can literally move your machine to ANY other machine that has enough disk space to hold the VM files. Disk space is an important gotcha, however a fairly minor one. In fact the VM can run on a Linux host machine, or a Windows XP host, or a Windows server host etc. My understanding is that a Linux machine is actually the most efficient simply because it uses the fewest resources for the host, the smallest memory footprint, the least unnecessary junk etc. I for one would LIKE to go with a Linux host but am very hesitant to do so because of the familiarity issue. One other thing to keep in mind is that a VM has horrendous graphics because it emulates a very basic graphics controller. No 3D stuff etc. Games simply will not run on these virtual machines. But for doing your normal office / web browsing and even development stuff they are fine. Their overhead is amazingly minimal. And, you can run several VMs at once with sufficient host hardware and memory and a small enough VM Memory requirement. I have a fairly powerful server which runs a quad core processor and 8 gigs of RAM. I run Windows 2003 x64 on that machine and it will host two very powerful VMs simultaneously. Which does bring up another limitation of VMs however, that being that with VMWare VMs you can only assign two cores to the VM. With the windows stuff I believe you can only assign a single core. I am amazed and impressed with VMs and what they can be used for. In fact today I am looking at getting my laptop moved to a VM, then reinstalling XP onto the laptop and running my current environment inside of a VM from now on. To take my laptop as an example, it has a dual core processor and 2 gigs of RAM and a 120 gig hard drive. I could throw the entire machine into a VM with a 100g "virtual drive", and then run it on the same laptop running a very basic XP install. The 100g VM drive would fit in the 120g real drive, leaving about 20 gigs for the basic XP install. I could probably assign 2 cores and 1.5 gigs of ram to the VM, leaving .5 gigs to the host XP system. That is a pretty powerful system even inside of the VM. OTOH If I ever need to send the laptop in to be fixed I could copy off the VM onto my big server and run "my laptop" on the server with 4 gigs of ram and dual cores, leaving 4 gigs to the host to run the SQL Server instance I have running on it etc. BTW, each machine gets an IP address and can be seen on the internal network as a real machine. If you are running XP Pro you could remote desktop in to a VM running on the server from any other machine on the network. This gives you a great deal of flexibility on how to control your systems. I have a client who is looking at distributing a database using two virtual machines, pre setup "at the factory". Have a VM running a database FE and a VM running a database BE. The FE virtual machines can be delivered already set up, the Be machine already having SQL Server lite or MySQL or an MDB set up and functioning. The FE then has everything needed to run it. Drop the two VMs on a machine and "link" the FE application to the database running on the BE VM. This allows him to make changes to the FE VM and ship that new VM to the client. The BE is embedded in a BE VM and is not touched by him. To the network ADMIN it looks like two new machines on the network. Cool stuff really. 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 Max Wanadoo Sent: Friday, March 21, 2008 12:23 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT:Backup and Restore Complete PCs Oh right, I think I see now. 1. install VMWare on the remote backup PC. 2. install VMWare on the working PCs. 3. Do a backup of each working PC onto the remote backup PC. Repeat this periodically. 4. Run all working PCs using the VMWare software every day as if it was the normal (direct) system. 5. If a new PC is obtained, install VMWare on it and the recover from the remote backup PC. 6. Continue at step 4. Have I understood that ok? Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, March 21, 2008 1:24 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT:Backup and Restore Complete PCs You don't. What you do is always run a virtual machine. When the current machine crashes, install the VMWare server software on the new machine, copy the virtual machine to the new hardware and launch the virtual machine. Voila, you are running your "old system". 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 Max Wanadoo Sent: Friday, March 21, 2008 8:55 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT:Backup and Restore Complete PCs Gustav, I could kiss you! That sounds really great. I have read the details on the site but what I am a bit uncertain about is how do I get the details out of the remote virtual machine copy back onto the NEW PC once I have set it up? Ta Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, March 21, 2008 11:10 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] OT:Backup and Restore Complete PCs Hi Max Forgot the link: http://www.vmware.com/products/converter/ >>> Gustav at cactus.dk 21-03-2008 11:58 >>> Hi Max One interesting option is to use the free VMware Converter to copy a physical machine to a virtual machine from time to time. That way you can have your "machine" up an running on any other decent hardware - not at full specs, of course, but identical with all applications, passwords, and settings. /gustav -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Fri Mar 21 16:31:52 2008 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Fri, 21 Mar 2008 21:31:52 -0000 Subject: [AccessD] OT:Backup and Restore Complete PCs In-Reply-To: <000301c88b95$d6955d00$0201a8c0@M90> References: <004701c88b52$c9738770$8119fea9@LTVM> <000301c88b95$d6955d00$0201a8c0@M90> Message-ID: <001301c88b9a$fb9835a0$8119fea9@LTVM> Yes, I have already done that John. That solution is no good because of the hardware issues. I had also looked at many solutions offered by various vendors before posting my request on The List. None met the bill. They were all restoring to the same physical architecture not a new machine with different physical attributes and configurations. But, once again, the List comes up with solutions! I will go with either the VM or Acronis solution as posted in my previous email. Many thanks to you all. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, March 21, 2008 8:55 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT:Backup and Restore Complete PCs Max, Google "files and settings transfer wizard" 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 robert at servicexp.com Fri Mar 21 17:09:23 2008 From: robert at servicexp.com (Robert) Date: Fri, 21 Mar 2008 18:09:23 -0400 Subject: [AccessD] Closing & Destroying Objects In-Reply-To: <001301c88b9a$fb9835a0$8119fea9@LTVM> References: <004701c88b52$c9738770$8119fea9@LTVM> <000301c88b95$d6955d00$0201a8c0@M90> <001301c88b9a$fb9835a0$8119fea9@LTVM> Message-ID: <000001c88ba0$38e9be10$aabd3a30$@com> Hello Group, I have a question about how to close an object correctly.. Dim rstWOS As DAO.Recordset Set rstWOS = db.OpenRecordset("qryServicesNavigator", dbOpenDynaset, dbInconsistent) I do a findfirst on rstWOS which I pass to another form. Like such.. DoCmd.OpenForm "frmMsgboxWODelete", , , , , acHidden With Form_frmMsgboxWODelete .CallingForm = "Calander" .RN = EventRN Set .rst = rstWOS .Visible = True End With In the form it's a property Private m_objRst As DAO.Recordset Public Property Set rst(objRst As DAO.Recordset) Set m_objRst = objRst End Property Where do I Properly close and destroy the recordset, in the first or the second or both? I'm thinking that I need to destroy it on the first, as if I destroy it on second via: Private Sub Form_Unload(Cancel As Integer) If Not m_objRst Is Nothing Then m_objRst.Close Set m_objRst = Nothing End If End Sub Then I get some very strange problems trying to destroy in on the first.. Like and Error 3420 Oject Invalid or No Longer Set Via: (because the recordset is already closed??) If Not rstWOS Is Nothing Then rstWOS.Close Set rstWOS = Nothing End If TIA... WBR Robert From jwcolby at colbyconsulting.com Fri Mar 21 18:12:28 2008 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 21 Mar 2008 19:12:28 -0400 Subject: [AccessD] Closing & Destroying Objects In-Reply-To: <000001c88ba0$38e9be10$aabd3a30$@com> References: <004701c88b52$c9738770$8119fea9@LTVM> <000301c88b95$d6955d00$0201a8c0@M90><001301c88b9a$fb9835a0$8119fea9@LTVM> <000001c88ba0$38e9be10$aabd3a30$@com> Message-ID: <000001c88ba9$096ef660$0201a8c0@M90> You need to set pointers to nothing EVERYWHERE. You need to close before setting pointers to nothing in the last place that the recordset is used. 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 Robert Sent: Friday, March 21, 2008 6:09 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Closing & Destroying Objects Hello Group, I have a question about how to close an object correctly.. Dim rstWOS As DAO.Recordset Set rstWOS = db.OpenRecordset("qryServicesNavigator", dbOpenDynaset, dbInconsistent) I do a findfirst on rstWOS which I pass to another form. Like such.. DoCmd.OpenForm "frmMsgboxWODelete", , , , , acHidden With Form_frmMsgboxWODelete .CallingForm = "Calander" .RN = EventRN Set .rst = rstWOS .Visible = True End With In the form it's a property Private m_objRst As DAO.Recordset Public Property Set rst(objRst As DAO.Recordset) Set m_objRst = objRst End Property Where do I Properly close and destroy the recordset, in the first or the second or both? I'm thinking that I need to destroy it on the first, as if I destroy it on second via: Private Sub Form_Unload(Cancel As Integer) If Not m_objRst Is Nothing Then m_objRst.Close Set m_objRst = Nothing End If End Sub Then I get some very strange problems trying to destroy in on the first.. Like and Error 3420 Oject Invalid or No Longer Set Via: (because the recordset is already closed??) If Not rstWOS Is Nothing Then rstWOS.Close Set rstWOS = Nothing End If TIA... WBR Robert -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From robert at servicexp.com Fri Mar 21 19:48:30 2008 From: robert at servicexp.com (Robert) Date: Fri, 21 Mar 2008 20:48:30 -0400 Subject: [AccessD] Closing & Destroying Objects In-Reply-To: <000001c88ba9$096ef660$0201a8c0@M90> References: <004701c88b52$c9738770$8119fea9@LTVM> <000301c88b95$d6955d00$0201a8c0@M90><001301c88b9a$fb9835a0$8119fea9@LTVM> <000001c88ba0$38e9be10$aabd3a30$@com> <000001c88ba9$096ef660$0201a8c0@M90> Message-ID: <000701c88bb6$73c99a80$5b5ccf80$@com> John, Thank you... How do you find the cause of setting a class to nothing, and the Class_Terminate sub not running.. I'm assuming something is still open within the class, but just can't see it.. Set qbc = Nothing Does not cause the Class_Terminate() sub to run.. Thanks Again. WBR Robert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, March 21, 2008 7:12 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Closing & Destroying Objects You need to set pointers to nothing EVERYWHERE. You need to close before setting pointers to nothing in the last place that the recordset is used. 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 Robert Sent: Friday, March 21, 2008 6:09 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Closing & Destroying Objects Hello Group, I have a question about how to close an object correctly.. Dim rstWOS As DAO.Recordset Set rstWOS = db.OpenRecordset("qryServicesNavigator", dbOpenDynaset, dbInconsistent) I do a findfirst on rstWOS which I pass to another form. Like such.. DoCmd.OpenForm "frmMsgboxWODelete", , , , , acHidden With Form_frmMsgboxWODelete .CallingForm = "Calander" .RN = EventRN Set .rst = rstWOS .Visible = True End With In the form it's a property Private m_objRst As DAO.Recordset Public Property Set rst(objRst As DAO.Recordset) Set m_objRst = objRst End Property Where do I Properly close and destroy the recordset, in the first or the second or both? I'm thinking that I need to destroy it on the first, as if I destroy it on second via: Private Sub Form_Unload(Cancel As Integer) If Not m_objRst Is Nothing Then m_objRst.Close Set m_objRst = Nothing End If End Sub Then I get some very strange problems trying to destroy in on the first.. Like and Error 3420 Oject Invalid or No Longer Set Via: (because the recordset is already closed??) If Not rstWOS Is Nothing Then rstWOS.Close Set rstWOS = Nothing End If TIA... WBR Robert -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Fri Mar 21 21:15:42 2008 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 21 Mar 2008 22:15:42 -0400 Subject: [AccessD] Closing & Destroying Objects In-Reply-To: <000701c88bb6$73c99a80$5b5ccf80$@com> References: <004701c88b52$c9738770$8119fea9@LTVM> <000301c88b95$d6955d00$0201a8c0@M90><001301c88b9a$fb9835a0$8119fea9@LTVM> <000001c88ba0$38e9be10$aabd3a30$@com><000001c88ba9$096ef660$0201a8c0@M90> <000701c88bb6$73c99a80$5b5ccf80$@com> Message-ID: <000301c88bc2$a26edd30$0201a8c0@M90> Class_Terminate not running means the class is not closing. The class does not close because there is still a reference to the class somewhere. The last reference to the class being set to nothing causes the VBA garbage collector to shut it down and destroy the instance, returning the memory to the pool. The only time I have ever seen something inside the class from preventing shutdown is when the class references itself. This technique is used to hold an instance open without an external pointer to the class, and this is usually only used for multiple instances of forms. If a class references itself (holds itself open) then it has to be capable of setting its self reference to nothing. Something has to trigger that or the class will never close. Again this is very rare though. More than likely you have several pointers to the class and one of them is not being set to nothing. Every single pointer to the class has to be set to nothing. The _Terminate will fire whenever that last pointer is set to nothing. 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 Robert Sent: Friday, March 21, 2008 8:48 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Closing & Destroying Objects John, Thank you... How do you find the cause of setting a class to nothing, and the Class_Terminate sub not running.. I'm assuming something is still open within the class, but just can't see it.. Set qbc = Nothing Does not cause the Class_Terminate() sub to run.. Thanks Again. WBR Robert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, March 21, 2008 7:12 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Closing & Destroying Objects You need to set pointers to nothing EVERYWHERE. You need to close before setting pointers to nothing in the last place that the recordset is used. 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 Robert Sent: Friday, March 21, 2008 6:09 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Closing & Destroying Objects Hello Group, I have a question about how to close an object correctly.. Dim rstWOS As DAO.Recordset Set rstWOS = db.OpenRecordset("qryServicesNavigator", dbOpenDynaset, dbInconsistent) I do a findfirst on rstWOS which I pass to another form. Like such.. DoCmd.OpenForm "frmMsgboxWODelete", , , , , acHidden With Form_frmMsgboxWODelete .CallingForm = "Calander" .RN = EventRN Set .rst = rstWOS .Visible = True End With In the form it's a property Private m_objRst As DAO.Recordset Public Property Set rst(objRst As DAO.Recordset) Set m_objRst = objRst End Property Where do I Properly close and destroy the recordset, in the first or the second or both? I'm thinking that I need to destroy it on the first, as if I destroy it on second via: Private Sub Form_Unload(Cancel As Integer) If Not m_objRst Is Nothing Then m_objRst.Close Set m_objRst = Nothing End If End Sub Then I get some very strange problems trying to destroy in on the first.. Like and Error 3420 Oject Invalid or No Longer Set Via: (because the recordset is already closed??) If Not rstWOS Is Nothing Then rstWOS.Close Set rstWOS = Nothing End If TIA... WBR Robert -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From robert at servicexp.com Sat Mar 22 08:14:29 2008 From: robert at servicexp.com (Robert) Date: Sat, 22 Mar 2008 09:14:29 -0400 Subject: [AccessD] Closing & Destroying Objects In-Reply-To: <000301c88bc2$a26edd30$0201a8c0@M90> References: <004701c88b52$c9738770$8119fea9@LTVM> <000301c88b95$d6955d00$0201a8c0@M90><001301c88b9a$fb9835a0$8119fea9@LTVM> <000001c88ba0$38e9be10$aabd3a30$@com><000001c88ba9$096ef660$0201a8c0@M90> <000701c88bb6$73c99a80$5b5ccf80$@com> <000301c88bc2$a26edd30$0201a8c0@M90> Message-ID: <000701c88c1e$a9de12f0$fd9a38d0$@com> John, Thank you, I'm, generally very careful about closing and destroying created objects, but I got lazy or absent minded and end up with a very well hidden un-destroyed class holding the main class open. I finally found it... Again Thanks for your help.... WBR Robert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, March 21, 2008 10:16 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Closing & Destroying Objects Class_Terminate not running means the class is not closing. The class does not close because there is still a reference to the class somewhere. The last reference to the class being set to nothing causes the VBA garbage collector to shut it down and destroy the instance, returning the memory to the pool. The only time I have ever seen something inside the class from preventing shutdown is when the class references itself. This technique is used to hold an instance open without an external pointer to the class, and this is usually only used for multiple instances of forms. If a class references itself (holds itself open) then it has to be capable of setting its self reference to nothing. Something has to trigger that or the class will never close. Again this is very rare though. More than likely you have several pointers to the class and one of them is not being set to nothing. Every single pointer to the class has to be set to nothing. The _Terminate will fire whenever that last pointer is set to nothing. 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 Robert Sent: Friday, March 21, 2008 8:48 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Closing & Destroying Objects John, Thank you... How do you find the cause of setting a class to nothing, and the Class_Terminate sub not running.. I'm assuming something is still open within the class, but just can't see it.. Set qbc = Nothing Does not cause the Class_Terminate() sub to run.. Thanks Again. WBR Robert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, March 21, 2008 7:12 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Closing & Destroying Objects You need to set pointers to nothing EVERYWHERE. You need to close before setting pointers to nothing in the last place that the recordset is used. 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 Robert Sent: Friday, March 21, 2008 6:09 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Closing & Destroying Objects Hello Group, I have a question about how to close an object correctly.. Dim rstWOS As DAO.Recordset Set rstWOS = db.OpenRecordset("qryServicesNavigator", dbOpenDynaset, dbInconsistent) I do a findfirst on rstWOS which I pass to another form. Like such.. DoCmd.OpenForm "frmMsgboxWODelete", , , , , acHidden With Form_frmMsgboxWODelete .CallingForm = "Calander" .RN = EventRN Set .rst = rstWOS .Visible = True End With In the form it's a property Private m_objRst As DAO.Recordset Public Property Set rst(objRst As DAO.Recordset) Set m_objRst = objRst End Property Where do I Properly close and destroy the recordset, in the first or the second or both? I'm thinking that I need to destroy it on the first, as if I destroy it on second via: Private Sub Form_Unload(Cancel As Integer) If Not m_objRst Is Nothing Then m_objRst.Close Set m_objRst = Nothing End If End Sub Then I get some very strange problems trying to destroy in on the first.. Like and Error 3420 Oject Invalid or No Longer Set Via: (because the recordset is already closed??) If Not rstWOS Is Nothing Then rstWOS.Close Set rstWOS = Nothing End If TIA... WBR Robert -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Sat Mar 22 08:37:23 2008 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 22 Mar 2008 09:37:23 -0400 Subject: [AccessD] Closing & Destroying Objects In-Reply-To: <000701c88c1e$a9de12f0$fd9a38d0$@com> References: <004701c88b52$c9738770$8119fea9@LTVM> <000301c88b95$d6955d00$0201a8c0@M90><001301c88b9a$fb9835a0$8119fea9@LTVM> <000001c88ba0$38e9be10$aabd3a30$@com><000001c88ba9$096ef660$0201a8c0@M90> <000701c88bb6$73c99a80$5b5ccf80$@com><000301c88bc2$a26edd30$0201a8c0@M90> <000701c88c1e$a9de12f0$fd9a38d0$@com> Message-ID: <000d01c88c21$dc7406e0$0201a8c0@M90> Always welcome! 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 Robert Sent: Saturday, March 22, 2008 9:14 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Closing & Destroying Objects John, Thank you, I'm, generally very careful about closing and destroying created objects, but I got lazy or absent minded and end up with a very well hidden un-destroyed class holding the main class open. I finally found it... Again Thanks for your help.... WBR Robert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, March 21, 2008 10:16 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Closing & Destroying Objects Class_Terminate not running means the class is not closing. The class does not close because there is still a reference to the class somewhere. The last reference to the class being set to nothing causes the VBA garbage collector to shut it down and destroy the instance, returning the memory to the pool. The only time I have ever seen something inside the class from preventing shutdown is when the class references itself. This technique is used to hold an instance open without an external pointer to the class, and this is usually only used for multiple instances of forms. If a class references itself (holds itself open) then it has to be capable of setting its self reference to nothing. Something has to trigger that or the class will never close. Again this is very rare though. More than likely you have several pointers to the class and one of them is not being set to nothing. Every single pointer to the class has to be set to nothing. The _Terminate will fire whenever that last pointer is set to nothing. 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 Robert Sent: Friday, March 21, 2008 8:48 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Closing & Destroying Objects John, Thank you... How do you find the cause of setting a class to nothing, and the Class_Terminate sub not running.. I'm assuming something is still open within the class, but just can't see it.. Set qbc = Nothing Does not cause the Class_Terminate() sub to run.. Thanks Again. WBR Robert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, March 21, 2008 7:12 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Closing & Destroying Objects You need to set pointers to nothing EVERYWHERE. You need to close before setting pointers to nothing in the last place that the recordset is used. 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 Robert Sent: Friday, March 21, 2008 6:09 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Closing & Destroying Objects Hello Group, I have a question about how to close an object correctly.. Dim rstWOS As DAO.Recordset Set rstWOS = db.OpenRecordset("qryServicesNavigator", dbOpenDynaset, dbInconsistent) I do a findfirst on rstWOS which I pass to another form. Like such.. DoCmd.OpenForm "frmMsgboxWODelete", , , , , acHidden With Form_frmMsgboxWODelete .CallingForm = "Calander" .RN = EventRN Set .rst = rstWOS .Visible = True End With In the form it's a property Private m_objRst As DAO.Recordset Public Property Set rst(objRst As DAO.Recordset) Set m_objRst = objRst End Property Where do I Properly close and destroy the recordset, in the first or the second or both? I'm thinking that I need to destroy it on the first, as if I destroy it on second via: Private Sub Form_Unload(Cancel As Integer) If Not m_objRst Is Nothing Then m_objRst.Close Set m_objRst = Nothing End If End Sub Then I get some very strange problems trying to destroy in on the first.. Like and Error 3420 Oject Invalid or No Longer Set Via: (because the recordset is already closed??) If Not rstWOS Is Nothing Then rstWOS.Close Set rstWOS = Nothing End If TIA... WBR Robert -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Sat Mar 22 16:14:56 2008 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 22 Mar 2008 17:14:56 -0400 Subject: [AccessD] Treat string as array Message-ID: <001601c88c61$c7b6c720$0201a8c0@M90> How can I turn a string into an array? I need to iterate through the characters of a string. For each char in str dosomething char Next char John W. Colby Colby Consulting www.ColbyConsulting.com From fuller.artful at gmail.com Sat Mar 22 16:41:26 2008 From: fuller.artful at gmail.com (Arthur Fuller) Date: Sat, 22 Mar 2008 17:41:26 -0400 Subject: [AccessD] Treat string as array In-Reply-To: <001601c88c61$c7b6c720$0201a8c0@M90> References: <001601c88c61$c7b6c720$0201a8c0@M90> Message-ID: <29f585dd0803221441l699c90ffy52fe71080cf5301@mail.gmail.com> Forgive me, el maestro de los classes, but I would have thought this a no-brainer for you. Write a class with some methods that walk the string accordingly, like Next and Previous (should you need that one) and so on. Encapsulate the mechanics of SubStr() and you're there. No? And here I deemed you a godlike being regarding classes! Turns out you bleed just like the rest of us. Go figure. I can already see this class, thanks to your teachings, and those also of Shamil. Init walks the string, the other guys deal with the resultant array. Granted, Split() looks for a delimiter, which in this case we do not have, but we can walk the string instead, no? After that, it's cheesecake. A. On 3/22/08, jwcolby wrote: > > How can I turn a string into an array? I need to iterate through the > characters of a string. > > For each char in str > dosomething char > Next char > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > From jwcolby at colbyconsulting.com Sat Mar 22 16:57:34 2008 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 22 Mar 2008 17:57:34 -0400 Subject: [AccessD] Treat string as array In-Reply-To: <29f585dd0803221441l699c90ffy52fe71080cf5301@mail.gmail.com> References: <001601c88c61$c7b6c720$0201a8c0@M90> <29f585dd0803221441l699c90ffy52fe71080cf5301@mail.gmail.com> Message-ID: <001901c88c67$bcd42900$0201a8c0@M90> Well yea. Uhh... sure. I thought I was asking a syntax question. Given strCompanyName Colby Consulting I need an array of: C o l b y C o n s u l t i n g It is exactly that piece that I do not know how to do elegantly. Oh sure I can do the Mid() function N times but that is inelegant. I thought perhaps there would be a single SomeKeyWord(strCompanyName) that would return an array of the characters in the strCompanyName. I really don't work with arrays that much and so I am much less godly in that area. 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 Arthur Fuller Sent: Saturday, March 22, 2008 5:41 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Treat string as array Forgive me, el maestro de los classes, but I would have thought this a no-brainer for you. Write a class with some methods that walk the string accordingly, like Next and Previous (should you need that one) and so on. Encapsulate the mechanics of SubStr() and you're there. No? And here I deemed you a godlike being regarding classes! Turns out you bleed just like the rest of us. Go figure. I can already see this class, thanks to your teachings, and those also of Shamil. Init walks the string, the other guys deal with the resultant array. Granted, Split() looks for a delimiter, which in this case we do not have, but we can walk the string instead, no? After that, it's cheesecake. A. On 3/22/08, jwcolby wrote: > > How can I turn a string into an array? I need to iterate through the > characters of a string. > > For each char in str > dosomething char > Next char > > 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 rockysmolin at bchacc.com Sat Mar 22 17:15:05 2008 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Sat, 22 Mar 2008 15:15:05 -0700 Subject: [AccessD] Treat string as array In-Reply-To: <29f585dd0803221441l699c90ffy52fe71080cf5301@mail.gmail.com> References: <001601c88c61$c7b6c720$0201a8c0@M90> <29f585dd0803221441l699c90ffy52fe71080cf5301@mail.gmail.com> Message-ID: <004b01c88c6a$2ec87410$0301a8c0@HAL9005> What do you need that you don't get from MID? Rocky > > How can I turn a string into an array? I need to iterate through the > characters of a string. > > For each char in str > dosomething char > Next char > > 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 No virus found in this incoming message. Checked by AVG. Version: 7.5.519 / Virus Database: 269.21.8/1338 - Release Date: 3/21/2008 5:52 PM From jwcolby at colbyconsulting.com Sat Mar 22 17:30:01 2008 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 22 Mar 2008 18:30:01 -0400 Subject: [AccessD] Treat string as array In-Reply-To: <004b01c88c6a$2ec87410$0301a8c0@HAL9005> References: <001601c88c61$c7b6c720$0201a8c0@M90><29f585dd0803221441l699c90ffy52fe71080cf5301@mail.gmail.com> <004b01c88c6a$2ec87410$0301a8c0@HAL9005> Message-ID: <001a01c88c6c$4522bc00$0201a8c0@M90> A for next iterator. Dim varChar as variant For each varChar in arrSomeStr Do something with varChar Next varChar Much cleaner than Dim IntPtr Dim varChar as variant for intPtr <=len(strSomeStr) varChar = mid(strsomestr,intprt,1) So something with VarChar next intprt They both work but... Strings are just pointers to an memory location on the heap. Turning a string into an array of characters SHOULD be a function call, optimized in assembler to be blindingly fast. 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 Rocky Smolin at Beach Access Software Sent: Saturday, March 22, 2008 6:15 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Treat string as array What do you need that you don't get from MID? Rocky > > How can I turn a string into an array? I need to iterate through the > characters of a string. > > For each char in str > dosomething char > Next char > > 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 No virus found in this incoming message. Checked by AVG. Version: 7.5.519 / Virus Database: 269.21.8/1338 - Release Date: 3/21/2008 5:52 PM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From fuller.artful at gmail.com Sat Mar 22 18:02:25 2008 From: fuller.artful at gmail.com (Arthur Fuller) Date: Sat, 22 Mar 2008 19:02:25 -0400 Subject: [AccessD] Treat string as array In-Reply-To: <001a01c88c6c$4522bc00$0201a8c0@M90> References: <001601c88c61$c7b6c720$0201a8c0@M90> <29f585dd0803221441l699c90ffy52fe71080cf5301@mail.gmail.com> <004b01c88c6a$2ec87410$0301a8c0@HAL9005> <001a01c88c6c$4522bc00$0201a8c0@M90> Message-ID: <29f585dd0803221602l5ac3f4b1uc796cd9b1fef4b87@mail.gmail.com> In C this would be a cinch, but in Access we're way higher than that. But let me think on this for a bit. I'm sure there's a way to cut through the high-level giftwrap and do what you want. Back soon on this. A. On 3/22/08, jwcolby wrote: > > A for next iterator. > > Dim varChar as variant > For each varChar in arrSomeStr > Do something with varChar > Next varChar > > Much cleaner than > > Dim IntPtr > Dim varChar as variant > for intPtr <=len(strSomeStr) > varChar = mid(strsomestr,intprt,1) > So something with VarChar > next intprt > > They both work but... > > Strings are just pointers to an memory location on the heap. Turning a > string into an array of characters SHOULD be a function call, optimized in > assembler to be blindingly fast. > > From joe at anamericanjoe.us Sat Mar 22 18:06:03 2008 From: joe at anamericanjoe.us (Joe Hecht) Date: Sat, 22 Mar 2008 16:06:03 -0700 Subject: [AccessD] SignagePro Page Message-ID: <000001c88c71$4de8e1c0$6401a8c0@ACER2G> As of 4:04 PM that page is not displaying properly. Joe Hecht Joe at anamericanjoe.us From joe at anamericanjoe.us Sat Mar 22 18:07:34 2008 From: joe at anamericanjoe.us (Joe Hecht) Date: Sat, 22 Mar 2008 16:07:34 -0700 Subject: [AccessD] SignagePro Page In-Reply-To: <000001c88c71$4de8e1c0$6401a8c0@ACER2G> References: <000001c88c71$4de8e1c0$6401a8c0@ACER2G> Message-ID: <000501c88c71$83e86de0$6401a8c0@ACER2G> Sorry wrong address Joe Hecht Joe at anamericanjoe.us -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Saturday, March 22, 2008 4:06 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] SignagePro Page As of 4:04 PM that page is not displaying properly. Joe Hecht Joe at anamericanjoe.us -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Sat Mar 22 19:10:43 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Sun, 23 Mar 2008 01:10:43 +0100 Subject: [AccessD] Treat string as array Message-ID: Hi John Have you forgotten how to read a file into a byte array? It is so easy as it hurts: Public Function aTest(strA As String) Dim abytTest() As Byte Dim intChar As Integer abytTest = strConv(strA, vbFromUnicode) For intChar = LBound(abytTest) To UBound(abytTest) Debug.Print abytTest(intChar); Next Debug.Print For intChar = LBound(abytTest) To UBound(abytTest) Debug.Print Chr(abytTest(intChar)); Next End Function /gustav >>> jwcolby at colbyconsulting.com 22-03-2008 22:14:56 >>> How can I turn a string into an array? I need to iterate through the characters of a string. For each char in str dosomething char Next char John W. Colby Colby Consulting www.ColbyConsulting.com From wdhindman at dejpolsystems.com Sat Mar 22 19:46:43 2008 From: wdhindman at dejpolsystems.com (William Hindman) Date: Sat, 22 Mar 2008 20:46:43 -0400 Subject: [AccessD] Treat string as array References: <001601c88c61$c7b6c720$0201a8c0@M90><29f585dd0803221441l699c90ffy52fe71080cf5301@mail.gmail.com><004b01c88c6a$2ec87410$0301a8c0@HAL9005> <001a01c88c6c$4522bc00$0201a8c0@M90> Message-ID: <002b01c88c7f$5d9d1510$fe786c4c@jisshowsbs.local> ...Split() ...works in 2k+ ...hth William ----- Original Message ----- From: "jwcolby" To: "'Access Developers discussion and problem solving'" Sent: Saturday, March 22, 2008 6:30 PM Subject: Re: [AccessD] Treat string as array >A for next iterator. > > Dim varChar as variant > For each varChar in arrSomeStr > Do something with varChar > Next varChar > > Much cleaner than > > Dim IntPtr > Dim varChar as variant > for intPtr <=len(strSomeStr) > varChar = mid(strsomestr,intprt,1) > So something with VarChar > next intprt > > They both work but... > > Strings are just pointers to an memory location on the heap. Turning a > string into an array of characters SHOULD be a function call, optimized in > assembler to be blindingly fast. > > 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 Rocky Smolin at > Beach Access Software > Sent: Saturday, March 22, 2008 6:15 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Treat string as array > > > What do you need that you don't get from MID? > > Rocky > >> >> How can I turn a string into an array? I need to iterate through the >> characters of a string. >> >> For each char in str >> dosomething char >> Next char >> >> 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 > > No virus found in this incoming message. > Checked by AVG. > Version: 7.5.519 / Virus Database: 269.21.8/1338 - Release Date: 3/21/2008 > 5:52 PM > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jwcolby at colbyconsulting.com Sat Mar 22 21:00:28 2008 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 22 Mar 2008 22:00:28 -0400 Subject: [AccessD] Treat string as array In-Reply-To: <002b01c88c7f$5d9d1510$fe786c4c@jisshowsbs.local> References: <001601c88c61$c7b6c720$0201a8c0@M90><29f585dd0803221441l699c90ffy52fe71080cf5301@mail.gmail.com><004b01c88c6a$2ec87410$0301a8c0@HAL9005><001a01c88c6c$4522bc00$0201a8c0@M90> <002b01c88c7f$5d9d1510$fe786c4c@jisshowsbs.local> Message-ID: <001c01c88c89$ab54aac0$0201a8c0@M90> Split only works when the string contains "words" or delimited strings. It does nothing if it is all one big string of characters. 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: Saturday, March 22, 2008 8:47 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Treat string as array ...Split() ...works in 2k+ ...hth William ----- Original Message ----- From: "jwcolby" To: "'Access Developers discussion and problem solving'" Sent: Saturday, March 22, 2008 6:30 PM Subject: Re: [AccessD] Treat string as array >A for next iterator. > > Dim varChar as variant > For each varChar in arrSomeStr > Do something with varChar > Next varChar > > Much cleaner than > > Dim IntPtr > Dim varChar as variant > for intPtr <=len(strSomeStr) > varChar = mid(strsomestr,intprt,1) > So something with VarChar > next intprt > > They both work but... > > Strings are just pointers to an memory location on the heap. Turning a > string into an array of characters SHOULD be a function call, optimized in > assembler to be blindingly fast. > > 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 Rocky Smolin at > Beach Access Software > Sent: Saturday, March 22, 2008 6:15 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Treat string as array > > > What do you need that you don't get from MID? > > Rocky > >> >> How can I turn a string into an array? I need to iterate through the >> characters of a string. >> >> For each char in str >> dosomething char >> Next char >> >> 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 > > No virus found in this incoming message. > Checked by AVG. > Version: 7.5.519 / Virus Database: 269.21.8/1338 - Release Date: 3/21/2008 > 5:52 PM > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Mar 23 00:56:28 2008 From: wdhindman at dejpolsystems.com (William Hindman) Date: Sun, 23 Mar 2008 01:56:28 -0400 Subject: [AccessD] Treat string as array References: <001601c88c61$c7b6c720$0201a8c0@M90><29f585dd0803221441l699c90ffy52fe71080cf5301@mail.gmail.com><004b01c88c6a$2ec87410$0301a8c0@HAL9005><001a01c88c6c$4522bc00$0201a8c0@M90><002b01c88c7f$5d9d1510$fe786c4c@jisshowsbs.local> <001c01c88c89$ab54aac0$0201a8c0@M90> Message-ID: <001b01c88caa$a38e4c80$fe786c4c@jisshowsbs.local> ...ah so ...I missed the spaces in your "C o l b y C o n s u l t i n g" example :( ...so how about: Dim strColby as String Dim ByteArray() As Byte strColby = "Colby Consulting" ByteArray() = strColby William ----- Original Message ----- From: "jwcolby" To: "'Access Developers discussion and problem solving'" Sent: Saturday, March 22, 2008 10:00 PM Subject: Re: [AccessD] Treat string as array > Split only works when the string contains "words" or delimited strings. > It > does nothing if it is all one big string of characters. > > > 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: Saturday, March 22, 2008 8:47 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Treat string as array > > ...Split() > ...works in 2k+ > ...hth > > William > > ----- Original Message ----- > From: "jwcolby" > To: "'Access Developers discussion and problem solving'" > > Sent: Saturday, March 22, 2008 6:30 PM > Subject: Re: [AccessD] Treat string as array > > >>A for next iterator. >> >> Dim varChar as variant >> For each varChar in arrSomeStr >> Do something with varChar >> Next varChar >> >> Much cleaner than >> >> Dim IntPtr >> Dim varChar as variant >> for intPtr <=len(strSomeStr) >> varChar = mid(strsomestr,intprt,1) >> So something with VarChar >> next intprt >> >> They both work but... >> >> Strings are just pointers to an memory location on the heap. Turning a >> string into an array of characters SHOULD be a function call, optimized >> in >> assembler to be blindingly fast. >> >> 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 Rocky Smolin >> at >> Beach Access Software >> Sent: Saturday, March 22, 2008 6:15 PM >> To: 'Access Developers discussion and problem solving' >> Subject: Re: [AccessD] Treat string as array >> >> >> What do you need that you don't get from MID? >> >> Rocky >> >>> >>> How can I turn a string into an array? I need to iterate through the >>> characters of a string. >>> >>> For each char in str >>> dosomething char >>> Next char >>> >>> 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 >> >> No virus found in this incoming message. >> Checked by AVG. >> Version: 7.5.519 / Virus Database: 269.21.8/1338 - Release Date: >> 3/21/2008 >> 5:52 PM >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From Gustav at cactus.dk Sun Mar 23 04:17:43 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Sun, 23 Mar 2008 10:17:43 +0100 Subject: [AccessD] Treat string as array Message-ID: Hi John As for the wide spacing you could do: Public Function aTest(strA As String) As String Dim abytTest() As Byte Dim intChar As Integer Dim strOut As String abytTest = strA For intChar = LBound(abytTest) To UBound(abytTest) If abytTest(intChar) = 0 Then strOut = strOut & Space(1) Else strOut = strOut & Chr(abytTest(intChar)) End If Next aTest = RTrim(strOut) End Function But it isn't much simpler than using Mid: Public Function StringWide(strPrint As String) As String Dim strWide As String Dim intLen As Integer Dim intPos As Integer intLen = Len(strPrint) If intLen > 0 Then strWide = Space(intLen * 2 - 1) End If For intPos = 1 To intLen Mid(strWide, intPos * 2 - 1) = Mid(strPrint, intPos, 1) Next StringWide = strWide End Function /gustav >>> jwcolby at colbyconsulting.com 22-03-2008 22:57 >>> Well yea. Uhh... sure. I thought I was asking a syntax question. Given strCompanyName Colby Consulting I need an array of: C o l b y C o n s u l t i n g It is exactly that piece that I do not know how to do elegantly. Oh sure I can do the Mid() function N times but that is inelegant. I thought perhaps there would be a single SomeKeyWord(strCompanyName) that would return an array of the characters in the strCompanyName. I really don't work with arrays that much and so I am much less godly in that area. John W. Colby Colby Consulting www.ColbyConsulting.com From fuller.artful at gmail.com Sun Mar 23 06:10:26 2008 From: fuller.artful at gmail.com (Arthur Fuller) Date: Sun, 23 Mar 2008 07:10:26 -0400 Subject: [AccessD] Button Images Message-ID: <29f585dd0803230410w290fc7cfof85d35fe7420cbdf@mail.gmail.com> My current app is close to complete and I'm now writing its user guide. I have a group of buttons on various forms, all using the images available within Access (navigation buttons, print preview, etc.). I'm wondering where these images live and how I can use them in my Word document. I just tried copy/past and not surprisingly, that didn't work. Does anyone know a good way to do this? I already have a decent screen-capture program, but since the images already exist somewhere, I'd prefer simply to grab them and paste them in. Anyone know where these images are? TIA, Arthur From max.wanadoo at gmail.com Sun Mar 23 09:50:55 2008 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Sun, 23 Mar 2008 14:50:55 -0000 Subject: [AccessD] Treat string as array In-Reply-To: References: Message-ID: <001501c88cf5$4d278190$8119fea9@LTVM> Public Function pfPadString() Dim iFor As Integer Dim strIn As String, strOut As String strIn = "Colby Consulting" For iFor = 1 To Len(strIn) strOut = strOut & Mid(strIn, iFor, 1) & " " Next iFor MsgBox strOut End Function Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Sunday, March 23, 2008 9:18 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Treat string as array Hi John As for the wide spacing you could do: Public Function aTest(strA As String) As String Dim abytTest() As Byte Dim intChar As Integer Dim strOut As String abytTest = strA For intChar = LBound(abytTest) To UBound(abytTest) If abytTest(intChar) = 0 Then strOut = strOut & Space(1) Else strOut = strOut & Chr(abytTest(intChar)) End If Next aTest = RTrim(strOut) End Function But it isn't much simpler than using Mid: Public Function StringWide(strPrint As String) As String Dim strWide As String Dim intLen As Integer Dim intPos As Integer intLen = Len(strPrint) If intLen > 0 Then strWide = Space(intLen * 2 - 1) End If For intPos = 1 To intLen Mid(strWide, intPos * 2 - 1) = Mid(strPrint, intPos, 1) Next StringWide = strWide End Function /gustav >>> jwcolby at colbyconsulting.com 22-03-2008 22:57 >>> Well yea. Uhh... sure. I thought I was asking a syntax question. Given strCompanyName Colby Consulting I need an array of: C o l b y C o n s u l t i n g It is exactly that piece that I do not know how to do elegantly. Oh sure I can do the Mid() function N times but that is inelegant. I thought perhaps there would be a single SomeKeyWord(strCompanyName) that would return an array of the characters in the strCompanyName. I really don't work with arrays that much and so I am much less godly in that area. 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 jedi at charm.net Sun Mar 23 19:20:55 2008 From: jedi at charm.net (Michael Bahr) Date: Sun, 23 Mar 2008 20:20:55 -0400 (EDT) Subject: [AccessD] Treat string as array In-Reply-To: <001601c88c61$c7b6c720$0201a8c0@M90> References: <001601c88c61$c7b6c720$0201a8c0@M90> Message-ID: <4060.24.35.45.228.1206318055.squirrel@mail.expedient.net> JOhn, take a look here http://www.thescarms.com/dotnet/dotnetstring.aspx Mike... > How can I turn a string into an array? I need to iterate through the > characters of a string. > > For each char in str > dosomething char > Next char > > 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 miscellany at mvps.org Sun Mar 23 20:15:26 2008 From: miscellany at mvps.org (Steve Schapel) Date: Mon, 24 Mar 2008 14:15:26 +1300 Subject: [AccessD] Button Images In-Reply-To: <29f585dd0803230410w290fc7cfof85d35fe7420cbdf@mail.gmail.com> References: <29f585dd0803230410w290fc7cfof85d35fe7420cbdf@mail.gmail.com> Message-ID: <47E700AE.80200@mvps.org> Hi Arthur, Maybe someone has figured this out. However, when trying to do the same thing, I gave up trying to find them, and recreated the images from screenshots. Regards Steve Arthur Fuller wrote: > My current app is close to complete and I'm now writing its user guide. I > have a group of buttons on various forms, all using the images available > within Access (navigation buttons, print preview, etc.). I'm wondering where > these images live and how I can use them in my Word document. I just tried > copy/past and not surprisingly, that didn't work. Does anyone know a good > way to do this? I already have a decent screen-capture program, but since > the images already exist somewhere, I'd prefer simply to grab them and paste > them in. Anyone know where these images are? > From jwcolby at colbyconsulting.com Sun Mar 23 22:01:17 2008 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sun, 23 Mar 2008 23:01:17 -0400 Subject: [AccessD] Treat string as array In-Reply-To: References: Message-ID: <000701c88d5b$54a292a0$0201a8c0@M90> The "wide spacing" was simply meant to represent characters in an array, not actual spaces between characters in a string. I want to change a string into an array of characters, that is all. In fact I had to get on with life and just did the Mid() thing, ugly as it is. It is all working just fine, I just prefer easy to use, easy to read code, and that whole mid() thing is just plain ugly and hard to read. For next iterators are easy to read and see the intention. 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: Sunday, March 23, 2008 5:18 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Treat string as array Hi John As for the wide spacing you could do: Public Function aTest(strA As String) As String Dim abytTest() As Byte Dim intChar As Integer Dim strOut As String abytTest = strA For intChar = LBound(abytTest) To UBound(abytTest) If abytTest(intChar) = 0 Then strOut = strOut & Space(1) Else strOut = strOut & Chr(abytTest(intChar)) End If Next aTest = RTrim(strOut) End Function But it isn't much simpler than using Mid: Public Function StringWide(strPrint As String) As String Dim strWide As String Dim intLen As Integer Dim intPos As Integer intLen = Len(strPrint) If intLen > 0 Then strWide = Space(intLen * 2 - 1) End If For intPos = 1 To intLen Mid(strWide, intPos * 2 - 1) = Mid(strPrint, intPos, 1) Next StringWide = strWide End Function /gustav From jwcolby at colbyconsulting.com Sun Mar 23 22:02:54 2008 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sun, 23 Mar 2008 23:02:54 -0400 Subject: [AccessD] Treat string as array In-Reply-To: <001501c88cf5$4d278190$8119fea9@LTVM> References: <001501c88cf5$4d278190$8119fea9@LTVM> Message-ID: <000801c88d5b$8ea0eab0$0201a8c0@M90> ROTFL. This is getting out of hand folks. String to array, NOT string with spaces in it. Thanks though. 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 Max Wanadoo Sent: Sunday, March 23, 2008 10:51 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Treat string as array Public Function pfPadString() Dim iFor As Integer Dim strIn As String, strOut As String strIn = "Colby Consulting" For iFor = 1 To Len(strIn) strOut = strOut & Mid(strIn, iFor, 1) & " " Next iFor MsgBox strOut End Function Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Sunday, March 23, 2008 9:18 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Treat string as array Hi John As for the wide spacing you could do: Public Function aTest(strA As String) As String Dim abytTest() As Byte Dim intChar As Integer Dim strOut As String abytTest = strA For intChar = LBound(abytTest) To UBound(abytTest) If abytTest(intChar) = 0 Then strOut = strOut & Space(1) Else strOut = strOut & Chr(abytTest(intChar)) End If Next aTest = RTrim(strOut) End Function But it isn't much simpler than using Mid: Public Function StringWide(strPrint As String) As String Dim strWide As String Dim intLen As Integer Dim intPos As Integer intLen = Len(strPrint) If intLen > 0 Then strWide = Space(intLen * 2 - 1) End If For intPos = 1 To intLen Mid(strWide, intPos * 2 - 1) = Mid(strPrint, intPos, 1) Next StringWide = strWide End Function /gustav >>> jwcolby at colbyconsulting.com 22-03-2008 22:57 >>> Well yea. Uhh... sure. I thought I was asking a syntax question. Given strCompanyName Colby Consulting I need an array of: C o l b y C o n s u l t i n g It is exactly that piece that I do not know how to do elegantly. Oh sure I can do the Mid() function N times but that is inelegant. I thought perhaps there would be a single SomeKeyWord(strCompanyName) that would return an array of the characters in the strCompanyName. I really don't work with arrays that much and so I am much less godly in that area. 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 jwcolby at colbyconsulting.com Sun Mar 23 22:03:33 2008 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sun, 23 Mar 2008 23:03:33 -0400 Subject: [AccessD] Treat string as array In-Reply-To: <4060.24.35.45.228.1206318055.squirrel@mail.expedient.net> References: <001601c88c61$c7b6c720$0201a8c0@M90> <4060.24.35.45.228.1206318055.squirrel@mail.expedient.net> Message-ID: <000901c88d5b$a5ab81c0$0201a8c0@M90> Thanks. VBA. 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 Michael Bahr Sent: Sunday, March 23, 2008 8:21 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Treat string as array JOhn, take a look here http://www.thescarms.com/dotnet/dotnetstring.aspx Mike... > How can I turn a string into an array? I need to iterate through the > characters of a string. > > For each char in str > dosomething char > Next char > > 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 max.wanadoo at gmail.com Mon Mar 24 03:21:07 2008 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Mon, 24 Mar 2008 08:21:07 -0000 Subject: [AccessD] Button Images In-Reply-To: <47E700AE.80200@mvps.org> References: <29f585dd0803230410w290fc7cfof85d35fe7420cbdf@mail.gmail.com> <47E700AE.80200@mvps.org> Message-ID: <001501c88d88$0317f6f0$8119fea9@LTVM> Tons available on the web. Google "icon thief" Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve Schapel Sent: Monday, March 24, 2008 1:15 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Button Images Hi Arthur, Maybe someone has figured this out. However, when trying to do the same thing, I gave up trying to find them, and recreated the images from screenshots. Regards Steve Arthur Fuller wrote: > My current app is close to complete and I'm now writing its user > guide. I have a group of buttons on various forms, all using the > images available within Access (navigation buttons, print preview, > etc.). I'm wondering where these images live and how I can use them in > my Word document. I just tried copy/past and not surprisingly, that > didn't work. Does anyone know a good way to do this? I already have a > decent screen-capture program, but since the images already exist > somewhere, I'd prefer simply to grab them and paste them in. Anyone know where these images are? > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From tinanfields at torchlake.com Mon Mar 24 07:34:48 2008 From: tinanfields at torchlake.com (Tina Norris Fields) Date: Mon, 24 Mar 2008 08:34:48 -0400 Subject: [AccessD] Button Images In-Reply-To: <29f585dd0803230410w290fc7cfof85d35fe7420cbdf@mail.gmail.com> References: <29f585dd0803230410w290fc7cfof85d35fe7420cbdf@mail.gmail.com> Message-ID: <47E79FE8.9010406@torchlake.com> Arthur, Not exactly. I do recall that they are all hiding inside some file, a CAB or something similar, and I think they all (when pried loose from the mother ship) have ICO extensions. Tina Arthur Fuller wrote: > My current app is close to complete and I'm now writing its user guide. I > have a group of buttons on various forms, all using the images available > within Access (navigation buttons, print preview, etc.). I'm wondering where > these images live and how I can use them in my Word document. I just tried > copy/past and not surprisingly, that didn't work. Does anyone know a good > way to do this? I already have a decent screen-capture program, but since > the images already exist somewhere, I'd prefer simply to grab them and paste > them in. Anyone know where these images are? > > TIA, > Arthur > From cfoust at infostatsystems.com Mon Mar 24 10:29:55 2008 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 24 Mar 2008 08:29:55 -0700 Subject: [AccessD] Treat string as array In-Reply-To: <001901c88c67$bcd42900$0201a8c0@M90> References: <001601c88c61$c7b6c720$0201a8c0@M90><29f585dd0803221441l699c90ffy52fe71080cf5301@mail.gmail.com> <001901c88c67$bcd42900$0201a8c0@M90> Message-ID: You mean something like Split but with no delimiter? Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Saturday, March 22, 2008 2:58 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Treat string as array Well yea. Uhh... sure. I thought I was asking a syntax question. Given strCompanyName Colby Consulting I need an array of: C o l b y C o n s u l t i n g It is exactly that piece that I do not know how to do elegantly. Oh sure I can do the Mid() function N times but that is inelegant. I thought perhaps there would be a single SomeKeyWord(strCompanyName) that would return an array of the characters in the strCompanyName. I really don't work with arrays that much and so I am much less godly in that area. 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 Arthur Fuller Sent: Saturday, March 22, 2008 5:41 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Treat string as array Forgive me, el maestro de los classes, but I would have thought this a no-brainer for you. Write a class with some methods that walk the string accordingly, like Next and Previous (should you need that one) and so on. Encapsulate the mechanics of SubStr() and you're there. No? And here I deemed you a godlike being regarding classes! Turns out you bleed just like the rest of us. Go figure. I can already see this class, thanks to your teachings, and those also of Shamil. Init walks the string, the other guys deal with the resultant array. Granted, Split() looks for a delimiter, which in this case we do not have, but we can walk the string instead, no? After that, it's cheesecake. A. On 3/22/08, jwcolby wrote: > > How can I turn a string into an array? I need to iterate through the > characters of a string. > > For each char in str > dosomething char > Next char > > 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 jwcolby at colbyconsulting.com Mon Mar 24 11:05:27 2008 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 24 Mar 2008 12:05:27 -0400 Subject: [AccessD] Treat string as array In-Reply-To: References: <001601c88c61$c7b6c720$0201a8c0@M90><29f585dd0803221441l699c90ffy52fe71080cf5301@mail.gmail.com><001901c88c67$bcd42900$0201a8c0@M90> Message-ID: <002d01c88dc8$e9b6b520$0201a8c0@M90> Yep. Split every character of the string into an element of an array. I have a couple of suggestions which I will be testing. 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: Monday, March 24, 2008 11:30 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Treat string as array You mean something like Split but with no delimiter? Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Saturday, March 22, 2008 2:58 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Treat string as array Well yea. Uhh... sure. I thought I was asking a syntax question. Given strCompanyName Colby Consulting I need an array of: C o l b y C o n s u l t i n g It is exactly that piece that I do not know how to do elegantly. Oh sure I can do the Mid() function N times but that is inelegant. I thought perhaps there would be a single SomeKeyWord(strCompanyName) that would return an array of the characters in the strCompanyName. I really don't work with arrays that much and so I am much less godly in that area. 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 Arthur Fuller Sent: Saturday, March 22, 2008 5:41 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Treat string as array Forgive me, el maestro de los classes, but I would have thought this a no-brainer for you. Write a class with some methods that walk the string accordingly, like Next and Previous (should you need that one) and so on. Encapsulate the mechanics of SubStr() and you're there. No? And here I deemed you a godlike being regarding classes! Turns out you bleed just like the rest of us. Go figure. I can already see this class, thanks to your teachings, and those also of Shamil. Init walks the string, the other guys deal with the resultant array. Granted, Split() looks for a delimiter, which in this case we do not have, but we can walk the string instead, no? After that, it's cheesecake. A. On 3/22/08, jwcolby wrote: > > How can I turn a string into an array? I need to iterate through the > characters of a string. > > For each char in str > dosomething char > Next char > > 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 jedi at charm.net Mon Mar 24 11:37:15 2008 From: jedi at charm.net (Michael Bahr) Date: Mon, 24 Mar 2008 12:37:15 -0400 (EDT) Subject: [AccessD] Treat string as array In-Reply-To: <000901c88d5b$a5ab81c0$0201a8c0@M90> References: <001601c88c61$c7b6c720$0201a8c0@M90> <4060.24.35.45.228.1206318055.squirrel@mail.expedient.net> <000901c88d5b$a5ab81c0$0201a8c0@M90> Message-ID: <3070.198.118.94.95.1206376635.squirrel@mail.expedient.net> Ok, but the principles still apply. Try this http://www.vbforums.com/showthread.php?t=470268 and for reference http://www.codeguru.com/forum/archive/index.php/t-250108.html http://www.thescripts.com/forum/thread13305.html Mike... > Thanks. VBA. > > > 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 Michael Bahr > Sent: Sunday, March 23, 2008 8:21 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Treat string as array > > JOhn, take a look here > http://www.thescarms.com/dotnet/dotnetstring.aspx > > Mike... > > >> How can I turn a string into an array? I need to iterate through the >> characters of a string. >> >> For each char in str >> dosomething char >> Next char >> >> 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 jwcolby at colbyconsulting.com Mon Mar 24 11:49:35 2008 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 24 Mar 2008 12:49:35 -0400 Subject: [AccessD] Treat string as array In-Reply-To: <3070.198.118.94.95.1206376635.squirrel@mail.expedient.net> References: <001601c88c61$c7b6c720$0201a8c0@M90><4060.24.35.45.228.1206318055.squirrel@mail.expedient.net><000901c88d5b$a5ab81c0$0201a8c0@M90> <3070.198.118.94.95.1206376635.squirrel@mail.expedient.net> Message-ID: <003501c88dcf$0b078cd0$0201a8c0@M90> Michael, Split() only works on delimited strings. It is designed to break a string of words (for example) into an array of the words. In that case it would use the spaces as the delimiter. I am trying to take any string and put the INDIVIDUAL CHARACTERS OF THE STRING into INDIVIDUAL ELEMENTS of an array. If I gave you a string of "12345asdfg" and you pass that to split you would get (I assume) "12345asdfg" back in one element of an array. I need 1 in the first element, 2 in the next element, 3 in the next element etc. Go back to the very beginning of this thread and look at what I asked for. >> How can I turn a string into an array? I need to iterate through the >> characters of a string. >> >> For each char in str >> dosomething char >> Next char Arrays have iterators (for each next). Strings do not. 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 Michael Bahr Sent: Monday, March 24, 2008 12:37 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Treat string as array Ok, but the principles still apply. Try this http://www.vbforums.com/showthread.php?t=470268 and for reference http://www.codeguru.com/forum/archive/index.php/t-250108.html http://www.thescripts.com/forum/thread13305.html Mike... > Thanks. VBA. > > > 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 Michael > Bahr > Sent: Sunday, March 23, 2008 8:21 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Treat string as array > > JOhn, take a look here > http://www.thescarms.com/dotnet/dotnetstring.aspx > > Mike... > > >> How can I turn a string into an array? I need to iterate through the >> characters of a string. >> >> For each char in str >> dosomething char >> Next char >> >> 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 mmattys at rochester.rr.com Mon Mar 24 12:18:22 2008 From: mmattys at rochester.rr.com (Michael R Mattys) Date: Mon, 24 Mar 2008 13:18:22 -0400 Subject: [AccessD] Treat string as array References: <001601c88c61$c7b6c720$0201a8c0@M90><4060.24.35.45.228.1206318055.squirrel@mail.expedient.net><000901c88d5b$a5ab81c0$0201a8c0@M90><3070.198.118.94.95.1206376635.squirrel@mail.expedient.net> <003501c88dcf$0b078cd0$0201a8c0@M90> Message-ID: <00ea01c88dd3$1646e560$0402a8c0@Laptop> I'm going to be looking at this TextTool.mdb for some ideas on cleaning up imported textfiles. Looks like the GetBytes routine might offer a method for you - dunno. http://www.freevbcode.com/ShowCode.Asp?ID=3280 Michael R. Mattys MapPoint & Access Dev www.mattysconsulting.com ----- Original Message ----- From: "jwcolby" To: "'Access Developers discussion and problem solving'" Sent: Monday, March 24, 2008 12:49 PM Subject: Re: [AccessD] Treat string as array > Michael, > > Split() only works on delimited strings. It is designed to break a string > of words (for example) into an array of the words. In that case it would > use the spaces as the delimiter. > > I am trying to take any string and put the INDIVIDUAL CHARACTERS OF THE > STRING into INDIVIDUAL ELEMENTS of an array. If I gave you a string of > "12345asdfg" and you pass that to split you would get (I assume) > "12345asdfg" back in one element of an array. I need 1 in the first > element, 2 in the next element, 3 in the next element etc. > > Go back to the very beginning of this thread and look at what I asked for. > >>> How can I turn a string into an array? I need to iterate through the >>> characters of a string. >>> >>> For each char in str >>> dosomething char >>> Next char > > Arrays have iterators (for each next). Strings do not. > > 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 Michael Bahr > Sent: Monday, March 24, 2008 12:37 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Treat string as array > > Ok, but the principles still apply. Try this > http://www.vbforums.com/showthread.php?t=470268 > > and for reference > http://www.codeguru.com/forum/archive/index.php/t-250108.html > http://www.thescripts.com/forum/thread13305.html > > Mike... > > >> Thanks. VBA. >> >> >> 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 Michael >> Bahr >> Sent: Sunday, March 23, 2008 8:21 PM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] Treat string as array >> >> JOhn, take a look here >> http://www.thescarms.com/dotnet/dotnetstring.aspx >> >> Mike... >> >> >>> How can I turn a string into an array? I need to iterate through the >>> characters of a string. >>> >>> For each char in str >>> dosomething char >>> Next char >>> >>> 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 DWUTKA at Marlow.com Mon Mar 24 13:11:27 2008 From: DWUTKA at Marlow.com (Drew Wutka) Date: Mon, 24 Mar 2008 13:11:27 -0500 Subject: [AccessD] OT:Backup and Restore Complete PCs In-Reply-To: <000a01c88b23$57377e70$8119fea9@LTVM> Message-ID: Acronis True Image restore. It will restore an 'image' to a different PC, regardless of hardware. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Friday, March 21, 2008 2:15 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] OT:Backup and Restore Complete PCs Dear List, Can anybody offer a solution. Last week I had a complete PC Crash which resulted in having to purchase a new PC. Data is backed up ok. However all the setting, updates, personalization etc has gone out of the window. Had to reinstall apps, download all updates, etc, etc. Re-install all printers. I am sure you will get the picture. It still isn't back to where it was. I need some sort of software/hardware fix so that if this happens again (not just for me but for anybody) then the "Fix" will restore the new PC exactly as the Broken PC and take into account the fact that the *hardware is different.* *hardware is different.* Herein lies the rub. If I use an IMAGE then it does just that - which include all hardware settings, OS setting, Registry setting etc. I cannot restore an IMAGE to a new PC which may have a completely different hardware configuration. Likewise, just backing up everything will not work because a Restore will overwrite the new PC installed setting/directories etc. I need something which works like, say, PCMover. But PCMover expects the PC being restored to, to be the one it was backed up from! I need to move "the stuff" to the standby PC. Ditch the broken PC. Set up a new PC. Restore "the stuff" from the standby PC. "The Stuff" to include *everything* not related to the physical PC. Printer drivers, apps, data, etc. Any solutions, ideas, pointers? Thanks Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From DWUTKA at Marlow.com Mon Mar 24 13:18:40 2008 From: DWUTKA at Marlow.com (Drew Wutka) Date: Mon, 24 Mar 2008 13:18:40 -0500 Subject: [AccessD] Treat string as array In-Reply-To: <001601c88c61$c7b6c720$0201a8c0@M90> Message-ID: I believe you can use copy memory, it's been a while, but I'm pretty sure you can 'copy' a string into an array that way. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Saturday, March 22, 2008 4:15 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Treat string as array How can I turn a string into an array? I need to iterate through the characters of a string. For each char in str dosomething char Next char 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 The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From DWUTKA at Marlow.com Mon Mar 24 13:21:57 2008 From: DWUTKA at Marlow.com (Drew Wutka) Date: Mon, 24 Mar 2008 13:21:57 -0500 Subject: [AccessD] Button Images In-Reply-To: <47E700AE.80200@mvps.org> Message-ID: I use a package called Axelis Icon Editor. It lets you view (and copy/paste) icons from anything. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve Schapel Sent: Sunday, March 23, 2008 8:15 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Button Images Hi Arthur, Maybe someone has figured this out. However, when trying to do the same thing, I gave up trying to find them, and recreated the images from screenshots. Regards Steve Arthur Fuller wrote: > My current app is close to complete and I'm now writing its user guide. I > have a group of buttons on various forms, all using the images available > within Access (navigation buttons, print preview, etc.). I'm wondering where > these images live and how I can use them in my Word document. I just tried > copy/past and not surprisingly, that didn't work. Does anyone know a good > way to do this? I already have a decent screen-capture program, but since > the images already exist somewhere, I'd prefer simply to grab them and paste > them in. Anyone know where these images are? > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From jwcolby at colbyconsulting.com Mon Mar 24 13:23:05 2008 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 24 Mar 2008 14:23:05 -0400 Subject: [AccessD] OT:Backup and Restore Complete PCs In-Reply-To: References: <000a01c88b23$57377e70$8119fea9@LTVM> Message-ID: <004601c88ddc$1aac4c40$0201a8c0@M90> Drew, While technically correct, what it is restoring does not contain the drivers for the machine being restored to. For a rather extreme example, suppose that the machine that you are imaging has a raid 1 array for the boot disk but the machine being restored to only has a single disk and no raid functionality. Or that the NIC chip is by a completely different company. Or that the chipset on one is Nvidia but on the restore machine is Intel. Etc. The restore might occur but the chance that the restore computer will be happy when it tries to boot is remote. 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 Drew Wutka Sent: Monday, March 24, 2008 2:11 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT:Backup and Restore Complete PCs Acronis True Image restore. It will restore an 'image' to a different PC, regardless of hardware. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Friday, March 21, 2008 2:15 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] OT:Backup and Restore Complete PCs Dear List, Can anybody offer a solution. Last week I had a complete PC Crash which resulted in having to purchase a new PC. Data is backed up ok. However all the setting, updates, personalization etc has gone out of the window. Had to reinstall apps, download all updates, etc, etc. Re-install all printers. I am sure you will get the picture. It still isn't back to where it was. I need some sort of software/hardware fix so that if this happens again (not just for me but for anybody) then the "Fix" will restore the new PC exactly as the Broken PC and take into account the fact that the *hardware is different.* *hardware is different.* Herein lies the rub. If I use an IMAGE then it does just that - which include all hardware settings, OS setting, Registry setting etc. I cannot restore an IMAGE to a new PC which may have a completely different hardware configuration. Likewise, just backing up everything will not work because a Restore will overwrite the new PC installed setting/directories etc. I need something which works like, say, PCMover. But PCMover expects the PC being restored to, to be the one it was backed up from! I need to move "the stuff" to the standby PC. Ditch the broken PC. Set up a new PC. Restore "the stuff" from the standby PC. "The Stuff" to include *everything* not related to the physical PC. Printer drivers, apps, data, etc. Any solutions, ideas, pointers? Thanks Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at Marlow.com Mon Mar 24 13:47:44 2008 From: DWUTKA at Marlow.com (Drew Wutka) Date: Mon, 24 Mar 2008 13:47:44 -0500 Subject: [AccessD] OT:Backup and Restore Complete PCs In-Reply-To: <004601c88ddc$1aac4c40$0201a8c0@M90> Message-ID: Actually, in Acronis, you can specify special drivers you want to restore, or not restore. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Monday, March 24, 2008 1:23 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT:Backup and Restore Complete PCs Drew, While technically correct, what it is restoring does not contain the drivers for the machine being restored to. For a rather extreme example, suppose that the machine that you are imaging has a raid 1 array for the boot disk but the machine being restored to only has a single disk and no raid functionality. Or that the NIC chip is by a completely different company. Or that the chipset on one is Nvidia but on the restore machine is Intel. Etc. The restore might occur but the chance that the restore computer will be happy when it tries to boot is remote. 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 Drew Wutka Sent: Monday, March 24, 2008 2:11 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT:Backup and Restore Complete PCs Acronis True Image restore. It will restore an 'image' to a different PC, regardless of hardware. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Friday, March 21, 2008 2:15 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] OT:Backup and Restore Complete PCs Dear List, Can anybody offer a solution. Last week I had a complete PC Crash which resulted in having to purchase a new PC. Data is backed up ok. However all the setting, updates, personalization etc has gone out of the window. Had to reinstall apps, download all updates, etc, etc. Re-install all printers. I am sure you will get the picture. It still isn't back to where it was. I need some sort of software/hardware fix so that if this happens again (not just for me but for anybody) then the "Fix" will restore the new PC exactly as the Broken PC and take into account the fact that the *hardware is different.* *hardware is different.* Herein lies the rub. If I use an IMAGE then it does just that - which include all hardware settings, OS setting, Registry setting etc. I cannot restore an IMAGE to a new PC which may have a completely different hardware configuration. Likewise, just backing up everything will not work because a Restore will overwrite the new PC installed setting/directories etc. I need something which works like, say, PCMover. But PCMover expects the PC being restored to, to be the one it was backed up from! I need to move "the stuff" to the standby PC. Ditch the broken PC. Set up a new PC. Restore "the stuff" from the standby PC. "The Stuff" to include *everything* not related to the physical PC. Printer drivers, apps, data, etc. Any solutions, ideas, pointers? Thanks Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From markamatte at hotmail.com Mon Mar 24 14:08:41 2008 From: markamatte at hotmail.com (Mark A Matte) Date: Mon, 24 Mar 2008 19:08:41 +0000 Subject: [AccessD] Edit Large Text Files (was:Treat string as array) Message-ID: Michael, I don't think that is what JC needs...but I regularly deal with large text files that are not fixed length. (2+ gigs). I looked at the tool referenced below. I ended up (with the help of AccessD)...creating my own process. Its not pretty or documented...but I can do a search and replace in under 30 seconds on a 2 gig file. I use the same concept as the tool below...I count the bytes. I first use my process to replace some 'known' annoying characters...then I try to import into SQL...when it errors...it tells me the row number. I use access to link to the file...goto the area...and look for the anomoly and copy some 'unique' text from that area. I then modify my process to find the 'unique text' and only write that chunk to a text file(about 10 meg). I open this file...find the area in question...then look for the problem...sometimes its missing delimeter, extra delimeter, or just some character it does NOT like. Once this is isolated...I run my search replace on the 'isolated' text. Then I try to import again. Currently to do the whole thing...In my code I just comment out the feature I'm not using...so its not quite obvious what I'm doing(emergency coding). I can try to clean it up a bit if you are interested...or even a 5 min call to walk through it. Let me know. Mark A. Matte 336/253-5270 > From: mmattys at rochester.rr.com > To: accessd at databaseadvisors.com > Date: Mon, 24 Mar 2008 13:18:22 -0400 > Subject: Re: [AccessD] Treat string as array > > I'm going to be looking at this TextTool.mdb for some ideas > on cleaning up imported textfiles. Looks like the GetBytes routine > might offer a method for you - dunno. > > http://www.freevbcode.com/ShowCode.Asp?ID=3280 > > Michael R. Mattys > MapPoint & Access Dev > www.mattysconsulting.com > > ----- Original Message ----- > From: "jwcolby" > To: "'Access Developers discussion and problem solving'" > > Sent: Monday, March 24, 2008 12:49 PM > Subject: Re: [AccessD] Treat string as array > > >> Michael, >> >> Split() only works on delimited strings. It is designed to break a string >> of words (for example) into an array of the words. In that case it would >> use the spaces as the delimiter. >> >> I am trying to take any string and put the INDIVIDUAL CHARACTERS OF THE >> STRING into INDIVIDUAL ELEMENTS of an array. If I gave you a string of >> "12345asdfg" and you pass that to split you would get (I assume) >> "12345asdfg" back in one element of an array. I need 1 in the first >> element, 2 in the next element, 3 in the next element etc. >> >> Go back to the very beginning of this thread and look at what I asked for. >> >>>> How can I turn a string into an array? I need to iterate through the >>>> characters of a string. >>>> >>>> For each char in str >>>> dosomething char >>>> Next char >> >> Arrays have iterators (for each next). Strings do not. >> >> 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 Michael Bahr >> Sent: Monday, March 24, 2008 12:37 PM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] Treat string as array >> >> Ok, but the principles still apply. Try this >> http://www.vbforums.com/showthread.php?t=470268 >> >> and for reference >> http://www.codeguru.com/forum/archive/index.php/t-250108.html >> http://www.thescripts.com/forum/thread13305.html >> >> Mike... >> >> >>> Thanks. VBA. >>> >>> >>> 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 Michael >>> Bahr >>> Sent: Sunday, March 23, 2008 8:21 PM >>> To: Access Developers discussion and problem solving >>> Subject: Re: [AccessD] Treat string as array >>> >>> JOhn, take a look here >>> http://www.thescarms.com/dotnet/dotnetstring.aspx >>> >>> Mike... >>> >>> >>>> How can I turn a string into an array? I need to iterate through the >>>> characters of a string. >>>> >>>> For each char in str >>>> dosomething char >>>> Next char >>>> >>>> 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 _________________________________________________________________ Test your Star IQ http://club.live.com/red_carpet_reveal.aspx?icid=redcarpet_HMTAGMAR From Patricia.O'Connor at otda.state.ny.us Mon Mar 24 14:17:09 2008 From: Patricia.O'Connor at otda.state.ny.us (O'Connor, Patricia (OTDA)) Date: Mon, 24 Mar 2008 15:17:09 -0400 Subject: [AccessD] Advisory Word Jet In-Reply-To: References: Message-ID: <01DBAB52E30A9A4AB3D94EF8029EDBE8021BB2DC@EXCNYSM0A1AI.nysemail.nyenet> Will this affect Access2k3 etc http://www.microsoft.com/technet/security/advisory/950627.mspx ************************************************** * Patricia O'Connor * Information Technology Specialist 3 (Programming) * 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. From bill_patten at embarqmail.com Mon Mar 24 14:21:48 2008 From: bill_patten at embarqmail.com (Bill Patten) Date: Mon, 24 Mar 2008 12:21:48 -0700 Subject: [AccessD] OT:Backup and Restore Complete PCs In-Reply-To: <004601c88ddc$1aac4c40$0201a8c0@M90> References: <000a01c88b23$57377e70$8119fea9@LTVM> <004601c88ddc$1aac4c40$0201a8c0@M90> Message-ID: <280C9402D9C24B7A8BAB5639BF036B69@BPCS> John, You are correct about Acronis 10 or 11 but Acronis Echo Workstation (about $79) coupled with Acronis Universal Restore (about $39) is designed to add drivers etc when restoring the image. http://www.acronis.com/enterprise/products/ATICW/universal-restore.html As I have stated before I have not personally used it yet but a friend of mine took an image of an old Pentium 3 with IDE's and restored it to a new Dell with SATA drives with no problem. Bill ----- Original Message ----- From: "jwcolby" To: "'Access Developers discussion and problem solving'" Sent: Monday, March 24, 2008 11:23 AM Subject: Re: [AccessD] OT:Backup and Restore Complete PCs Drew, While technically correct, what it is restoring does not contain the drivers for the machine being restored to. For a rather extreme example, suppose that the machine that you are imaging has a raid 1 array for the boot disk but the machine being restored to only has a single disk and no raid functionality. Or that the NIC chip is by a completely different company. Or that the chipset on one is Nvidia but on the restore machine is Intel. Etc. The restore might occur but the chance that the restore computer will be happy when it tries to boot is remote. 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 Drew Wutka Sent: Monday, March 24, 2008 2:11 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT:Backup and Restore Complete PCs Acronis True Image restore. It will restore an 'image' to a different PC, regardless of hardware. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Friday, March 21, 2008 2:15 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] OT:Backup and Restore Complete PCs Dear List, Can anybody offer a solution. Last week I had a complete PC Crash which resulted in having to purchase a new PC. Data is backed up ok. However all the setting, updates, personalization etc has gone out of the window. Had to reinstall apps, download all updates, etc, etc. Re-install all printers. I am sure you will get the picture. It still isn't back to where it was. I need some sort of software/hardware fix so that if this happens again (not just for me but for anybody) then the "Fix" will restore the new PC exactly as the Broken PC and take into account the fact that the *hardware is different.* *hardware is different.* Herein lies the rub. If I use an IMAGE then it does just that - which include all hardware settings, OS setting, Registry setting etc. I cannot restore an IMAGE to a new PC which may have a completely different hardware configuration. Likewise, just backing up everything will not work because a Restore will overwrite the new PC installed setting/directories etc. I need something which works like, say, PCMover. But PCMover expects the PC being restored to, to be the one it was backed up from! I need to move "the stuff" to the standby PC. Ditch the broken PC. Set up a new PC. Restore "the stuff" from the standby PC. "The Stuff" to include *everything* not related to the physical PC. Printer drivers, apps, data, etc. Any solutions, ideas, pointers? Thanks Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From markamatte at hotmail.com Mon Mar 24 15:28:36 2008 From: markamatte at hotmail.com (Mark A Matte) Date: Mon, 24 Mar 2008 20:28:36 +0000 Subject: [AccessD] OT:Backup and Restore Complete PCs In-Reply-To: <280C9402D9C24B7A8BAB5639BF036B69@BPCS> References: <000a01c88b23$57377e70$8119fea9@LTVM> <004601c88ddc$1aac4c40$0201a8c0@M90> <280C9402D9C24B7A8BAB5639BF036B69@BPCS> Message-ID: Hello All, I need to search a folder with 100's of Access DBs...and find the ones with a certain table,form,qry, or module name. Any ideas? Thanks, Mark A. Matte > From: bill_patten at embarqmail.com > To: accessd at databaseadvisors.com > Date: Mon, 24 Mar 2008 12:21:48 -0700 > Subject: Re: [AccessD] OT:Backup and Restore Complete PCs > > John, > > You are correct about Acronis 10 or 11 but Acronis Echo Workstation (about > $79) coupled with Acronis Universal Restore (about $39) is designed to add > drivers etc when restoring the image. > > http://www.acronis.com/enterprise/products/ATICW/universal-restore.html > > As I have stated before I have not personally used it yet but a friend of > mine took an image of an old Pentium 3 with IDE's and restored it to a new > Dell with SATA drives with no problem. > > > Bill > > ----- Original Message ----- > From: "jwcolby" > To: "'Access Developers discussion and problem solving'" > > Sent: Monday, March 24, 2008 11:23 AM > Subject: Re: [AccessD] OT:Backup and Restore Complete PCs > > > Drew, > > While technically correct, what it is restoring does not contain the drivers > for the machine being restored to. For a rather extreme example, suppose > that the machine that you are imaging has a raid 1 array for the boot disk > but the machine being restored to only has a single disk and no raid > functionality. Or that the NIC chip is by a completely different company. > Or that the chipset on one is Nvidia but on the restore machine is Intel. > Etc. > > The restore might occur but the chance that the restore computer will be > happy when it tries to boot is remote. > > > 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 Drew Wutka > Sent: Monday, March 24, 2008 2:11 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] OT:Backup and Restore Complete PCs > > Acronis True Image restore. It will restore an 'image' to a different PC, > regardless of hardware. > > Drew > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo > Sent: Friday, March 21, 2008 2:15 AM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] OT:Backup and Restore Complete PCs > > Dear List, > Can anybody offer a solution. > Last week I had a complete PC Crash which resulted in having to purchase a > new PC. > Data is backed up ok. > However all the setting, updates, personalization etc has gone out of the > window. > Had to reinstall apps, download all updates, etc, etc. Re-install all > printers. > I am sure you will get the picture. It still isn't back to where it was. > > I need some sort of software/hardware fix so that if this happens again (not > just for me but for anybody) then the "Fix" will restore the new PC exactly > as the Broken PC and take into account the fact that the *hardware is > different.* > > *hardware is different.* Herein lies the rub. > > If I use an IMAGE then it does just that - which include all hardware > settings, OS setting, Registry setting etc. > I cannot restore an IMAGE to a new PC which may have a completely different > hardware configuration. > > Likewise, just backing up everything will not work because a Restore will > overwrite the new PC installed setting/directories etc. > > I need something which works like, say, PCMover. But PCMover expects the > PC being restored to, to be the one it was backed up from! > > I need to move "the stuff" to the standby PC. Ditch the broken PC. Set up > a new PC. Restore "the stuff" from the standby PC. > > "The Stuff" to include *everything* not related to the physical PC. > Printer > drivers, apps, data, etc. > > Any solutions, ideas, pointers? > > Thanks > Max > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com The information contained in this > transmission is intended only for the person or entity to which it is > addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive > material. If you are not the intended recipient, please contact the sender > immediately and destroy the material in its entirety, whether electronic or > hard copy. You are notified that any review, retransmission, copying, > disclosure, dissemination, or other use of, or taking of any action in > reliance upon this information by persons or entities other than the > intended recipient is prohibited. > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com _________________________________________________________________ How well do you know your celebrity gossip? http://originals.msn.com/thebigdebate?ocid=T002MSN03N0707A From markamatte at hotmail.com Mon Mar 24 15:29:26 2008 From: markamatte at hotmail.com (Mark A Matte) Date: Mon, 24 Mar 2008 20:29:26 +0000 Subject: [AccessD] Search MDBs for specific table name In-Reply-To: <280C9402D9C24B7A8BAB5639BF036B69@BPCS> References: <000a01c88b23$57377e70$8119fea9@LTVM> <004601c88ddc$1aac4c40$0201a8c0@M90> <280C9402D9C24B7A8BAB5639BF036B69@BPCS> Message-ID: Hello All, I need to search a folder with 100's of Access DBs...and find the ones with a certain table,form,qry, or module name. Any ideas? Thanks, Mark A. Matte _________________________________________________________________ Watch ?Cause Effect,? a show about real people making a real difference. Learn more. http://im.live.com/Messenger/IM/MTV/?source=text_watchcause From jwcolby at colbyconsulting.com Mon Mar 24 15:44:42 2008 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 24 Mar 2008 16:44:42 -0400 Subject: [AccessD] Search MDBs for specific table name In-Reply-To: References: <000a01c88b23$57377e70$8119fea9@LTVM><004601c88ddc$1aac4c40$0201a8c0@M90><280C9402D9C24B7A8BAB5639BF036B69@BPCS> Message-ID: <005501c88def$e393e600$0201a8c0@M90> The only way I can think of to do this is to open each one and search the collections. This can all be done programmatically. 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, March 24, 2008 4:29 PM To: Access Developers discussion and problem solving Subject: [AccessD] Search MDBs for specific table name Hello All, I need to search a folder with 100's of Access DBs...and find the ones with a certain table,form,qry, or module name. Any ideas? Thanks, Mark A. Matte _________________________________________________________________ Watch "Cause Effect," a show about real people making a real difference. Learn more. http://im.live.com/Messenger/IM/MTV/?source=text_watchcause -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Mon Mar 24 15:44:20 2008 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 24 Mar 2008 13:44:20 -0700 Subject: [AccessD] Search MDBs for specific table name In-Reply-To: References: <000a01c88b23$57377e70$8119fea9@LTVM><004601c88ddc$1aac4c40$0201a8c0@M90><280C9402D9C24B7A8BAB5639BF036B69@BPCS> Message-ID: What on earth are you trying to accomplish? Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Monday, March 24, 2008 1:29 PM To: Access Developers discussion and problem solving Subject: [AccessD] Search MDBs for specific table name Hello All, I need to search a folder with 100's of Access DBs...and find the ones with a certain table,form,qry, or module name. Any ideas? Thanks, Mark A. Matte _________________________________________________________________ Watch "Cause Effect," a show about real people making a real difference. Learn more. http://im.live.com/Messenger/IM/MTV/?source=text_watchcause -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mmattys at rochester.rr.com Mon Mar 24 15:50:44 2008 From: mmattys at rochester.rr.com (Michael R Mattys) Date: Mon, 24 Mar 2008 16:50:44 -0400 Subject: [AccessD] Search MDBs for specific table name References: <000a01c88b23$57377e70$8119fea9@LTVM><004601c88ddc$1aac4c40$0201a8c0@M90><280C9402D9C24B7A8BAB5639BF036B69@BPCS> Message-ID: <01a301c88df0$bbd44fa0$0402a8c0@Laptop> Hi Mark, Go to www.xteq.com and download XFind Michael R. Mattys MapPoint & Access Dev www.mattysconsulting.com ----- Original Message ----- From: "Mark A Matte" To: "Access Developers discussion and problem solving" Sent: Monday, March 24, 2008 4:29 PM Subject: [AccessD] Search MDBs for specific table name Hello All, I need to search a folder with 100's of Access DBs...and find the ones with a certain table,form,qry, or module name. Any ideas? Thanks, Mark A. Matte _________________________________________________________________ Watch ?Cause Effect,? a show about real people making a real difference. Learn more. http://im.live.com/Messenger/IM/MTV/?source=text_watchcause -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From markamatte at hotmail.com Mon Mar 24 15:54:18 2008 From: markamatte at hotmail.com (Mark A Matte) Date: Mon, 24 Mar 2008 20:54:18 +0000 Subject: [AccessD] Search MDBs for specific table name In-Reply-To: References: <000a01c88b23$57377e70$8119fea9@LTVM><004601c88ddc$1aac4c40$0201a8c0@M90><280C9402D9C24B7A8BAB5639BF036B69@BPCS> Message-ID: Thanks Charlotte...I needed a laugh (at myself). Ok...Here is my humor. I lost some code...lol I know the name of the form or module it is in and have absolutely no idea which db used it. So......just curious if anyone has any suggestions on how to search MDBs for names of objects. Thanks, Mark A. Matte > Date: Mon, 24 Mar 2008 13:44:20 -0700 > From: cfoust at infostatsystems.com > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] Search MDBs for specific table name > > What on earth are you trying to accomplish? > > Charlotte Foust > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte > Sent: Monday, March 24, 2008 1:29 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] Search MDBs for specific table name > > > Hello All, > > I need to search a folder with 100's of Access DBs...and find the ones > with a certain table,form,qry, or module name. Any ideas? > > Thanks, > > Mark A. Matte > > > > _________________________________________________________________ > Watch "Cause Effect," a show about real people making a real difference. > Learn more. > http://im.live.com/Messenger/IM/MTV/?source=text_watchcause > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com _________________________________________________________________ Watch ?Cause Effect,? a show about real people making a real difference. Learn more. http://im.live.com/Messenger/IM/MTV/?source=text_watchcause From rockysmolin at bchacc.com Mon Mar 24 18:07:08 2008 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Mon, 24 Mar 2008 16:07:08 -0700 Subject: [AccessD] Cancel Produces Error Message-ID: <005c01c88e03$c90d7e90$0301a8c0@HAL9005> Dear List: The following code for deleting a record, generated by the wiz errors on the second statement if the user clicks cancel to the warning message. DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70 DoCmd.DoMenuItem acFormBar, acEditMenu, 6, , acMenuVer70 Is there a right way around this? Placing On Error Resume Next between the statements would probably work but doesn't seem right. MTIA Rocky From cfoust at infostatsystems.com Mon Mar 24 19:12:09 2008 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 24 Mar 2008 17:12:09 -0700 Subject: [AccessD] Cancel Produces Error In-Reply-To: <005c01c88e03$c90d7e90$0301a8c0@HAL9005> References: <005c01c88e03$c90d7e90$0301a8c0@HAL9005> Message-ID: Rocky, Use the RunCommand approach instead of DoCmd.DoMenuItem. Ver 7 was Access and trying to figure out what the menuitems were is a good way to go nuts! So if the first item is a delete record, it would be: DoCmd.RunCommand acCmdDeleteRecord Heaven knows what acEditMenu item 6 was. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Monday, March 24, 2008 4:07 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Cancel Produces Error Dear List: The following code for deleting a record, generated by the wiz errors on the second statement if the user clicks cancel to the warning message. DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70 DoCmd.DoMenuItem acFormBar, acEditMenu, 6, , acMenuVer70 Is there a right way around this? Placing On Error Resume Next between the statements would probably work but doesn't seem right. MTIA Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Mon Mar 24 20:08:19 2008 From: dwaters at usinternet.com (Dan Waters) Date: Mon, 24 Mar 2008 20:08:19 -0500 Subject: [AccessD] Cancel Produces Error In-Reply-To: <005c01c88e03$c90d7e90$0301a8c0@HAL9005> References: <005c01c88e03$c90d7e90$0301a8c0@HAL9005> Message-ID: <004f01c88e14$b6a2ecc0$0300a8c0@danwaters> Hi Rocky, Eventually I found that only the following would consistently delete a record in a bound form. Step 0: Stop screen redisplay Application.Echo False Step 1: Save any unsaved record(s) If Me.Dirty = True Then Me.Dirty = False Step 2: Save the record ID lngTableID = txtTableID Step 3: Remove the recordsource from the form Me.Recordsource = "" Step 4: Delete the record Stg = "DELETE * FROM tblTable WHERE TableID = " & lngTableID DoCmd.SetWarnings False DoCmd.RunSQL stg DoCmd.SetWarnings True Step 5: Replace the recordsource (optional) Me.Recordsource = [something] Step 6: Redisplay the screen (you must error trap this procedure and include this same line if the procedure errors out) Application.Echo True Good Luck! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Monday, March 24, 2008 6:07 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Cancel Produces Error Dear List: The following code for deleting a record, generated by the wiz errors on the second statement if the user clicks cancel to the warning message. DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70 DoCmd.DoMenuItem acFormBar, acEditMenu, 6, , acMenuVer70 Is there a right way around this? Placing On Error Resume Next between the statements would probably work but doesn't seem right. MTIA Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Mon Mar 24 20:34:53 2008 From: dwaters at usinternet.com (Dan Waters) Date: Mon, 24 Mar 2008 20:34:53 -0500 Subject: [AccessD] Search MDBs for specific table name In-Reply-To: References: <000a01c88b23$57377e70$8119fea9@LTVM><004601c88ddc$1aac4c40$0201a8c0@M90><280C9402D9C24B7A8BAB5639BF036B69@BPCS> Message-ID: <005001c88e18$6cd18990$0300a8c0@danwaters> Hi Mark, 1) Walk through the files in the folder using a collection of files 2) Try to import the object(s) you're looking for from each mdb. If you don't get an error, the object exists. (I've never tried this) You can probably use this example from Help: DoCmd.TransferDatabase acImport, "Microsoft Access", _ "C:\My Documents\NWSales.mdb", acReport, "NW Sales for April", _ "Corporate Sales for April" 3) Store the name of the mdb's and objects in a table for later reference. I want to know if you try this and if it works! Good Luck, Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Monday, March 24, 2008 3:29 PM To: Access Developers discussion and problem solving Subject: [AccessD] Search MDBs for specific table name Hello All, I need to search a folder with 100's of Access DBs...and find the ones with a certain table,form,qry, or module name. Any ideas? Thanks, Mark A. Matte _________________________________________________________________ Watch "Cause Effect," a show about real people making a real difference. Learn more. http://im.live.com/Messenger/IM/MTV/?source=text_watchcause -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Mon Mar 24 22:00:29 2008 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Mon, 24 Mar 2008 20:00:29 -0700 Subject: [AccessD] Cancel Produces Error In-Reply-To: <004f01c88e14$b6a2ecc0$0300a8c0@danwaters> References: <005c01c88e03$c90d7e90$0301a8c0@HAL9005> <004f01c88e14$b6a2ecc0$0300a8c0@danwaters> Message-ID: <008101c88e24$64ce07d0$0301a8c0@HAL9005> (Is he serious?) Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, March 24, 2008 6:08 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Cancel Produces Error Hi Rocky, Eventually I found that only the following would consistently delete a record in a bound form. Step 0: Stop screen redisplay Application.Echo False Step 1: Save any unsaved record(s) If Me.Dirty = True Then Me.Dirty = False Step 2: Save the record ID lngTableID = txtTableID Step 3: Remove the recordsource from the form Me.Recordsource = "" Step 4: Delete the record Stg = "DELETE * FROM tblTable WHERE TableID = " & lngTableID DoCmd.SetWarnings False DoCmd.RunSQL stg DoCmd.SetWarnings True Step 5: Replace the recordsource (optional) Me.Recordsource = [something] Step 6: Redisplay the screen (you must error trap this procedure and include this same line if the procedure errors out) Application.Echo True Good Luck! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Monday, March 24, 2008 6:07 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Cancel Produces Error Dear List: The following code for deleting a record, generated by the wiz errors on the second statement if the user clicks cancel to the warning message. DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70 DoCmd.DoMenuItem acFormBar, acEditMenu, 6, , acMenuVer70 Is there a right way around this? Placing On Error Resume Next between the statements would probably work but doesn't seem right. MTIA Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG. Version: 7.5.519 / Virus Database: 269.22.0/1341 - Release Date: 3/24/2008 3:03 PM From jwcolby at colbyconsulting.com Mon Mar 24 22:19:07 2008 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 24 Mar 2008 23:19:07 -0400 Subject: [AccessD] Cancel Produces Error In-Reply-To: <008101c88e24$64ce07d0$0301a8c0@HAL9005> References: <005c01c88e03$c90d7e90$0301a8c0@HAL9005><004f01c88e14$b6a2ecc0$0300a8c0@danwaters> <008101c88e24$64ce07d0$0301a8c0@HAL9005> Message-ID: <005d01c88e26$fd31a610$0201a8c0@M90> LOL. Well... Any edit in progress will lock the record, thus the save. As for the rest, it is sure more than I would want to do. 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 Rocky Smolin at Beach Access Software Sent: Monday, March 24, 2008 11:00 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Cancel Produces Error (Is he serious?) Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, March 24, 2008 6:08 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Cancel Produces Error Hi Rocky, Eventually I found that only the following would consistently delete a record in a bound form. Step 0: Stop screen redisplay Application.Echo False Step 1: Save any unsaved record(s) If Me.Dirty = True Then Me.Dirty = False Step 2: Save the record ID lngTableID = txtTableID Step 3: Remove the recordsource from the form Me.Recordsource = "" Step 4: Delete the record Stg = "DELETE * FROM tblTable WHERE TableID = " & lngTableID DoCmd.SetWarnings False DoCmd.RunSQL stg DoCmd.SetWarnings True Step 5: Replace the recordsource (optional) Me.Recordsource = [something] Step 6: Redisplay the screen (you must error trap this procedure and include this same line if the procedure errors out) Application.Echo True Good Luck! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Monday, March 24, 2008 6:07 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Cancel Produces Error Dear List: The following code for deleting a record, generated by the wiz errors on the second statement if the user clicks cancel to the warning message. DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70 DoCmd.DoMenuItem acFormBar, acEditMenu, 6, , acMenuVer70 Is there a right way around this? Placing On Error Resume Next between the statements would probably work but doesn't seem right. MTIA Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG. Version: 7.5.519 / Virus Database: 269.22.0/1341 - Release Date: 3/24/2008 3:03 PM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From adtp at airtelmail.in Tue Mar 25 00:31:56 2008 From: adtp at airtelmail.in (A.D.Tejpal) Date: Tue, 25 Mar 2008 11:01:56 +0530 Subject: [AccessD] Treat string as array References: <001601c88c61$c7b6c720$0201a8c0@M90><4060.24.35.45.228.1206318055.squirrel@mail.expedient.net><000901c88d5b$a5ab81c0$0201a8c0@M90><3070.198.118.94.95.1206376635.squirrel@mail.expedient.net> <003501c88dcf$0b078cd0$0201a8c0@M90> Message-ID: <020501c88e39$e0355210$c559a27a@personald6374f> Function Fn_ConvStringToArray(), as given below, returns an array, so that individual characters of input string get placed in individual elements of the array. Note - The three line block of code involving For/Next loop could have been replaced by a single statement using String() function. However, String() function recognizes only one character as its last argument. A.D.Tejpal ------------ ' Code to be placed in VBA module '============================= Function Fn_ConvStringToArray(StrInput _ As String) As Variant Dim Fmt As String, Cnt As Long For Cnt = 1 To Len(StrInput) Fmt = Fmt & "~@" Next ' Strip leading ~ Fmt = Mid(Fmt, 2) Fn_ConvStringToArray = _ Split(Format(StrInput, Fmt), "~") End Function '============================= ----- Original Message ----- From: jwcolby To: 'Access Developers discussion and problem solving' Sent: Monday, March 24, 2008 22:19 Subject: Re: [AccessD] Treat string as array Michael, Split() only works on delimited strings. It is designed to break a string of words (for example) into an array of the words. In that case it would use the spaces as the delimiter. I am trying to take any string and put the INDIVIDUAL CHARACTERS OF THE STRING into INDIVIDUAL ELEMENTS of an array. If I gave you a string of "12345asdfg" and you pass that to split you would get (I assume) "12345asdfg" back in one element of an array. I need 1 in the first element, 2 in the next element, 3 in the next element etc. Go back to the very beginning of this thread and look at what I asked for. >> How can I turn a string into an array? I need to iterate through the >> characters of a string. >> >> For each char in str >> dosomething char >> Next char Arrays have iterators (for each next). Strings do not. 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 Michael Bahr Sent: Monday, March 24, 2008 12:37 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Treat string as array Ok, but the principles still apply. Try this http://www.vbforums.com/showthread.php?t=470268 and for reference http://www.codeguru.com/forum/archive/index.php/t-250108.html http://www.thescripts.com/forum/thread13305.html Mike... > Thanks. VBA. > > > 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 Michael > Bahr > Sent: Sunday, March 23, 2008 8:21 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Treat string as array > > JOhn, take a look here > http://www.thescarms.com/dotnet/dotnetstring.aspx > > Mike... > > >> How can I turn a string into an array? I need to iterate through the >> characters of a string. >> >> For each char in str >> dosomething char >> Next char >> >> John W. Colby >> Colby Consulting >> www.ColbyConsulting.com From adtp at airtelmail.in Tue Mar 25 02:06:57 2008 From: adtp at airtelmail.in (A.D.Tejpal) Date: Tue, 25 Mar 2008 12:36:57 +0530 Subject: [AccessD] Treat string as array References: <001601c88c61$c7b6c720$0201a8c0@M90><4060.24.35.45.228.1206318055.squirrel@mail.expedient.net><000901c88d5b$a5ab81c0$0201a8c0@M90><3070.198.118.94.95.1206376635.squirrel@mail.expedient.net> <003501c88dcf$0b078cd0$0201a8c0@M90> Message-ID: <002d01c88e47$34fe4380$8757a27a@personald6374f> A very concise version of Function Fn_ConvStringToArray(), using only a single statement, is placed below. It returns an array, so that individual characters of input string get placed in individual elements of the array. Note - In fact, right side of assignment statement (A) below, can be used directly, as it is made up purely of access built-in functions. Fn_ConvStringToArray() acts merely as a wrapper function, for sake of convenience. A.D.Tejpal ------------ ' Code to be placed in VBA module '================================ Function Fn_ConvStringToArray(StrInput _ As String) As Variant Fn_ConvStringToArray = _ Split(Format(StrInput, _ Mid(Replace(String(Len(StrInput), _ "~"), "~", "~@"), 2)), "~") ' (A) End Function '================================ ----- Original Message ----- From: A.D.Tejpal To: Access Developers discussion and problem solving Cc: A.D.Tejpal Sent: Tuesday, March 25, 2008 11:01 Subject: Re: [AccessD] Treat string as array Function Fn_ConvStringToArray(), as given below, returns an array, so that individual characters of input string get placed in individual elements of the array. Note - The three line block of code involving For/Next loop could have been replaced by a single statement using String() function. However, String() function recognizes only one character as its last argument. A.D.Tejpal ------------ ' Code to be placed in VBA module '============================= Function Fn_ConvStringToArray(StrInput _ As String) As Variant Dim Fmt As String, Cnt As Long For Cnt = 1 To Len(StrInput) Fmt = Fmt & "~@" Next ' Strip leading ~ Fmt = Mid(Fmt, 2) Fn_ConvStringToArray = _ Split(Format(StrInput, Fmt), "~") End Function '============================= ----- Original Message ----- From: jwcolby To: 'Access Developers discussion and problem solving' Sent: Monday, March 24, 2008 22:19 Subject: Re: [AccessD] Treat string as array Michael, Split() only works on delimited strings. It is designed to break a string of words (for example) into an array of the words. In that case it would use the spaces as the delimiter. I am trying to take any string and put the INDIVIDUAL CHARACTERS OF THE STRING into INDIVIDUAL ELEMENTS of an array. If I gave you a string of "12345asdfg" and you pass that to split you would get (I assume) "12345asdfg" back in one element of an array. I need 1 in the first element, 2 in the next element, 3 in the next element etc. Go back to the very beginning of this thread and look at what I asked for. >> How can I turn a string into an array? I need to iterate through the >> characters of a string. >> >> For each char in str >> dosomething char >> Next char Arrays have iterators (for each next). Strings do not. 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 Michael Bahr Sent: Monday, March 24, 2008 12:37 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Treat string as array Ok, but the principles still apply. Try this http://www.vbforums.com/showthread.php?t=470268 and for reference http://www.codeguru.com/forum/archive/index.php/t-250108.html http://www.thescripts.com/forum/thread13305.html Mike... > Thanks. VBA. > > > 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 Michael > Bahr > Sent: Sunday, March 23, 2008 8:21 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Treat string as array > > JOhn, take a look here > http://www.thescarms.com/dotnet/dotnetstring.aspx > > Mike... > >> How can I turn a string into an array? I need to iterate through the >> characters of a string. >> >> For each char in str >> dosomething char >> Next char >> >> John W. Colby >> Colby Consulting >> www.ColbyConsulting.com From Gustav at cactus.dk Tue Mar 25 02:42:11 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 25 Mar 2008 08:42:11 +0100 Subject: [AccessD] Treat string as array Message-ID: Hi A.D. Very creative solution! For how long time will JC chew on this dry stick? Next step is probably that the spaces he specified originally which should not be present should be present anyway or perhaps replaced by a tab or a white space! Lots of options out there ... /gustav >>> adtp at airtelmail.in 25-03-2008 08:06 >>> A very concise version of Function Fn_ConvStringToArray(), using only a single statement, is placed below. It returns an array, so that individual characters of input string get placed in individual elements of the array. Note - In fact, right side of assignment statement (A) below, can be used directly, as it is made up purely of access built-in functions. Fn_ConvStringToArray() acts merely as a wrapper function, for sake of convenience. A.D.Tejpal ------------ ' Code to be placed in VBA module '================================ Function Fn_ConvStringToArray(StrInput _ As String) As Variant Fn_ConvStringToArray = _ Split(Format(StrInput, _ Mid(Replace(String(Len(StrInput), _ "~"), "~", "~@"), 2)), "~") ' (A) End Function '================================ ----- Original Message ----- From: A.D.Tejpal To: Access Developers discussion and problem solving Cc: A.D.Tejpal Sent: Tuesday, March 25, 2008 11:01 Subject: Re: [AccessD] Treat string as array Function Fn_ConvStringToArray(), as given below, returns an array, so that individual characters of input string get placed in individual elements of the array. Note - The three line block of code involving For/Next loop could have been replaced by a single statement using String() function. However, String() function recognizes only one character as its last argument. A.D.Tejpal ------------ ' Code to be placed in VBA module '============================= Function Fn_ConvStringToArray(StrInput _ As String) As Variant Dim Fmt As String, Cnt As Long For Cnt = 1 To Len(StrInput) Fmt = Fmt & "~@" Next ' Strip leading ~ Fmt = Mid(Fmt, 2) Fn_ConvStringToArray = _ Split(Format(StrInput, Fmt), "~") End Function '============================= From Gustav at cactus.dk Tue Mar 25 03:25:26 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 25 Mar 2008 09:25:26 +0100 Subject: [AccessD] Cancel Produces Error Message-ID: Hi Dan and Rocky One much cleaner method is to delete from the RecordsetClone. Use Bookmark to locate the record and BeforeDelete to confirm. Lookup the on-line help on Response and acDataErrContinue. /gustav >>> dwaters at usinternet.com 25-03-2008 02:08 >>> Hi Rocky, Eventually I found that only the following would consistently delete a record in a bound form. Step 0: Stop screen redisplay Application.Echo False Step 1: Save any unsaved record(s) If Me.Dirty = True Then Me.Dirty = False Step 2: Save the record ID lngTableID = txtTableID Step 3: Remove the recordsource from the form Me.Recordsource = "" Step 4: Delete the record Stg = "DELETE * FROM tblTable WHERE TableID = " & lngTableID DoCmd.SetWarnings False DoCmd.RunSQL stg DoCmd.SetWarnings True Step 5: Replace the recordsource (optional) Me.Recordsource = [something] Step 6: Redisplay the screen (you must error trap this procedure and include this same line if the procedure errors out) Application.Echo True Good Luck! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Monday, March 24, 2008 6:07 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Cancel Produces Error Dear List: The following code for deleting a record, generated by the wiz errors on the second statement if the user clicks cancel to the warning message. DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70 DoCmd.DoMenuItem acFormBar, acEditMenu, 6, , acMenuVer70 Is there a right way around this? Placing On Error Resume Next between the statements would probably work but doesn't seem right. MTIA Rocky From fuller.artful at gmail.com Tue Mar 25 05:00:31 2008 From: fuller.artful at gmail.com (Arthur Fuller) Date: Tue, 25 Mar 2008 06:00:31 -0400 Subject: [AccessD] OT:Backup and Restore Complete PCs In-Reply-To: References: <000a01c88b23$57377e70$8119fea9@LTVM> <004601c88ddc$1aac4c40$0201a8c0@M90> <280C9402D9C24B7A8BAB5639BF036B69@BPCS> Message-ID: <29f585dd0803250300n3782dd8ew22a25369c42bb3ca@mail.gmail.com> I'm pretty sure that Google Desktop has an add-in that can search MDBs. On 3/24/08, Mark A Matte wrote: > > > Hello All, > > I need to search a folder with 100's of Access DBs...and find the ones > with a certain table,form,qry, or module name. Any ideas? > > Thanks, > > Mark A. Matte From fuller.artful at gmail.com Tue Mar 25 06:01:10 2008 From: fuller.artful at gmail.com (Arthur Fuller) Date: Tue, 25 Mar 2008 07:01:10 -0400 Subject: [AccessD] Search MDBs for specific table name In-Reply-To: <005001c88e18$6cd18990$0300a8c0@danwaters> References: <000a01c88b23$57377e70$8119fea9@LTVM> <004601c88ddc$1aac4c40$0201a8c0@M90> <280C9402D9C24B7A8BAB5639BF036B69@BPCS> <005001c88e18$6cd18990$0300a8c0@danwaters> Message-ID: <29f585dd0803250401q6d5035f8j52a458ee94d452a2@mail.gmail.com> Thanks to Michael's pointer, I just downloaded XFind and it works very nicely. A. From jwcolby at colbyconsulting.com Tue Mar 25 07:40:16 2008 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 25 Mar 2008 08:40:16 -0400 Subject: [AccessD] Find characters in one string that are in another: was RE: Treat string as array In-Reply-To: References: Message-ID: <006201c88e75$61851a90$0201a8c0@M90> ROTFLMAO. If you look back at my ORIGINAL post, there were no spaces specified. It is rather like the old "Whisper in the ear of the person on your left and see what comes back in your right ear." The more I try to explain, the worse the results. >How can I turn a string into an array? I need to iterate through the characters of a string. >For each char in str > dosomething char >Next char That seems like a simple enough question. >How can I turn a string into an array? I need to iterate through the characters of a string. FOR THE RECORD... I UNDERSTAND MID() QUITE WELL. Also for the record, there were precisely TWO suggestions that indicated that the reader had any concept of what I was asking. One from Gustav and the other from William. However I would like to thank everyone for the responses. Further for the record, I have already implemented the mid() scenario (days ago) and solved the immediate problem which was: I was trying to search for characters in a password that are also in a "must contain" string. "The password must contain one 'special character' ~!@#$%^&*()_+ and the password must contain one 'number' 1234567890. Given a password "The thread that went south", how do I determine if it contains any special characters or numbers. Of course the obvious (and much suggested) solution was mid(), which in the end I just used. It was fast and easy and ugly. I was hoping for a more elegant and readable solution MyArr = SomeConvFunction(strPassword) for each chr in MyArray if chr instr(cstrSpecialChars) then We're done so get out. endif next chr Compare the readability of that to: Function mStrContainsChars(strToTest As String, strCharsTestedAgainst As String) As Boolean Dim intPtr As Integer Dim strChar As Variant For intPtr = 1 To Len(strToTest) strChar = Mid(strToTest, intPtr, 1) If InStr(strCharsTestedAgainst, strChar) Then mStrContainsChars = True Exit Function End If Next intPtr End Function I did get a pair of possible solutions (which I have not tested yet, given that I already coded the mid() solution. Hey Gustav... "how do I ..." Pass it on. ;-) 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, March 25, 2008 3:42 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Treat string as array Hi A.D. Very creative solution! For how long time will JC chew on this dry stick? Next step is probably that the spaces he specified originally which should not be present should be present anyway or perhaps replaced by a tab or a white space! Lots of options out there ... /gustav >>> adtp at airtelmail.in 25-03-2008 08:06 >>> A very concise version of Function Fn_ConvStringToArray(), using only a single statement, is placed below. It returns an array, so that individual characters of input string get placed in individual elements of the array. Note - In fact, right side of assignment statement (A) below, can be used directly, as it is made up purely of access built-in functions. Fn_ConvStringToArray() acts merely as a wrapper function, for sake of convenience. A.D.Tejpal ------------ ' Code to be placed in VBA module '================================ Function Fn_ConvStringToArray(StrInput _ As String) As Variant Fn_ConvStringToArray = _ Split(Format(StrInput, _ Mid(Replace(String(Len(StrInput), _ "~"), "~", "~@"), 2)), "~") ' (A) End Function '================================ From dwaters at usinternet.com Tue Mar 25 07:51:01 2008 From: dwaters at usinternet.com (Dan Waters) Date: Tue, 25 Mar 2008 07:51:01 -0500 Subject: [AccessD] Cancel Produces Error In-Reply-To: <008101c88e24$64ce07d0$0301a8c0@HAL9005> References: <005c01c88e03$c90d7e90$0301a8c0@HAL9005><004f01c88e14$b6a2ecc0$0300a8c0@danwaters> <008101c88e24$64ce07d0$0301a8c0@HAL9005> Message-ID: <000901c88e76$e1496d70$0300a8c0@danwaters> Yes Rocky I'm serious. Like I said - eventually, in a bound form. Once in a while, DoCmd.RunCommand acCmdDeleteRecord would not work and I wasn't able to find out why. Saving the records? Of course. Remove/replace the recordset? What would your form be looking at once you delete the record - a bunch of fields with Name# in them? Also, you probably want to display a blank record or perhaps move to a specific record. Turn echo off/on? Your users may worry about all that screen flashing. I'm recommending this because you'll get predictable results! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Monday, March 24, 2008 10:00 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Cancel Produces Error (Is he serious?) Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, March 24, 2008 6:08 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Cancel Produces Error Hi Rocky, Eventually I found that only the following would consistently delete a record in a bound form. Step 0: Stop screen redisplay Application.Echo False Step 1: Save any unsaved record(s) If Me.Dirty = True Then Me.Dirty = False Step 2: Save the record ID lngTableID = txtTableID Step 3: Remove the recordsource from the form Me.Recordsource = "" Step 4: Delete the record Stg = "DELETE * FROM tblTable WHERE TableID = " & lngTableID DoCmd.SetWarnings False DoCmd.RunSQL stg DoCmd.SetWarnings True Step 5: Replace the recordsource (optional) Me.Recordsource = [something] Step 6: Redisplay the screen (you must error trap this procedure and include this same line if the procedure errors out) Application.Echo True Good Luck! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Monday, March 24, 2008 6:07 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Cancel Produces Error Dear List: The following code for deleting a record, generated by the wiz errors on the second statement if the user clicks cancel to the warning message. DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70 DoCmd.DoMenuItem acFormBar, acEditMenu, 6, , acMenuVer70 Is there a right way around this? Placing On Error Resume Next between the statements would probably work but doesn't seem right. MTIA Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG. Version: 7.5.519 / Virus Database: 269.22.0/1341 - Release Date: 3/24/2008 3:03 PM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Tue Mar 25 08:14:20 2008 From: dwaters at usinternet.com (Dan Waters) Date: Tue, 25 Mar 2008 08:14:20 -0500 Subject: [AccessD] Cancel Produces Error In-Reply-To: References: Message-ID: <001301c88e7a$232a2ce0$0300a8c0@danwaters> Gustav - could you post an example? Thanks, Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, March 25, 2008 3:25 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Cancel Produces Error Hi Dan and Rocky One much cleaner method is to delete from the RecordsetClone. Use Bookmark to locate the record and BeforeDelete to confirm. Lookup the on-line help on Response and acDataErrContinue. /gustav >>> dwaters at usinternet.com 25-03-2008 02:08 >>> Hi Rocky, Eventually I found that only the following would consistently delete a record in a bound form. Step 0: Stop screen redisplay Application.Echo False Step 1: Save any unsaved record(s) If Me.Dirty = True Then Me.Dirty = False Step 2: Save the record ID lngTableID = txtTableID Step 3: Remove the recordsource from the form Me.Recordsource = "" Step 4: Delete the record Stg = "DELETE * FROM tblTable WHERE TableID = " & lngTableID DoCmd.SetWarnings False DoCmd.RunSQL stg DoCmd.SetWarnings True Step 5: Replace the recordsource (optional) Me.Recordsource = [something] Step 6: Redisplay the screen (you must error trap this procedure and include this same line if the procedure errors out) Application.Echo True Good Luck! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Monday, March 24, 2008 6:07 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Cancel Produces Error Dear List: The following code for deleting a record, generated by the wiz errors on the second statement if the user clicks cancel to the warning message. DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70 DoCmd.DoMenuItem acFormBar, acEditMenu, 6, , acMenuVer70 Is there a right way around this? Placing On Error Resume Next between the statements would probably work but doesn't seem right. MTIA Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Tue Mar 25 08:22:03 2008 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Tue, 25 Mar 2008 13:22:03 -0000 Subject: [AccessD] Cancel Produces Error In-Reply-To: <000901c88e76$e1496d70$0300a8c0@danwaters> References: <005c01c88e03$c90d7e90$0301a8c0@HAL9005><004f01c88e14$b6a2ecc0$0300a8c0@danwaters><008101c88e24$64ce07d0$0301a8c0@HAL9005> <000901c88e76$e1496d70$0300a8c0@danwaters> Message-ID: <009201c88e7b$38669e30$8119fea9@LTVM> Stick Me.dirty= false immediately before DoCmd.RunCommand acCmdDeleteRecord Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, March 25, 2008 12:51 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Cancel Produces Error Yes Rocky I'm serious. Like I said - eventually, in a bound form. Once in a while, DoCmd.RunCommand acCmdDeleteRecord would not work and I wasn't able to find out why. Saving the records? Of course. Remove/replace the recordset? What would your form be looking at once you delete the record - a bunch of fields with Name# in them? Also, you probably want to display a blank record or perhaps move to a specific record. Turn echo off/on? Your users may worry about all that screen flashing. I'm recommending this because you'll get predictable results! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Monday, March 24, 2008 10:00 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Cancel Produces Error (Is he serious?) Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, March 24, 2008 6:08 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Cancel Produces Error Hi Rocky, Eventually I found that only the following would consistently delete a record in a bound form. Step 0: Stop screen redisplay Application.Echo False Step 1: Save any unsaved record(s) If Me.Dirty = True Then Me.Dirty = False Step 2: Save the record ID lngTableID = txtTableID Step 3: Remove the recordsource from the form Me.Recordsource = "" Step 4: Delete the record Stg = "DELETE * FROM tblTable WHERE TableID = " & lngTableID DoCmd.SetWarnings False DoCmd.RunSQL stg DoCmd.SetWarnings True Step 5: Replace the recordsource (optional) Me.Recordsource = [something] Step 6: Redisplay the screen (you must error trap this procedure and include this same line if the procedure errors out) Application.Echo True Good Luck! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Monday, March 24, 2008 6:07 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Cancel Produces Error Dear List: The following code for deleting a record, generated by the wiz errors on the second statement if the user clicks cancel to the warning message. DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70 DoCmd.DoMenuItem acFormBar, acEditMenu, 6, , acMenuVer70 Is there a right way around this? Placing On Error Resume Next between the statements would probably work but doesn't seem right. MTIA Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG. Version: 7.5.519 / Virus Database: 269.22.0/1341 - Release Date: 3/24/2008 3:03 PM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Mar 25 08:34:53 2008 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 25 Mar 2008 09:34:53 -0400 Subject: [AccessD] Cancel Produces Error In-Reply-To: <009201c88e7b$38669e30$8119fea9@LTVM> References: <005c01c88e03$c90d7e90$0301a8c0@HAL9005><004f01c88e14$b6a2ecc0$0300a8c0@danwaters><008101c88e24$64ce07d0$0301a8c0@HAL9005><000901c88e76$e1496d70$0300a8c0@danwaters> <009201c88e7b$38669e30$8119fea9@LTVM> Message-ID: <006601c88e7d$10340540$0201a8c0@M90> And then me.requery immediately AFTER the delete record 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 Max Wanadoo Sent: Tuesday, March 25, 2008 9:22 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Cancel Produces Error Stick Me.dirty= false immediately before DoCmd.RunCommand acCmdDeleteRecord Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, March 25, 2008 12:51 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Cancel Produces Error Yes Rocky I'm serious. Like I said - eventually, in a bound form. Once in a while, DoCmd.RunCommand acCmdDeleteRecord would not work and I wasn't able to find out why. Saving the records? Of course. Remove/replace the recordset? What would your form be looking at once you delete the record - a bunch of fields with Name# in them? Also, you probably want to display a blank record or perhaps move to a specific record. Turn echo off/on? Your users may worry about all that screen flashing. I'm recommending this because you'll get predictable results! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Monday, March 24, 2008 10:00 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Cancel Produces Error (Is he serious?) Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, March 24, 2008 6:08 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Cancel Produces Error Hi Rocky, Eventually I found that only the following would consistently delete a record in a bound form. Step 0: Stop screen redisplay Application.Echo False Step 1: Save any unsaved record(s) If Me.Dirty = True Then Me.Dirty = False Step 2: Save the record ID lngTableID = txtTableID Step 3: Remove the recordsource from the form Me.Recordsource = "" Step 4: Delete the record Stg = "DELETE * FROM tblTable WHERE TableID = " & lngTableID DoCmd.SetWarnings False DoCmd.RunSQL stg DoCmd.SetWarnings True Step 5: Replace the recordsource (optional) Me.Recordsource = [something] Step 6: Redisplay the screen (you must error trap this procedure and include this same line if the procedure errors out) Application.Echo True Good Luck! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Monday, March 24, 2008 6:07 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Cancel Produces Error Dear List: The following code for deleting a record, generated by the wiz errors on the second statement if the user clicks cancel to the warning message. DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70 DoCmd.DoMenuItem acFormBar, acEditMenu, 6, , acMenuVer70 Is there a right way around this? Placing On Error Resume Next between the statements would probably work but doesn't seem right. MTIA Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG. Version: 7.5.519 / Virus Database: 269.22.0/1341 - Release Date: 3/24/2008 3:03 PM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Tue Mar 25 09:43:16 2008 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Tue, 25 Mar 2008 14:43:16 -0000 Subject: [AccessD] Find characters in one string that are in another: wasRE: Treat string as array In-Reply-To: <006201c88e75$61851a90$0201a8c0@M90> References: <006201c88e75$61851a90$0201a8c0@M90> Message-ID: <00b101c88e86$90c94310$8119fea9@LTVM> Aha! Now we get the question... >I was trying to search for characters in a password that are also in a "must contain" string. >"The password must contain one 'special character' ~!@#$%^&*()_+ and the password must contain one 'number' 1234567890. >Given a password "The thread that went south", how do I determine if it contains any special characters or numbers. Whew! Took a while to drag it out of him folks but we got there in the end. Moral: Give JC rubbish answers, he gets frustrated, QED he posts the correct question. Rolls Eyes! JC: Don't know if RegExp will solve it elegantly ;-) but worth a sly glance. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, March 25, 2008 12:40 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Find characters in one string that are in another: wasRE: Treat string as array ROTFLMAO. If you look back at my ORIGINAL post, there were no spaces specified. It is rather like the old "Whisper in the ear of the person on your left and see what comes back in your right ear." The more I try to explain, the worse the results. >How can I turn a string into an array? I need to iterate through the characters of a string. >For each char in str > dosomething char >Next char That seems like a simple enough question. >How can I turn a string into an array? I need to iterate through the characters of a string. FOR THE RECORD... I UNDERSTAND MID() QUITE WELL. Also for the record, there were precisely TWO suggestions that indicated that the reader had any concept of what I was asking. One from Gustav and the other from William. However I would like to thank everyone for the responses. Further for the record, I have already implemented the mid() scenario (days ago) and solved the immediate problem which was: I was trying to search for characters in a password that are also in a "must contain" string. "The password must contain one 'special character' ~!@#$%^&*()_+ and the password must contain one 'number' 1234567890. Given a password "The thread that went south", how do I determine if it contains any special characters or numbers. Of course the obvious (and much suggested) solution was mid(), which in the end I just used. It was fast and easy and ugly. I was hoping for a more elegant and readable solution MyArr = SomeConvFunction(strPassword) for each chr in MyArray if chr instr(cstrSpecialChars) then We're done so get out. endif next chr Compare the readability of that to: Function mStrContainsChars(strToTest As String, strCharsTestedAgainst As String) As Boolean Dim intPtr As Integer Dim strChar As Variant For intPtr = 1 To Len(strToTest) strChar = Mid(strToTest, intPtr, 1) If InStr(strCharsTestedAgainst, strChar) Then mStrContainsChars = True Exit Function End If Next intPtr End Function I did get a pair of possible solutions (which I have not tested yet, given that I already coded the mid() solution. Hey Gustav... "how do I ..." Pass it on. ;-) 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, March 25, 2008 3:42 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Treat string as array Hi A.D. Very creative solution! For how long time will JC chew on this dry stick? Next step is probably that the spaces he specified originally which should not be present should be present anyway or perhaps replaced by a tab or a white space! Lots of options out there ... /gustav >>> adtp at airtelmail.in 25-03-2008 08:06 >>> A very concise version of Function Fn_ConvStringToArray(), using only a single statement, is placed below. It returns an array, so that individual characters of input string get placed in individual elements of the array. Note - In fact, right side of assignment statement (A) below, can be used directly, as it is made up purely of access built-in functions. Fn_ConvStringToArray() acts merely as a wrapper function, for sake of convenience. A.D.Tejpal ------------ ' Code to be placed in VBA module '================================ Function Fn_ConvStringToArray(StrInput _ As String) As Variant Fn_ConvStringToArray = _ Split(Format(StrInput, _ Mid(Replace(String(Len(StrInput), _ "~"), "~", "~@"), 2)), "~") ' (A) End Function '================================ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Tue Mar 25 10:01:08 2008 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 25 Mar 2008 11:01:08 -0400 Subject: [AccessD] Find characters in one string that are in another:wasRE: Treat string as array In-Reply-To: <00b101c88e86$90c94310$8119fea9@LTVM> References: <006201c88e75$61851a90$0201a8c0@M90> <00b101c88e86$90c94310$8119fea9@LTVM> Message-ID: <008d01c88e89$0ec5ffe0$0201a8c0@M90> LOL. Turn a string into an array. Turn a string into an ARRAY. TURN A STRING INTO AN ARRAY. That was my question. Why I want to do it is irrelevant. And yea, Regex probably would work, but I did not have time to spend a week learning a useful but EXTREMELY arcane syntax to solve a 5 minute problem. In fact I didn't have time to answer 25 suggestions having nothing to do with TURNING A STRING INTO AN ARRAY. Sigh. ;-) 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 Max Wanadoo Sent: Tuesday, March 25, 2008 10:43 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Find characters in one string that are in another:wasRE: Treat string as array Aha! Now we get the question... >I was trying to search for characters in a password that are also in a "must contain" string. >"The password must contain one 'special character' ~!@#$%^&*()_+ and >the password must contain one 'number' 1234567890. >Given a password "The thread that went south", how do I determine if it contains any special characters or numbers. Whew! Took a while to drag it out of him folks but we got there in the end. Moral: Give JC rubbish answers, he gets frustrated, QED he posts the correct question. Rolls Eyes! JC: Don't know if RegExp will solve it elegantly ;-) but worth a sly glance. Max From Lambert.Heenan at AIG.com Tue Mar 25 10:14:57 2008 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Tue, 25 Mar 2008 10:14:57 -0500 Subject: [AccessD] Find characters in one string that are in another:w asRE: Treat string as array Message-ID: <34C8A2AB1EF3564CB0D64DB6AFFDD5C211DF663B@XLIVMBX35bkup.aig.com> But John, didn't you see Gustav's response very early on in the thread suggesting you use StrConv? Armed with that clue your dream of using a simple for next loop is easily achieved... Function StringArray(str As String) As Variant Dim byArray() As Byte byArray = StrConv(str, vbFromUnicode) StringArray = byArray End Function Sub PlayWithStringArray(str As String) Dim byArray() As Byte Dim c As Variant byArray = StringArray(str) For Each c In byArray() Debug.Print c; " "; Chr(c); Next c Debug.Print vbCrLf; str End Sub You're on the money though about the number of answers that seemed not to be connected with the question! :-) Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, March 25, 2008 11:01 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Find characters in one string that are in another:wasRE: Treat string as array LOL. Turn a string into an array. Turn a string into an ARRAY. TURN A STRING INTO AN ARRAY. That was my question. Why I want to do it is irrelevant. And yea, Regex probably would work, but I did not have time to spend a week learning a useful but EXTREMELY arcane syntax to solve a 5 minute problem. In fact I didn't have time to answer 25 suggestions having nothing to do with TURNING A STRING INTO AN ARRAY. Sigh. ;-) 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 Max Wanadoo Sent: Tuesday, March 25, 2008 10:43 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Find characters in one string that are in another:wasRE: Treat string as array Aha! Now we get the question... >I was trying to search for characters in a password that are also in a "must contain" string. >"The password must contain one 'special character' ~!@#$%^&*()_+ and >the password must contain one 'number' 1234567890. >Given a password "The thread that went south", how do I determine if it contains any special characters or numbers. Whew! Took a while to drag it out of him folks but we got there in the end. Moral: Give JC rubbish answers, he gets frustrated, QED he posts the correct question. Rolls Eyes! JC: Don't know if RegExp will solve it elegantly ;-) but worth a sly glance. Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mmattys at rochester.rr.com Tue Mar 25 10:28:44 2008 From: mmattys at rochester.rr.com (Michael R Mattys) Date: Tue, 25 Mar 2008 11:28:44 -0400 Subject: [AccessD] Find characters in one string that are inanother:w asRE: Treat string as array References: <34C8A2AB1EF3564CB0D64DB6AFFDD5C211DF663B@XLIVMBX35bkup.aig.com> Message-ID: <010001c88e8c$ebdf3a60$0402a8c0@Laptop> > You're on the money though about the number of answers that seemed not to > be > connected with the question! :-) > > Lambert Bah! - Major Hochstetter, Hogan's Heroes Michael R. Mattys MapPoint & Access Dev www.mattysconsulting.com From jwcolby at colbyconsulting.com Tue Mar 25 10:35:24 2008 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 25 Mar 2008 11:35:24 -0400 Subject: [AccessD] Find characters in one string that are inanother:w asRE: Treat string as array In-Reply-To: <34C8A2AB1EF3564CB0D64DB6AFFDD5C211DF663B@XLIVMBX35bkup.aig.com> References: <34C8A2AB1EF3564CB0D64DB6AFFDD5C211DF663B@XLIVMBX35bkup.aig.com> Message-ID: <009301c88e8d$d936a870$0201a8c0@M90> Well Heenan, that was well beyond the time when I had already just caved and implemented the mid() solution. I will be going back and rewriting using Gustav's solution, I just haven't had the time yet. The nice thing about this list is that so many people are willing to respond, and I REALLY DO appreciate all responses, just want to get that out. I may grouse a bit but people are willing to take time and make suggestions. And of course we have so many keen minds that someone will have the answer if there is one. Don't you agree that Dim byArray() As Byte Dim c As Variant byArray = StrConv(str, vbFromUnicode) For Each c In byArray() Debug.Print c; " "; Chr(c); Next c Is just an elegant solution? It may not be any faster than the mid() but is sooooo much more readable. Not to mention the fact that once it is in an array you can do all kinds of comparisons on each element. 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 Heenan, Lambert Sent: Tuesday, March 25, 2008 11:15 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Find characters in one string that are inanother:w asRE: Treat string as array But John, didn't you see Gustav's response very early on in the thread suggesting you use StrConv? Armed with that clue your dream of using a simple for next loop is easily achieved... Function StringArray(str As String) As Variant Dim byArray() As Byte byArray = StrConv(str, vbFromUnicode) StringArray = byArray End Function Sub PlayWithStringArray(str As String) Dim byArray() As Byte Dim c As Variant byArray = StringArray(str) For Each c In byArray() Debug.Print c; " "; Chr(c); Next c Debug.Print vbCrLf; str End Sub You're on the money though about the number of answers that seemed not to be connected with the question! :-) Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, March 25, 2008 11:01 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Find characters in one string that are in another:wasRE: Treat string as array LOL. Turn a string into an array. Turn a string into an ARRAY. TURN A STRING INTO AN ARRAY. That was my question. Why I want to do it is irrelevant. And yea, Regex probably would work, but I did not have time to spend a week learning a useful but EXTREMELY arcane syntax to solve a 5 minute problem. In fact I didn't have time to answer 25 suggestions having nothing to do with TURNING A STRING INTO AN ARRAY. Sigh. ;-) 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 Max Wanadoo Sent: Tuesday, March 25, 2008 10:43 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Find characters in one string that are in another:wasRE: Treat string as array Aha! Now we get the question... >I was trying to search for characters in a password that are also in a "must contain" string. >"The password must contain one 'special character' ~!@#$%^&*()_+ and >the password must contain one 'number' 1234567890. >Given a password "The thread that went south", how do I determine if it contains any special characters or numbers. Whew! Took a while to drag it out of him folks but we got there in the end. Moral: Give JC rubbish answers, he gets frustrated, QED he posts the correct question. Rolls Eyes! JC: Don't know if RegExp will solve it elegantly ;-) but worth a sly glance. Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Tue Mar 25 10:36:16 2008 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 25 Mar 2008 11:36:16 -0400 Subject: [AccessD] Find characters in one string that areinanother:w asRE: Treat string as array In-Reply-To: <010001c88e8c$ebdf3a60$0402a8c0@Laptop> References: <34C8A2AB1EF3564CB0D64DB6AFFDD5C211DF663B@XLIVMBX35bkup.aig.com> <010001c88e8c$ebdf3a60$0402a8c0@Laptop> Message-ID: <009401c88e8d$f7afb6c0$0201a8c0@M90> ROTFLMAO. 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 Michael R Mattys Sent: Tuesday, March 25, 2008 11:29 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Find characters in one string that areinanother:w asRE: Treat string as array > You're on the money though about the number of answers that seemed not > to be connected with the question! :-) > > Lambert Bah! - Major Hochstetter, Hogan's Heroes Michael R. Mattys MapPoint & Access Dev www.mattysconsulting.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 Tue Mar 25 10:48:47 2008 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Tue, 25 Mar 2008 10:48:47 -0500 Subject: [AccessD] Find characters in one string that are inanother:w asRE: Treat string as array Message-ID: <34C8A2AB1EF3564CB0D64DB6AFFDD5C211DF6641@XLIVMBX35bkup.aig.com> Just for the record. "Heenan" is by surname. But don't worry about it, I've forever coming across people who can't cope with the idea of "Lambert" as a first name. :-) Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, March 25, 2008 11:35 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Find characters in one string that are inanother:w asRE: Treat string as array Well Heenan, that was well beyond the time when I had already just caved and implemented the mid() solution. I will be going back and rewriting using Gustav's solution, I just haven't had the time yet. The nice thing about this list is that so many people are willing to respond, and I REALLY DO appreciate all responses, just want to get that out. I may grouse a bit but people are willing to take time and make suggestions. And of course we have so many keen minds that someone will have the answer if there is one. Don't you agree that Dim byArray() As Byte Dim c As Variant byArray = StrConv(str, vbFromUnicode) For Each c In byArray() Debug.Print c; " "; Chr(c); Next c Is just an elegant solution? It may not be any faster than the mid() but is sooooo much more readable. Not to mention the fact that once it is in an array you can do all kinds of comparisons on each element. John W. Colby Colby Consulting From jwcolby at colbyconsulting.com Tue Mar 25 10:54:47 2008 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 25 Mar 2008 11:54:47 -0400 Subject: [AccessD] Find characters in one string that are inanother:w asRE: Treat string as array In-Reply-To: <34C8A2AB1EF3564CB0D64DB6AFFDD5C211DF663B@XLIVMBX35bkup.aig.com> References: <34C8A2AB1EF3564CB0D64DB6AFFDD5C211DF663B@XLIVMBX35bkup.aig.com> Message-ID: <009501c88e90$8dd6ab70$0201a8c0@M90> Just an update, I have integrated Gustav's solution in my LWS and now have password rule checking in place. 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 Heenan, Lambert Sent: Tuesday, March 25, 2008 11:15 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Find characters in one string that are inanother:w asRE: Treat string as array But John, didn't you see Gustav's response very early on in the thread suggesting you use StrConv? Armed with that clue your dream of using a simple for next loop is easily achieved... Function StringArray(str As String) As Variant Dim byArray() As Byte byArray = StrConv(str, vbFromUnicode) StringArray = byArray End Function Sub PlayWithStringArray(str As String) Dim byArray() As Byte Dim c As Variant byArray = StringArray(str) For Each c In byArray() Debug.Print c; " "; Chr(c); Next c Debug.Print vbCrLf; str End Sub You're on the money though about the number of answers that seemed not to be connected with the question! :-) Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, March 25, 2008 11:01 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Find characters in one string that are in another:wasRE: Treat string as array LOL. Turn a string into an array. Turn a string into an ARRAY. TURN A STRING INTO AN ARRAY. That was my question. Why I want to do it is irrelevant. And yea, Regex probably would work, but I did not have time to spend a week learning a useful but EXTREMELY arcane syntax to solve a 5 minute problem. In fact I didn't have time to answer 25 suggestions having nothing to do with TURNING A STRING INTO AN ARRAY. Sigh. ;-) John W. Colby Colby Consulting www.ColbyConsulting.com From max.wanadoo at gmail.com Tue Mar 25 10:58:05 2008 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Tue, 25 Mar 2008 15:58:05 -0000 Subject: [AccessD] Find characters in one string that areinanother:w asRE: Treat string as array In-Reply-To: <34C8A2AB1EF3564CB0D64DB6AFFDD5C211DF6641@XLIVMBX35bkup.aig.com> References: <34C8A2AB1EF3564CB0D64DB6AFFDD5C211DF6641@XLIVMBX35bkup.aig.com> Message-ID: <00d301c88e91$04d6d790$8119fea9@LTVM> >can't cope with the idea of "Lambert" as a first name. :-) Have you thought of abbreviating it? (Not Lamb, but Bert) What does your Dad call you in the pub? Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Tuesday, March 25, 2008 3:49 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Find characters in one string that areinanother:w asRE: Treat string as array Just for the record. "Heenan" is by surname. But don't worry about it, I've forever coming across people who can't cope with the idea of "Lambert" as a first name. :-) Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, March 25, 2008 11:35 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Find characters in one string that are inanother:w asRE: Treat string as array Well Heenan, that was well beyond the time when I had already just caved and implemented the mid() solution. I will be going back and rewriting using Gustav's solution, I just haven't had the time yet. The nice thing about this list is that so many people are willing to respond, and I REALLY DO appreciate all responses, just want to get that out. I may grouse a bit but people are willing to take time and make suggestions. And of course we have so many keen minds that someone will have the answer if there is one. Don't you agree that Dim byArray() As Byte Dim c As Variant byArray = StrConv(str, vbFromUnicode) For Each c In byArray() Debug.Print c; " "; Chr(c); Next c Is just an elegant solution? It may not be any faster than the mid() but is sooooo much more readable. Not to mention the fact that once it is in an array you can do all kinds of comparisons on each element. John W. Colby Colby Consulting -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Tue Mar 25 10:58:50 2008 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 25 Mar 2008 11:58:50 -0400 Subject: [AccessD] Find characters in one string that areinanother:w asRE: Treat string as array In-Reply-To: <34C8A2AB1EF3564CB0D64DB6AFFDD5C211DF6641@XLIVMBX35bkup.aig.com> References: <34C8A2AB1EF3564CB0D64DB6AFFDD5C211DF6641@XLIVMBX35bkup.aig.com> Message-ID: <009601c88e91$1ec2e3b0$0201a8c0@M90> Ohhhh... So sorry. I pulled the first name displayed in the "on behalf of..." which of course is the last name. In fact to us Americans, if it isn't smith or jones we won't recognize it anyway. 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 Heenan, Lambert Sent: Tuesday, March 25, 2008 11:49 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Find characters in one string that areinanother:w asRE: Treat string as array Just for the record. "Heenan" is by surname. But don't worry about it, I've forever coming across people who can't cope with the idea of "Lambert" as a first name. :-) Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, March 25, 2008 11:35 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Find characters in one string that are inanother:w asRE: Treat string as array Well Heenan, that was well beyond the time when I had already just caved and implemented the mid() solution. I will be going back and rewriting using Gustav's solution, I just haven't had the time yet. The nice thing about this list is that so many people are willing to respond, and I REALLY DO appreciate all responses, just want to get that out. I may grouse a bit but people are willing to take time and make suggestions. And of course we have so many keen minds that someone will have the answer if there is one. Don't you agree that Dim byArray() As Byte Dim c As Variant byArray = StrConv(str, vbFromUnicode) For Each c In byArray() Debug.Print c; " "; Chr(c); Next c Is just an elegant solution? It may not be any faster than the mid() but is sooooo much more readable. Not to mention the fact that once it is in an array you can do all kinds of comparisons on each element. John W. Colby Colby Consulting -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Tue Mar 25 11:04:15 2008 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 25 Mar 2008 12:04:15 -0400 Subject: [AccessD] Find characters in one string thatareinanother:w asRE: Treat string as array In-Reply-To: <00d301c88e91$04d6d790$8119fea9@LTVM> References: <34C8A2AB1EF3564CB0D64DB6AFFDD5C211DF6641@XLIVMBX35bkup.aig.com> <00d301c88e91$04d6d790$8119fea9@LTVM> Message-ID: <009801c88e91$dffb9c70$0201a8c0@M90> I kinda like Lamb! ;-) 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 Max Wanadoo Sent: Tuesday, March 25, 2008 11:58 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Find characters in one string thatareinanother:w asRE: Treat string as array >can't cope with the idea of "Lambert" as a first name. :-) Have you thought of abbreviating it? (Not Lamb, but Bert) What does your Dad call you in the pub? Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Tuesday, March 25, 2008 3:49 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Find characters in one string that areinanother:w asRE: Treat string as array Just for the record. "Heenan" is by surname. But don't worry about it, I've forever coming across people who can't cope with the idea of "Lambert" as a first name. :-) Lambert From ssharkins at gmail.com Tue Mar 25 11:09:26 2008 From: ssharkins at gmail.com (Susan Harkins) Date: Tue, 25 Mar 2008 12:09:26 -0400 Subject: [AccessD] Question from member regarding passing passwords Message-ID: <028101c88e92$aeb954d0$4b3a8343@SusanOne> Steve Turner's messages aren't making it to the list, so I'm passing along this message for him. Susan H. The question I have left is can you pass the password for a SQL Express database in code so you don't have to type it in. I have an excel spread sheet that pulls the active jobs from our database so we can select them in a combo box to charge mileage for our vans. The database was in a Dbase file but we changed it to SQL Express. This is now the database for our Custom Time Sheet program and every time you access the thing through Access or Excel you have to type in this password. The old programmer put the password in, we really don't even need a password for the data, and the new programmer fixing some of the problems left by him hasn't had time to see if it can be eliminated. From ssharkins at gmail.com Tue Mar 25 11:11:48 2008 From: ssharkins at gmail.com (Susan Harkins) Date: Tue, 25 Mar 2008 12:11:48 -0400 Subject: [AccessD] For Bryan (Fw: Question from member regarding passing passwords) Message-ID: <02a501c88e92$fbadf430$4b3a8343@SusanOne> Bryan, when you see this, please check into the status of Steve Turner's account to AccessD. I tried to contact you privately, but it bounced. My apologies to the list. Susan H. > Steve Turner's messages aren't making it to the list, so I'm passing along > this message for him. From Lambert.Heenan at AIG.com Tue Mar 25 11:14:28 2008 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Tue, 25 Mar 2008 11:14:28 -0500 Subject: [AccessD] Find characters in one string that areinanother:w asRE: Treat string as array Message-ID: <34C8A2AB1EF3564CB0D64DB6AFFDD5C211DF6644@XLIVMBX35bkup.aig.com> The fact that other people have trouble wrapping their heads around my first name in no way induces me to change or shorten it. I'm quite happy with the full deal. I tolerate work colleagues calling me Lamb, but it's Lambert to the rest of the world. :-) Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Tuesday, March 25, 2008 11:58 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Find characters in one string that areinanother:w asRE: Treat string as array >can't cope with the idea of "Lambert" as a first name. :-) Have you thought of abbreviating it? (Not Lamb, but Bert) What does your Dad call you in the pub? Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Tuesday, March 25, 2008 3:49 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Find characters in one string that areinanother:w asRE: Treat string as array Just for the record. "Heenan" is by surname. But don't worry about it, I've forever coming across people who can't cope with the idea of "Lambert" as a first name. :-) Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, March 25, 2008 11:35 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Find characters in one string that are inanother:w asRE: Treat string as array Well Heenan, that was well beyond the time when I had already just caved and implemented the mid() solution. I will be going back and rewriting using Gustav's solution, I just haven't had the time yet. The nice thing about this list is that so many people are willing to respond, and I REALLY DO appreciate all responses, just want to get that out. I may grouse a bit but people are willing to take time and make suggestions. And of course we have so many keen minds that someone will have the answer if there is one. Don't you agree that Dim byArray() As Byte Dim c As Variant byArray = StrConv(str, vbFromUnicode) For Each c In byArray() Debug.Print c; " "; Chr(c); Next c Is just an elegant solution? It may not be any faster than the mid() but is sooooo much more readable. Not to mention the fact that once it is in an array you can do all kinds of comparisons on each element. John W. Colby Colby Consulting -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Tue Mar 25 11:14:55 2008 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Tue, 25 Mar 2008 16:14:55 -0000 Subject: [AccessD] Find characters in one string that areinanother:w asRE: Treat string as array In-Reply-To: <009501c88e90$8dd6ab70$0201a8c0@M90> References: <34C8A2AB1EF3564CB0D64DB6AFFDD5C211DF663B@XLIVMBX35bkup.aig.com> <009501c88e90$8dd6ab70$0201a8c0@M90> Message-ID: <00e601c88e93$5ee6f470$8119fea9@LTVM> You might not want this then, but it is an alternative. Max Function tryRegEx() Dim lngResult As Long, strPwd As String strPwd = "~12+#xyz" lngResult = (RegExpTest("\W", strPwd)) ' uppercase W ( Matches any nonword character) If lngResult > 0 Then MsgBox "Test 1: " & lngResult & " matched - as non-alph" lngResult = (RegExpTest("\w", strPwd)) ' lowecase w ( Matches any word character)) If lngResult > 0 Then MsgBox "Test 2: " & lngResult & " matched as alpha" lngResult = (RegExpTest("\d", strPwd)) ' lowercase d ( Matches any decimal digit.) If lngResult > 0 Then MsgBox "Test 3: " & lngResult & " matched - as decimal" End Function Function RegExpTest(patrn, strng) As Long ' Set reference to Microsoft vbscript regular expressions 5.5 ' Cheat Sheet available at http://regexlib.com/CheatSheet.aspx Dim RegEx As New VBScript_RegExp_55.RegExp Dim Match, Matches, RetStr ' Create variable. Set RegEx = New RegExp ' Create a regular expression. RegEx.Pattern = patrn ' Set pattern. RegEx.IgnoreCase = True ' Set case insensitivity. RegEx.Global = True ' Set global applicability. Set Matches = RegEx.Execute(strng) ' Execute search. RegExpTest = 0 For Each Match In Matches ' Iterate Matches collection. RetStr = RetStr & "Match found at position " RetStr = RetStr & Match.FirstIndex & ". Match Value is '" RetStr = RetStr & Match.Value & "'." & vbCrLf RegExpTest = RegExpTest + 1 Next End Function -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, March 25, 2008 3:55 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Find characters in one string that areinanother:w asRE: Treat string as array Just an update, I have integrated Gustav's solution in my LWS and now have password rule checking in place. 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 Heenan, Lambert Sent: Tuesday, March 25, 2008 11:15 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Find characters in one string that are inanother:w asRE: Treat string as array But John, didn't you see Gustav's response very early on in the thread suggesting you use StrConv? Armed with that clue your dream of using a simple for next loop is easily achieved... Function StringArray(str As String) As Variant Dim byArray() As Byte byArray = StrConv(str, vbFromUnicode) StringArray = byArray End Function Sub PlayWithStringArray(str As String) Dim byArray() As Byte Dim c As Variant byArray = StringArray(str) For Each c In byArray() Debug.Print c; " "; Chr(c); Next c Debug.Print vbCrLf; str End Sub You're on the money though about the number of answers that seemed not to be connected with the question! :-) Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, March 25, 2008 11:01 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Find characters in one string that are in another:wasRE: Treat string as array LOL. Turn a string into an array. Turn a string into an ARRAY. TURN A STRING INTO AN ARRAY. That was my question. Why I want to do it is irrelevant. And yea, Regex probably would work, but I did not have time to spend a week learning a useful but EXTREMELY arcane syntax to solve a 5 minute problem. In fact I didn't have time to answer 25 suggestions having nothing to do with TURNING A STRING INTO AN ARRAY. Sigh. ;-) 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 Tue Mar 25 11:28:11 2008 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 25 Mar 2008 12:28:11 -0400 Subject: [AccessD] Find characters in one string thatareinanother:w asRE: Treat string as array In-Reply-To: <00e601c88e93$5ee6f470$8119fea9@LTVM> References: <34C8A2AB1EF3564CB0D64DB6AFFDD5C211DF663B@XLIVMBX35bkup.aig.com><009501c88e90$8dd6ab70$0201a8c0@M90> <00e601c88e93$5ee6f470$8119fea9@LTVM> Message-ID: <009c01c88e95$38473080$0201a8c0@M90> Max, Actually I do appreciate the example. I have always wanted to learn RegEx just never had the time. For this application it is rather like aiming an ICBM at the old fly. It sure is short though once you have RegExpTest() written. 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 Max Wanadoo Sent: Tuesday, March 25, 2008 12:15 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Find characters in one string thatareinanother:w asRE: Treat string as array You might not want this then, but it is an alternative. Max Function tryRegEx() Dim lngResult As Long, strPwd As String strPwd = "~12+#xyz" lngResult = (RegExpTest("\W", strPwd)) ' uppercase W ( Matches any nonword character) If lngResult > 0 Then MsgBox "Test 1: " & lngResult & " matched - as non-alph" lngResult = (RegExpTest("\w", strPwd)) ' lowecase w ( Matches any word character)) If lngResult > 0 Then MsgBox "Test 2: " & lngResult & " matched as alpha" lngResult = (RegExpTest("\d", strPwd)) ' lowercase d ( Matches any decimal digit.) If lngResult > 0 Then MsgBox "Test 3: " & lngResult & " matched - as decimal" End Function Function RegExpTest(patrn, strng) As Long ' Set reference to Microsoft vbscript regular expressions 5.5 ' Cheat Sheet available at http://regexlib.com/CheatSheet.aspx Dim RegEx As New VBScript_RegExp_55.RegExp Dim Match, Matches, RetStr ' Create variable. Set RegEx = New RegExp ' Create a regular expression. RegEx.Pattern = patrn ' Set pattern. RegEx.IgnoreCase = True ' Set case insensitivity. RegEx.Global = True ' Set global applicability. Set Matches = RegEx.Execute(strng) ' Execute search. RegExpTest = 0 For Each Match In Matches ' Iterate Matches collection. RetStr = RetStr & "Match found at position " RetStr = RetStr & Match.FirstIndex & ". Match Value is '" RetStr = RetStr & Match.Value & "'." & vbCrLf RegExpTest = RegExpTest + 1 Next End Function -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, March 25, 2008 3:55 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Find characters in one string that areinanother:w asRE: Treat string as array Just an update, I have integrated Gustav's solution in my LWS and now have password rule checking in place. 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 Heenan, Lambert Sent: Tuesday, March 25, 2008 11:15 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Find characters in one string that are inanother:w asRE: Treat string as array But John, didn't you see Gustav's response very early on in the thread suggesting you use StrConv? Armed with that clue your dream of using a simple for next loop is easily achieved... Function StringArray(str As String) As Variant Dim byArray() As Byte byArray = StrConv(str, vbFromUnicode) StringArray = byArray End Function Sub PlayWithStringArray(str As String) Dim byArray() As Byte Dim c As Variant byArray = StringArray(str) For Each c In byArray() Debug.Print c; " "; Chr(c); Next c Debug.Print vbCrLf; str End Sub You're on the money though about the number of answers that seemed not to be connected with the question! :-) Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, March 25, 2008 11:01 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Find characters in one string that are in another:wasRE: Treat string as array LOL. Turn a string into an array. Turn a string into an ARRAY. TURN A STRING INTO AN ARRAY. That was my question. Why I want to do it is irrelevant. And yea, Regex probably would work, but I did not have time to spend a week learning a useful but EXTREMELY arcane syntax to solve a 5 minute problem. In fact I didn't have time to answer 25 suggestions having nothing to do with TURNING A STRING INTO AN ARRAY. Sigh. ;-) 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 max.wanadoo at gmail.com Tue Mar 25 12:02:49 2008 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Tue, 25 Mar 2008 17:02:49 -0000 Subject: [AccessD] Find characters in one stringthatareinanother:w asRE: Treat string as array In-Reply-To: <009c01c88e95$38473080$0201a8c0@M90> References: <34C8A2AB1EF3564CB0D64DB6AFFDD5C211DF663B@XLIVMBX35bkup.aig.com><009501c88e90$8dd6ab70$0201a8c0@M90><00e601c88e93$5ee6f470$8119fea9@LTVM> <009c01c88e95$38473080$0201a8c0@M90> Message-ID: <000c01c88e9a$0f3b4730$8119fea9@LTVM> Yes, and it can be made even shorter if you didn't want the actual count or the positioning of the char. Then just throw it the test you want, eg: Eg: if (RegExpTest("\W", strPwd))=0 then "Invalid Pwd" ' \W for a non-word char and your done! Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, March 25, 2008 4:28 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Find characters in one stringthatareinanother:w asRE: Treat string as array Max, Actually I do appreciate the example. I have always wanted to learn RegEx just never had the time. For this application it is rather like aiming an ICBM at the old fly. It sure is short though once you have RegExpTest() written. 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 Max Wanadoo Sent: Tuesday, March 25, 2008 12:15 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Find characters in one string thatareinanother:w asRE: Treat string as array You might not want this then, but it is an alternative. Max Function tryRegEx() Dim lngResult As Long, strPwd As String strPwd = "~12+#xyz" lngResult = (RegExpTest("\W", strPwd)) ' uppercase W ( Matches any nonword character) If lngResult > 0 Then MsgBox "Test 1: " & lngResult & " matched - as non-alph" lngResult = (RegExpTest("\w", strPwd)) ' lowecase w ( Matches any word character)) If lngResult > 0 Then MsgBox "Test 2: " & lngResult & " matched as alpha" lngResult = (RegExpTest("\d", strPwd)) ' lowercase d ( Matches any decimal digit.) If lngResult > 0 Then MsgBox "Test 3: " & lngResult & " matched - as decimal" End Function Function RegExpTest(patrn, strng) As Long ' Set reference to Microsoft vbscript regular expressions 5.5 ' Cheat Sheet available at http://regexlib.com/CheatSheet.aspx Dim RegEx As New VBScript_RegExp_55.RegExp Dim Match, Matches, RetStr ' Create variable. Set RegEx = New RegExp ' Create a regular expression. RegEx.Pattern = patrn ' Set pattern. RegEx.IgnoreCase = True ' Set case insensitivity. RegEx.Global = True ' Set global applicability. Set Matches = RegEx.Execute(strng) ' Execute search. RegExpTest = 0 For Each Match In Matches ' Iterate Matches collection. RetStr = RetStr & "Match found at position " RetStr = RetStr & Match.FirstIndex & ". Match Value is '" RetStr = RetStr & Match.Value & "'." & vbCrLf RegExpTest = RegExpTest + 1 Next End Function -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, March 25, 2008 3:55 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Find characters in one string that areinanother:w asRE: Treat string as array Just an update, I have integrated Gustav's solution in my LWS and now have password rule checking in place. 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 Heenan, Lambert Sent: Tuesday, March 25, 2008 11:15 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Find characters in one string that are inanother:w asRE: Treat string as array But John, didn't you see Gustav's response very early on in the thread suggesting you use StrConv? Armed with that clue your dream of using a simple for next loop is easily achieved... Function StringArray(str As String) As Variant Dim byArray() As Byte byArray = StrConv(str, vbFromUnicode) StringArray = byArray End Function Sub PlayWithStringArray(str As String) Dim byArray() As Byte Dim c As Variant byArray = StringArray(str) For Each c In byArray() Debug.Print c; " "; Chr(c); Next c Debug.Print vbCrLf; str End Sub You're on the money though about the number of answers that seemed not to be connected with the question! :-) Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, March 25, 2008 11:01 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Find characters in one string that are in another:wasRE: Treat string as array LOL. Turn a string into an array. Turn a string into an ARRAY. TURN A STRING INTO AN ARRAY. That was my question. Why I want to do it is irrelevant. And yea, Regex probably would work, but I did not have time to spend a week learning a useful but EXTREMELY arcane syntax to solve a 5 minute problem. In fact I didn't have time to answer 25 suggestions having nothing to do with TURNING A STRING INTO AN ARRAY. Sigh. ;-) 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 shait at stephenhait.com Tue Mar 25 12:06:54 2008 From: shait at stephenhait.com (Stephen Hait) Date: Tue, 25 Mar 2008 13:06:54 -0400 Subject: [AccessD] Question from member regarding passing passwords In-Reply-To: <028101c88e92$aeb954d0$4b3a8343@SusanOne> References: <028101c88e92$aeb954d0$4b3a8343@SusanOne> Message-ID: > The database was in a Dbase file but we changed it to SQL Express. This is > now the database for our Custom Time Sheet program and every time you access > the thing through Access or Excel you have to type in this password. The old > programmer put the password in, we really don't even need a password for the > data, and the new programmer fixing some of the problems left by him hasn't > had time to see if it can be eliminated. One thought: you might try relinking the tables and check "Save password" while doing this. HTH, Stephen From adtp at airtelmail.in Tue Mar 25 12:08:30 2008 From: adtp at airtelmail.in (A.D.Tejpal) Date: Tue, 25 Mar 2008 22:38:30 +0530 Subject: [AccessD] Treat string as array References: Message-ID: <00ef01c88e9a$ed3d8980$0657a27a@personald6374f> Thanks Gustav. The thread had already been resolved vide your excellent suggestion regarding use of StrConv() function with vbFromUnicode as the argument. Both the alternatives address the point originally raised by John. Best wishes, A.D.Tejpal ------------ ----- Original Message ----- From: Gustav Brock To: accessd at databaseadvisors.com Sent: Tuesday, March 25, 2008 13:12 Subject: Re: [AccessD] Treat string as array Hi A.D. Very creative solution! For how long time will JC chew on this dry stick? Next step is probably that the spaces he specified originally which should not be present should be present anyway or perhaps replaced by a tab or a white space! Lots of options out there ... /gustav >>> adtp at airtelmail.in 25-03-2008 08:06 >>> A very concise version of Function Fn_ConvStringToArray(), using only a single statement, is placed below. It returns an array, so that individual characters of input string get placed in individual elements of the array. Note - In fact, right side of assignment statement (A) below, can be used directly, as it is made up purely of access built-in functions. Fn_ConvStringToArray() acts merely as a wrapper function, for sake of convenience. A.D.Tejpal ------------ ' Code to be placed in VBA module '================================ Function Fn_ConvStringToArray(StrInput _ As String) As Variant Fn_ConvStringToArray = _ Split(Format(StrInput, _ Mid(Replace(String(Len(StrInput), _ "~"), "~", "~@"), 2)), "~") ' (A) End Function '================================ From markamatte at hotmail.com Tue Mar 25 15:59:15 2008 From: markamatte at hotmail.com (Mark A Matte) Date: Tue, 25 Mar 2008 20:59:15 +0000 Subject: [AccessD] Search MDBs for specific table name In-Reply-To: <005001c88e18$6cd18990$0300a8c0@danwaters> References: <000a01c88b23$57377e70$8119fea9@LTVM><004601c88ddc$1aac4c40$0201a8c0@M90><280C9402D9C24B7A8BAB5639BF036B69@BPCS> <005001c88e18$6cd18990$0300a8c0@danwaters> Message-ID: Thanks for All of the feedback. Jack was nice enough to send a little code...and then I added some I had from other projects. So far here is what I have. 1. Select your folder/directory 2. Puch the button...(just humor) Anyway...it collects the following: DB Name, DB location ,DB size ,DB Created Date, DB LastUpdate, and all objects in DB. Just about meets my needs, but I was wondering as an Info gathering tool...can anyone think of any other attribute that might be handy to add in? Thanks, Mark A. Matte >Mark, > >Mark,I am resending. The original email was held at databaseadvisors.com because of size.(seeattached email)>Anyway, others may have responded, but the attached DBObjects.zip is myapproach. Hope it is helpful and>timely. > >Jack > From: dwaters at usinternet.com > To: accessd at databaseadvisors.com > Date: Mon, 24 Mar 2008 20:34:53 -0500 > Subject: Re: [AccessD] Search MDBs for specific table name > > Hi Mark, > > 1) Walk through the files in the folder using a collection of files > > 2) Try to import the object(s) you're looking for from each mdb. If you > don't get an error, the object exists. (I've never tried this) > > You can probably use this example from Help: > DoCmd.TransferDatabase acImport, "Microsoft Access", _ > "C:\My Documents\NWSales.mdb", acReport, "NW Sales for April", _ > "Corporate Sales for April" > > 3) Store the name of the mdb's and objects in a table for later reference. > > I want to know if you try this and if it works! > > Good Luck, > Dan > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte > Sent: Monday, March 24, 2008 3:29 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] Search MDBs for specific table name > > > Hello All, > > I need to search a folder with 100's of Access DBs...and find the ones with > a certain table,form,qry, or module name. Any ideas? > > Thanks, > > Mark A. Matte > > > > _________________________________________________________________ > Watch "Cause Effect," a show about real people making a real difference. > Learn more. > http://im.live.com/Messenger/IM/MTV/?source=text_watchcause > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com _________________________________________________________________ Watch ?Cause Effect,? a show about real people making a real difference. Learn more. http://im.live.com/Messenger/IM/MTV/?source=text_watchcause From jedi at charm.net Tue Mar 25 16:58:54 2008 From: jedi at charm.net (Michael Bahr) Date: Tue, 25 Mar 2008 17:58:54 -0400 (EDT) Subject: [AccessD] Find characters in one string that are in another: was RE: Treat string as array In-Reply-To: <006201c88e75$61851a90$0201a8c0@M90> References: <006201c88e75$61851a90$0201a8c0@M90> Message-ID: <1445.24.35.45.228.1206482334.squirrel@mail.expedient.net> John here is a regular expression version of exactly want you specified; a password with 1 special char and 1 digit. There is no sting exploding into arrays, no looping. I have simplified the function so it is very readable. With all due respect you see regex's as ARCANE because you have not learned to use regular expressions. It is very powerful, flexible tool and can do so much to help any programmer. It is not that hard to do once you understand the concepts. BTW, you really should test for other chars not allowed like space(s), etc. I tested this in A2K3. Enjoy, Mike... Function testPW () As Boolean Dim regex As Object Dim pw as variant Dim regexMatch1 As Boolean, regexMatch2 As Boolean Dim regexBadMatch As Boolean Dim s1 As String, s2 As String s1 = "\~|\!|\@|\#|\$|\%|\^|\&|\*|\(|\)|\_|\+" ' s1 = "[~!@#$%^&*()_+]" ' still is a class of chars s2 = " |\?|\<|\>|\{|\}|\:|\;" pw = "hello123World!" ' pw = "hello1World+" ' pw = "hel at lo23World" ' pw = "hello1I%World" Set regex = CreateObject("VBScript.RegExp") regexMatch = True regex.Global = True regex.ignorecase = True ' test for illegal char regex.pattern = s2 regexBadMatch = regex.test(pw) If (regexBadMatch) Then ' invalid password ' abort, exit, terminate, prompt for new password testPW = 0 End If ' test for only 1 special char regex.pattern = s1 regexMatch = regex.test(pw) ' test for only 1 digit regex.pattern = "\d" regexMatch = regex.test(pw) If (regexMatch1 And regexMatch2) Then ' got a valid password testPW = 1 Else ' invalid password testPW = 0 End IF End Function > ROTFLMAO. > > If you look back at my ORIGINAL post, there were no spaces specified. It > is > rather like the old "Whisper in the ear of the person on your left and see > what comes back in your right ear." The more I try to explain, the worse > the results. > >>How can I turn a string into an array? I need to iterate through the > characters of a string. > >>For each char in str >> dosomething char >>Next char > > That seems like a simple enough question. > >>How can I turn a string into an array? I need to iterate through the > characters of a string. > > FOR THE RECORD... I UNDERSTAND MID() QUITE WELL. > > Also for the record, there were precisely TWO suggestions that indicated > that the reader had any concept of what I was asking. One from Gustav and > the other from William. > > However I would like to thank everyone for the responses. > > Further for the record, I have already implemented the mid() scenario > (days > ago) and solved the immediate problem which was: > > I was trying to search for characters in a password that are also in a > "must > contain" string. > > "The password must contain one 'special character' ~!@#$%^&*()_+ and the > password must contain one 'number' 1234567890. > > Given a password "The thread that went south", how do I determine if it > contains any special characters or numbers. > > Of course the obvious (and much suggested) solution was mid(), which in > the > end I just used. It was fast and easy and ugly. > > I was hoping for a more elegant and readable solution > > MyArr = SomeConvFunction(strPassword) > for each chr in MyArray > if chr instr(cstrSpecialChars) then > We're done so get out. > endif > next chr > > Compare the readability of that to: > > Function mStrContainsChars(strToTest As String, strCharsTestedAgainst As > String) As Boolean > Dim intPtr As Integer > Dim strChar As Variant > > For intPtr = 1 To Len(strToTest) > strChar = Mid(strToTest, intPtr, 1) > If InStr(strCharsTestedAgainst, strChar) Then > mStrContainsChars = True > Exit Function > End If > Next intPtr > End Function > > I did get a pair of possible solutions (which I have not tested yet, given > that I already coded the mid() solution. > > Hey Gustav... "how do I ..." > > Pass it on. ;-) > > 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, March 25, 2008 3:42 AM > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] Treat string as array > > Hi A.D. > > Very creative solution! > > For how long time will JC chew on this dry stick? Next step is probably > that > the spaces he specified originally which should not be present should be > present anyway or perhaps replaced by a tab or a white space! Lots of > options out there ... > > /gustav > >>>> adtp at airtelmail.in 25-03-2008 08:06 >>> > A very concise version of Function Fn_ConvStringToArray(), using only > a > single statement, is placed below. It returns an array, so that individual > characters of input string get placed in individual elements of the array. > > Note - In fact, right side of assignment statement (A) below, can be > used directly, as it is made up purely of access built-in functions. > Fn_ConvStringToArray() acts merely as a wrapper function, for sake of > convenience. > > A.D.Tejpal > ------------ > > ' Code to be placed in VBA module > '================================ > Function Fn_ConvStringToArray(StrInput _ > As String) As Variant > Fn_ConvStringToArray = _ > Split(Format(StrInput, _ > Mid(Replace(String(Len(StrInput), _ > "~"), "~", "~@"), 2)), "~") ' (A) > End Function > '================================ > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From cfoust at infostatsystems.com Tue Mar 25 17:31:07 2008 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 25 Mar 2008 15:31:07 -0700 Subject: [AccessD] Find characters in one string that are in another: was RE: Treat string as array In-Reply-To: <1445.24.35.45.228.1206482334.squirrel@mail.expedient.net> References: <006201c88e75$61851a90$0201a8c0@M90> <1445.24.35.45.228.1206482334.squirrel@mail.expedient.net> Message-ID: Yep, I love em. My boss prefers InStr as more "readable", so I don't get to use them very often ... Even in dot net. :-< Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael Bahr Sent: Tuesday, March 25, 2008 2:59 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Find characters in one string that are in another: was RE: Treat string as array John here is a regular expression version of exactly want you specified; a password with 1 special char and 1 digit. There is no sting exploding into arrays, no looping. I have simplified the function so it is very readable. With all due respect you see regex's as ARCANE because you have not learned to use regular expressions. It is very powerful, flexible tool and can do so much to help any programmer. It is not that hard to do once you understand the concepts. BTW, you really should test for other chars not allowed like space(s), etc. I tested this in A2K3. Enjoy, Mike... Function testPW () As Boolean Dim regex As Object Dim pw as variant Dim regexMatch1 As Boolean, regexMatch2 As Boolean Dim regexBadMatch As Boolean Dim s1 As String, s2 As String s1 = "\~|\!|\@|\#|\$|\%|\^|\&|\*|\(|\)|\_|\+" ' s1 = "[~!@#$%^&*()_+]" ' still is a class of chars s2 = " |\?|\<|\>|\{|\}|\:|\;" pw = "hello123World!" ' pw = "hello1World+" ' pw = "hel at lo23World" ' pw = "hello1I%World" Set regex = CreateObject("VBScript.RegExp") regexMatch = True regex.Global = True regex.ignorecase = True ' test for illegal char regex.pattern = s2 regexBadMatch = regex.test(pw) If (regexBadMatch) Then ' invalid password ' abort, exit, terminate, prompt for new password testPW = 0 End If ' test for only 1 special char regex.pattern = s1 regexMatch = regex.test(pw) ' test for only 1 digit regex.pattern = "\d" regexMatch = regex.test(pw) If (regexMatch1 And regexMatch2) Then ' got a valid password testPW = 1 Else ' invalid password testPW = 0 End IF End Function > ROTFLMAO. > > If you look back at my ORIGINAL post, there were no spaces specified. > It is rather like the old "Whisper in the ear of the person on your > left and see what comes back in your right ear." The more I try to > explain, the worse the results. > >>How can I turn a string into an array? I need to iterate through the > characters of a string. > >>For each char in str >> dosomething char >>Next char > > That seems like a simple enough question. > >>How can I turn a string into an array? I need to iterate through the > characters of a string. > > FOR THE RECORD... I UNDERSTAND MID() QUITE WELL. > > Also for the record, there were precisely TWO suggestions that > indicated that the reader had any concept of what I was asking. One > from Gustav and the other from William. > > However I would like to thank everyone for the responses. > > Further for the record, I have already implemented the mid() scenario > (days > ago) and solved the immediate problem which was: > > I was trying to search for characters in a password that are also in a > "must contain" string. > > "The password must contain one 'special character' ~!@#$%^&*()_+ and > the password must contain one 'number' 1234567890. > > Given a password "The thread that went south", how do I determine if > it contains any special characters or numbers. > > Of course the obvious (and much suggested) solution was mid(), which > in the end I just used. It was fast and easy and ugly. > > I was hoping for a more elegant and readable solution > > MyArr = SomeConvFunction(strPassword) > for each chr in MyArray > if chr instr(cstrSpecialChars) then > We're done so get out. > endif > next chr > > Compare the readability of that to: > > Function mStrContainsChars(strToTest As String, strCharsTestedAgainst > As > String) As Boolean > Dim intPtr As Integer > Dim strChar As Variant > > For intPtr = 1 To Len(strToTest) > strChar = Mid(strToTest, intPtr, 1) > If InStr(strCharsTestedAgainst, strChar) Then > mStrContainsChars = True > Exit Function > End If > Next intPtr > End Function > > I did get a pair of possible solutions (which I have not tested yet, > given that I already coded the mid() solution. > > Hey Gustav... "how do I ..." > > Pass it on. ;-) > > 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, March 25, 2008 3:42 AM > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] Treat string as array > > Hi A.D. > > Very creative solution! > > For how long time will JC chew on this dry stick? Next step is > probably that the spaces he specified originally which should not be > present should be present anyway or perhaps replaced by a tab or a > white space! Lots of options out there ... > > /gustav > >>>> adtp at airtelmail.in 25-03-2008 08:06 >>> > A very concise version of Function Fn_ConvStringToArray(), using > only a single statement, is placed below. It returns an array, so that > individual characters of input string get placed in individual > elements of the array. > > Note - In fact, right side of assignment statement (A) below, can > be used directly, as it is made up purely of access built-in functions. > Fn_ConvStringToArray() acts merely as a wrapper function, for sake of > convenience. > > A.D.Tejpal > ------------ > > ' Code to be placed in VBA module > '================================ > Function Fn_ConvStringToArray(StrInput _ > As String) As Variant > Fn_ConvStringToArray = _ > Split(Format(StrInput, _ > Mid(Replace(String(Len(StrInput), _ > "~"), "~", "~@"), 2)), "~") ' (A) > End Function > '================================ > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Darryl.Collins at coles.com.au Tue Mar 25 22:02:48 2008 From: Darryl.Collins at coles.com.au (Darryl Collins) Date: Wed, 26 Mar 2008 14:02:48 +1100 Subject: [AccessD] OT : Was RE: Find characters in one string Message-ID: <49DFE57FB126044B8A8B934E7AEA09ED09FD70C2@WPEXCH05.colesmyer.ad.cmltd.net.au> I imagine it would be "Your Shout Son" (?) hehehehe -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Max Wanadoo Sent: Wednesday, 26 March 2008 2:58 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Find characters in one string thatareinanother:w asRE: Treat string as array >can't cope with the idea of "Lambert" as a first name. :-) Have you thought of abbreviating it? (Not Lamb, but Bert) What does your Dad call you in the pub? Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Tuesday, March 25, 2008 3:49 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Find characters in one string that areinanother:w asRE: Treat string as array Just for the record. "Heenan" is by surname. But don't worry about it, I've forever coming across people who can't cope with the idea of "Lambert" as a first name. :-) Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, March 25, 2008 11:35 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Find characters in one string that are inanother:w asRE: Treat string as array Well Heenan, that was well beyond the time when I had already just caved and implemented the mid() solution. I will be going back and rewriting using Gustav's solution, I just haven't had the time yet. The nice thing about this list is that so many people are willing to respond, and I REALLY DO appreciate all responses, just want to get that out. I may grouse a bit but people are willing to take time and make suggestions. And of course we have so many keen minds that someone will have the answer if there is one. Don't you agree that Dim byArray() As Byte Dim c As Variant byArray = StrConv(str, vbFromUnicode) For Each c In byArray() Debug.Print c; " "; Chr(c); Next c Is just an elegant solution? It may not be any faster than the mid() but is sooooo much more readable. Not to mention the fact that once it is in an array you can do all kinds of comparisons on each element. John W. Colby Colby Consulting -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This email and any attachments may contain privileged and confidential information and are intended for the named addressee only. If you have received this e-mail in error, please notify the sender and delete this e-mail immediately. Any confidentiality, privilege or copyright is not waived or lost because this e-mail has been sent to you in error. It is your responsibility to check this e-mail and any attachments for viruses. No warranty is made that this material is free from computer virus or any other defect or error. Any loss/damage incurred by using this material is not the sender's responsibility. The sender's entire liability will be limited to resupplying the material. From jedi at charm.net Tue Mar 25 22:36:02 2008 From: jedi at charm.net (Michael Bahr) Date: Tue, 25 Mar 2008 23:36:02 -0400 (EDT) Subject: [AccessD] Find characters in one string that are in another: was RE: Treat string as array In-Reply-To: References: <006201c88e75$61851a90$0201a8c0@M90> <1445.24.35.45.228.1206482334.squirrel@mail.expedient.net> Message-ID: <1918.24.35.45.228.1206502562.squirrel@mail.expedient.net> Hi Charlotte, instr only returns a positive value if the string part is found and is rather static in looking for a string. Regex's are dynamic in looking for strings and its derivatives plus it returns a boolean if the pattern is matched--at this point we do not care about the string position. Perhaps you can convince your boss that you want to take things to the next level so you can be more productive. :-) Mike... > Yep, I love em. My boss prefers InStr as more "readable", so I don't > get to use them very often ... Even in dot net. :-< > > Charlotte Foust > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael Bahr > Sent: Tuesday, March 25, 2008 2:59 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Find characters in one string that are in > another: was RE: Treat string as array > > John here is a regular expression version of exactly want you specified; > a password with 1 special char and 1 digit. There is no sting exploding > into arrays, no looping. I have simplified the function so it is very > readable. > > With all due respect you see regex's as ARCANE because you have not > learned to use regular expressions. It is very powerful, flexible tool > and can do so much to help any programmer. It is not that hard to do > once you understand the concepts. > > BTW, you really should test for other chars not allowed like space(s), > etc. I tested this in A2K3. > > Enjoy, Mike... > > > Function testPW () As Boolean > Dim regex As Object > Dim pw as variant > Dim regexMatch1 As Boolean, regexMatch2 As Boolean > Dim regexBadMatch As Boolean > Dim s1 As String, s2 As String > > s1 = "\~|\!|\@|\#|\$|\%|\^|\&|\*|\(|\)|\_|\+" > ' s1 = "[~!@#$%^&*()_+]" ' still is a class of chars > s2 = " |\?|\<|\>|\{|\}|\:|\;" > > pw = "hello123World!" > ' pw = "hello1World+" > ' pw = "hel at lo23World" > ' pw = "hello1I%World" > > Set regex = CreateObject("VBScript.RegExp") > regexMatch = True > regex.Global = True > regex.ignorecase = True > > ' test for illegal char > regex.pattern = s2 > regexBadMatch = regex.test(pw) > If (regexBadMatch) Then > ' invalid password > ' abort, exit, terminate, prompt for new password > testPW = 0 > End If > > ' test for only 1 special char > regex.pattern = s1 > regexMatch = regex.test(pw) > > ' test for only 1 digit > regex.pattern = "\d" > regexMatch = regex.test(pw) > > If (regexMatch1 And regexMatch2) Then > ' got a valid password > testPW = 1 > Else > ' invalid password > testPW = 0 > End IF > > End Function > > > > > > >> ROTFLMAO. >> >> If you look back at my ORIGINAL post, there were no spaces specified. > >> It is rather like the old "Whisper in the ear of the person on your >> left and see what comes back in your right ear." The more I try to >> explain, the worse the results. >> >>>How can I turn a string into an array? I need to iterate through the >> characters of a string. >> >>>For each char in str >>> dosomething char >>>Next char >> >> That seems like a simple enough question. >> >>>How can I turn a string into an array? I need to iterate through the >> characters of a string. >> >> FOR THE RECORD... I UNDERSTAND MID() QUITE WELL. >> >> Also for the record, there were precisely TWO suggestions that >> indicated that the reader had any concept of what I was asking. One >> from Gustav and the other from William. >> >> However I would like to thank everyone for the responses. >> >> Further for the record, I have already implemented the mid() scenario >> (days >> ago) and solved the immediate problem which was: >> >> I was trying to search for characters in a password that are also in a > >> "must contain" string. >> >> "The password must contain one 'special character' ~!@#$%^&*()_+ and >> the password must contain one 'number' 1234567890. >> >> Given a password "The thread that went south", how do I determine if >> it contains any special characters or numbers. >> >> Of course the obvious (and much suggested) solution was mid(), which >> in the end I just used. It was fast and easy and ugly. >> >> I was hoping for a more elegant and readable solution >> >> MyArr = SomeConvFunction(strPassword) >> for each chr in MyArray >> if chr instr(cstrSpecialChars) then >> We're done so get out. >> endif >> next chr >> >> Compare the readability of that to: >> >> Function mStrContainsChars(strToTest As String, strCharsTestedAgainst >> As >> String) As Boolean >> Dim intPtr As Integer >> Dim strChar As Variant >> >> For intPtr = 1 To Len(strToTest) >> strChar = Mid(strToTest, intPtr, 1) >> If InStr(strCharsTestedAgainst, strChar) Then >> mStrContainsChars = True >> Exit Function >> End If >> Next intPtr >> End Function >> >> I did get a pair of possible solutions (which I have not tested yet, >> given that I already coded the mid() solution. >> >> Hey Gustav... "how do I ..." >> >> Pass it on. ;-) >> >> 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, March 25, 2008 3:42 AM >> To: accessd at databaseadvisors.com >> Subject: Re: [AccessD] Treat string as array >> >> Hi A.D. >> >> Very creative solution! >> >> For how long time will JC chew on this dry stick? Next step is >> probably that the spaces he specified originally which should not be >> present should be present anyway or perhaps replaced by a tab or a >> white space! Lots of options out there ... >> >> /gustav >> >>>>> adtp at airtelmail.in 25-03-2008 08:06 >>> >> A very concise version of Function Fn_ConvStringToArray(), using >> only a single statement, is placed below. It returns an array, so that > >> individual characters of input string get placed in individual >> elements of the array. >> >> Note - In fact, right side of assignment statement (A) below, can >> be used directly, as it is made up purely of access built-in > functions. >> Fn_ConvStringToArray() acts merely as a wrapper function, for sake of >> convenience. >> >> A.D.Tejpal >> ------------ >> >> ' Code to be placed in VBA module >> '================================ >> Function Fn_ConvStringToArray(StrInput _ >> As String) As Variant >> Fn_ConvStringToArray = _ >> Split(Format(StrInput, _ >> Mid(Replace(String(Len(StrInput), _ >> "~"), "~", "~@"), 2)), "~") ' > (A) >> End Function >> '================================ >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From markamatte at hotmail.com Wed Mar 26 10:18:53 2008 From: markamatte at hotmail.com (Mark A Matte) Date: Wed, 26 Mar 2008 15:18:53 +0000 Subject: [AccessD] Search MDBs for specific table name In-Reply-To: References: <000a01c88b23$57377e70$8119fea9@LTVM><004601c88ddc$1aac4c40$0201a8c0@M90><280C9402D9C24B7A8BAB5639BF036B69@BPCS> <005001c88e18$6cd18990$0300a8c0@danwaters> Message-ID: Jack, or anyone... This is a piece of the code you sent...works like a charm...but I can only run it once...then have to close the db...and I'm not sure why. I have isloated a few lines where I believe the problem is. I don't get any errors...it just gets stuck in a continuous loop. I have marked the lines below---I have stepped through...and the second time running...these lines step through....but the value = 'Nothing' and the rz.EOF shows Any ideas? Thanks, Mark A. Matte Do While Not rs.EOF Debug.Print Now & " - Processing " & rs!fullMDBCoord strDBPath = rs!fullMDBCoord ---Set OtherDB = OpenDatabase(strDBPath)--- ---Set rz = OtherDB.OpenRecordset(qsql)--- With DBObjList Do While Not rz.EOF ---------------------------------------- > From: markamatte at hotmail.com > To: accessd at databaseadvisors.com > Date: Tue, 25 Mar 2008 20:59:15 +0000 > Subject: Re: [AccessD] Search MDBs for specific table name > > > Thanks for All of the feedback. Jack was nice enough to send a little code...and then I added some I had from other projects. So far here is what I have. > > 1. Select your folder/directory > 2. Puch the button...(just humor) > Anyway...it collects the following: DB Name, DB location ,DB size ,DB Created Date, DB LastUpdate, and all objects in DB. > > Just about meets my needs, but I was wondering as an Info gathering tool...can anyone think of any other attribute that might be handy to add in? > > Thanks, > > Mark A. Matte > > >Mark, > > > >Mark,I am resending. The original email was held at databaseadvisors.com because of size.(seeattached email)>Anyway, others may have responded, but the attached DBObjects.zip is myapproach. Hope it is helpful and>timely. > > > >Jack > > > > From: dwaters at usinternet.com > > To: accessd at databaseadvisors.com > > Date: Mon, 24 Mar 2008 20:34:53 -0500 > > Subject: Re: [AccessD] Search MDBs for specific table name > > > > Hi Mark, > > > > 1) Walk through the files in the folder using a collection of files > > > > 2) Try to import the object(s) you're looking for from each mdb. If you > > don't get an error, the object exists. (I've never tried this) > > > > You can probably use this example from Help: > > DoCmd.TransferDatabase acImport, "Microsoft Access", _ > > "C:\My Documents\NWSales.mdb", acReport, "NW Sales for April", _ > > "Corporate Sales for April" > > > > 3) Store the name of the mdb's and objects in a table for later reference. > > > > I want to know if you try this and if it works! > > > > Good Luck, > > Dan > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte > > Sent: Monday, March 24, 2008 3:29 PM > > To: Access Developers discussion and problem solving > > Subject: [AccessD] Search MDBs for specific table name > > > > > > Hello All, > > > > I need to search a folder with 100's of Access DBs...and find the ones with > > a certain table,form,qry, or module name. Any ideas? > > > > Thanks, > > > > Mark A. Matte > > > > > > > > _________________________________________________________________ > > Watch "Cause Effect," a show about real people making a real difference. > > Learn more. > > http://im.live.com/Messenger/IM/MTV/?source=text_watchcause > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > _________________________________________________________________ > Watch ?Cause Effect,? a show about real people making a real difference. Learn more. > http://im.live.com/Messenger/IM/MTV/?source=text_watchcause > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com _________________________________________________________________ How well do you know your celebrity gossip? http://originals.msn.com/thebigdebate?ocid=T002MSN03N0707A From cfoust at infostatsystems.com Wed Mar 26 10:42:31 2008 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 26 Mar 2008 08:42:31 -0700 Subject: [AccessD] Find characters in one string that are in another: was RE: Treat string as array In-Reply-To: <1918.24.35.45.228.1206502562.squirrel@mail.expedient.net> References: <006201c88e75$61851a90$0201a8c0@M90><1445.24.35.45.228.1206482334.squirrel@mail.expedient.net> <1918.24.35.45.228.1206502562.squirrel@mail.expedient.net> Message-ID: And pigs will fly any day now! I lost that war years ago. He sees my code as "over-complicated". Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael Bahr Sent: Tuesday, March 25, 2008 8:36 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Find characters in one string that are in another: was RE: Treat string as array Hi Charlotte, instr only returns a positive value if the string part is found and is rather static in looking for a string. Regex's are dynamic in looking for strings and its derivatives plus it returns a boolean if the pattern is matched--at this point we do not care about the string position. Perhaps you can convince your boss that you want to take things to the next level so you can be more productive. :-) Mike... > Yep, I love em. My boss prefers InStr as more "readable", so I don't > get to use them very often ... Even in dot net. :-< > > Charlotte Foust > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael > Bahr > Sent: Tuesday, March 25, 2008 2:59 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Find characters in one string that are in > another: was RE: Treat string as array > > John here is a regular expression version of exactly want you > specified; a password with 1 special char and 1 digit. There is no > sting exploding into arrays, no looping. I have simplified the > function so it is very readable. > > With all due respect you see regex's as ARCANE because you have not > learned to use regular expressions. It is very powerful, flexible > tool and can do so much to help any programmer. It is not that hard > to do once you understand the concepts. > > BTW, you really should test for other chars not allowed like space(s), > etc. I tested this in A2K3. > > Enjoy, Mike... > > > Function testPW () As Boolean > Dim regex As Object > Dim pw as variant > Dim regexMatch1 As Boolean, regexMatch2 As Boolean > Dim regexBadMatch As Boolean > Dim s1 As String, s2 As String > > s1 = "\~|\!|\@|\#|\$|\%|\^|\&|\*|\(|\)|\_|\+" > ' s1 = "[~!@#$%^&*()_+]" ' still is a class of chars > s2 = " |\?|\<|\>|\{|\}|\:|\;" > > pw = "hello123World!" > ' pw = "hello1World+" > ' pw = "hel at lo23World" > ' pw = "hello1I%World" > > Set regex = CreateObject("VBScript.RegExp") > regexMatch = True > regex.Global = True > regex.ignorecase = True > > ' test for illegal char > regex.pattern = s2 > regexBadMatch = regex.test(pw) > If (regexBadMatch) Then > ' invalid password > ' abort, exit, terminate, prompt for new password > testPW = 0 > End If > > ' test for only 1 special char > regex.pattern = s1 > regexMatch = regex.test(pw) > > ' test for only 1 digit > regex.pattern = "\d" > regexMatch = regex.test(pw) > > If (regexMatch1 And regexMatch2) Then > ' got a valid password > testPW = 1 > Else > ' invalid password > testPW = 0 > End IF > > End Function > > > > > > >> ROTFLMAO. >> >> If you look back at my ORIGINAL post, there were no spaces specified. > >> It is rather like the old "Whisper in the ear of the person on your >> left and see what comes back in your right ear." The more I try to >> explain, the worse the results. >> >>>How can I turn a string into an array? I need to iterate through the >> characters of a string. >> >>>For each char in str >>> dosomething char >>>Next char >> >> That seems like a simple enough question. >> >>>How can I turn a string into an array? I need to iterate through the >> characters of a string. >> >> FOR THE RECORD... I UNDERSTAND MID() QUITE WELL. >> >> Also for the record, there were precisely TWO suggestions that >> indicated that the reader had any concept of what I was asking. One >> from Gustav and the other from William. >> >> However I would like to thank everyone for the responses. >> >> Further for the record, I have already implemented the mid() scenario >> (days >> ago) and solved the immediate problem which was: >> >> I was trying to search for characters in a password that are also in >> a > >> "must contain" string. >> >> "The password must contain one 'special character' ~!@#$%^&*()_+ and >> the password must contain one 'number' 1234567890. >> >> Given a password "The thread that went south", how do I determine if >> it contains any special characters or numbers. >> >> Of course the obvious (and much suggested) solution was mid(), which >> in the end I just used. It was fast and easy and ugly. >> >> I was hoping for a more elegant and readable solution >> >> MyArr = SomeConvFunction(strPassword) >> for each chr in MyArray >> if chr instr(cstrSpecialChars) then >> We're done so get out. >> endif >> next chr >> >> Compare the readability of that to: >> >> Function mStrContainsChars(strToTest As String, strCharsTestedAgainst >> As >> String) As Boolean >> Dim intPtr As Integer >> Dim strChar As Variant >> >> For intPtr = 1 To Len(strToTest) >> strChar = Mid(strToTest, intPtr, 1) >> If InStr(strCharsTestedAgainst, strChar) Then >> mStrContainsChars = True >> Exit Function >> End If >> Next intPtr >> End Function >> >> I did get a pair of possible solutions (which I have not tested yet, >> given that I already coded the mid() solution. >> >> Hey Gustav... "how do I ..." >> >> Pass it on. ;-) >> >> 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, March 25, 2008 3:42 AM >> To: accessd at databaseadvisors.com >> Subject: Re: [AccessD] Treat string as array >> >> Hi A.D. >> >> Very creative solution! >> >> For how long time will JC chew on this dry stick? Next step is >> probably that the spaces he specified originally which should not be >> present should be present anyway or perhaps replaced by a tab or a >> white space! Lots of options out there ... >> >> /gustav >> >>>>> adtp at airtelmail.in 25-03-2008 08:06 >>> >> A very concise version of Function Fn_ConvStringToArray(), using >> only a single statement, is placed below. It returns an array, so >> that > >> individual characters of input string get placed in individual >> elements of the array. >> >> Note - In fact, right side of assignment statement (A) below, can >> be used directly, as it is made up purely of access built-in > functions. >> Fn_ConvStringToArray() acts merely as a wrapper function, for sake of >> convenience. >> >> A.D.Tejpal >> ------------ >> >> ' Code to be placed in VBA module >> '================================ >> Function Fn_ConvStringToArray(StrInput _ >> As String) As Variant >> Fn_ConvStringToArray = _ >> Split(Format(StrInput, _ >> Mid(Replace(String(Len(StrInput), _ >> "~"), "~", "~@"), 2)), "~") ' > (A) >> End Function >> '================================ >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From drawbridgej at sympatico.ca Wed Mar 26 10:51:08 2008 From: drawbridgej at sympatico.ca (Jack and Pat) Date: Wed, 26 Mar 2008 11:51:08 -0400 Subject: [AccessD] Search MDBs for specific table name In-Reply-To: References: <000a01c88b23$57377e70$8119fea9@LTVM><004601c88ddc$1aac4c40$0201a8c0@M90><280C9402D9C24B7A8BAB5639BF036B69@BPCS> <005001c88e18$6cd18990$0300a8c0@danwaters> Message-ID: <000e01c88f59$35710600$6501a8c0@home6399619597> Mark, The procedure works from a list of database names. When you say it only runs once, it is set up to work from a list of drive:\folder\xxxxxx.mdb names. It opens each of these databases in sequence, grabs all the relevant info, and plops it into the dbObjectsList Table. Did you get a list of databases via the DOS command(s) ' This DOS command, when run against the F:\ drive, ' dir *.mdb /s/b >c:\MDBLog_FDrive.txt ' will find all mdb files on F: drive and output fullpath and db name to ' c:\MDBLog_FDrive.txt Jack -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Wednesday, March 26, 2008 11:19 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Search MDBs for specific table name Jack, or anyone... This is a piece of the code you sent...works like a charm...but I can only run it once...then have to close the db...and I'm not sure why. I have isloated a few lines where I believe the problem is. I don't get any errors...it just gets stuck in a continuous loop. I have marked the lines below---I have stepped through...and the second time running...these lines step through....but the value = 'Nothing' and the rz.EOF shows Any ideas? Thanks, Mark A. Matte Do While Not rs.EOF Debug.Print Now & " - Processing " & rs!fullMDBCoord strDBPath = rs!fullMDBCoord ---Set OtherDB = OpenDatabase(strDBPath)--- ---Set rz = OtherDB.OpenRecordset(qsql)--- With DBObjList Do While Not rz.EOF ---------------------------------------- > From: markamatte at hotmail.com > To: accessd at databaseadvisors.com > Date: Tue, 25 Mar 2008 20:59:15 +0000 > Subject: Re: [AccessD] Search MDBs for specific table name > > > Thanks for All of the feedback. Jack was nice enough to send a little code...and then I added some I had from other projects. So far here is what I have. > > 1. Select your folder/directory > 2. Puch the button...(just humor) > Anyway...it collects the following: DB Name, DB location ,DB size ,DB Created Date, DB LastUpdate, and all objects in DB. > > Just about meets my needs, but I was wondering as an Info gathering tool...can anyone think of any other attribute that might be handy to add in? > > Thanks, > > Mark A. Matte > > >Mark, > > > >Mark,I am resending. The original email was held at databaseadvisors.com because of size.(seeattached email)>Anyway, others may have responded, but the attached DBObjects.zip is myapproach. Hope it is helpful and>timely. > > > >Jack > > > > From: dwaters at usinternet.com > > To: accessd at databaseadvisors.com > > Date: Mon, 24 Mar 2008 20:34:53 -0500 > > Subject: Re: [AccessD] Search MDBs for specific table name > > > > Hi Mark, > > > > 1) Walk through the files in the folder using a collection of files > > > > 2) Try to import the object(s) you're looking for from each mdb. If you > > don't get an error, the object exists. (I've never tried this) > > > > You can probably use this example from Help: > > DoCmd.TransferDatabase acImport, "Microsoft Access", _ > > "C:\My Documents\NWSales.mdb", acReport, "NW Sales for April", _ > > "Corporate Sales for April" > > > > 3) Store the name of the mdb's and objects in a table for later reference. > > > > I want to know if you try this and if it works! > > > > Good Luck, > > Dan > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte > > Sent: Monday, March 24, 2008 3:29 PM > > To: Access Developers discussion and problem solving > > Subject: [AccessD] Search MDBs for specific table name > > > > > > Hello All, > > > > I need to search a folder with 100's of Access DBs...and find the ones with > > a certain table,form,qry, or module name. Any ideas? > > > > Thanks, > > > > Mark A. Matte > > > > > > > > _________________________________________________________________ > > Watch "Cause Effect," a show about real people making a real difference. > > Learn more. > > http://im.live.com/Messenger/IM/MTV/?source=text_watchcause > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > _________________________________________________________________ > Watch "Cause Effect," a show about real people making a real difference. Learn more. > http://im.live.com/Messenger/IM/MTV/?source=text_watchcause > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com _________________________________________________________________ How well do you know your celebrity gossip? http://originals.msn.com/thebigdebate?ocid=T002MSN03N0707A -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From markamatte at hotmail.com Wed Mar 26 11:08:08 2008 From: markamatte at hotmail.com (Mark A Matte) Date: Wed, 26 Mar 2008 16:08:08 +0000 Subject: [AccessD] Search MDBs for specific table name In-Reply-To: <000e01c88f59$35710600$6501a8c0@home6399619597> References: <000a01c88b23$57377e70$8119fea9@LTVM><004601c88ddc$1aac4c40$0201a8c0@M90><280C9402D9C24B7A8BAB5639BF036B69@BPCS> <005001c88e18$6cd18990$0300a8c0@danwaters> <000e01c88f59$35710600$6501a8c0@home6399619597> Message-ID: Jack, Thanks for all of your help. Here is a scenario. I run the code for folder "C:\Temp\"...it runs fine...all expected records in both tables. I then delete all records in both tables and run it again...this time it gets stuck in a loop as described below. If I close/reopen the mdb...it will run fine. I have stepped through...and the second time running...these lines step through....but the OtherDB and rz = 'Nothing' and the rz.EOF shows "Object variable or With block variable not set"...it does not give an error. Any thoughts? Thanks, Mark > Do While Not rs.EOF > Debug.Print Now & " - Processing " & rs!fullMDBCoord > strDBPath = rs!fullMDBCoord > ---Set OtherDB = OpenDatabase(strDBPath)--- > ---Set rz = OtherDB.OpenRecordset(qsql)--- > With DBObjList > Do While Not rz.EOF > From: drawbridgej at sympatico.ca > To: accessd at databaseadvisors.com > Date: Wed, 26 Mar 2008 11:51:08 -0400 > Subject: Re: [AccessD] Search MDBs for specific table name > > Mark, > > The procedure works from a list of database names. When you say it only runs > once, it is set up to work from a list of drive:\folder\xxxxxx.mdb > names. > It opens each of these databases in sequence, grabs all the relevant info, > and plops it into the dbObjectsList Table. > > Did you get a list of databases via the DOS command(s) > > ' This DOS command, when run against the F:\ drive, > ' dir *.mdb /s/b>c:\MDBLog_FDrive.txt > ' will find all mdb files on F: drive and output fullpath and db name to > ' c:\MDBLog_FDrive.txt > > Jack > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte > Sent: Wednesday, March 26, 2008 11:19 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Search MDBs for specific table name > > > Jack, or anyone... > > This is a piece of the code you sent...works like a charm...but I can only > run it once...then have to close the db...and I'm not sure why. I have > isloated a few lines where I believe the problem is. I don't get any > errors...it just gets stuck in a continuous loop. I have marked the lines > below---I have stepped through...and the second time running...these lines > step through....but the value = 'Nothing' and the rz.EOF shows > > Any ideas? > > Thanks, > > Mark A. Matte > > Do While Not rs.EOF > Debug.Print Now & " - Processing " & rs!fullMDBCoord > strDBPath = rs!fullMDBCoord > ---Set OtherDB = OpenDatabase(strDBPath)--- > ---Set rz = OtherDB.OpenRecordset(qsql)--- > With DBObjList > Do While Not rz.EOF > > > > ---------------------------------------- >> From: markamatte at hotmail.com >> To: accessd at databaseadvisors.com >> Date: Tue, 25 Mar 2008 20:59:15 +0000 >> Subject: Re: [AccessD] Search MDBs for specific table name >> >> >> Thanks for All of the feedback. Jack was nice enough to send a little > code...and then I added some I had from other projects. So far here is what > I have. >> >> 1. Select your folder/directory >> 2. Puch the button...(just humor) >> Anyway...it collects the following: DB Name, DB location ,DB size ,DB > Created Date, DB LastUpdate, and all objects in DB. >> >> Just about meets my needs, but I was wondering as an Info gathering > tool...can anyone think of any other attribute that might be handy to add > in? >> >> Thanks, >> >> Mark A. Matte >> >>>Mark, >>> >>>Mark,I am resending. The original email was held at databaseadvisors.com > because of size.(seeattached email)>Anyway, others may have responded, but > the attached DBObjects.zip is myapproach. Hope it is helpful and>timely. >>> >>>Jack >> >> >>> From: dwaters at usinternet.com >>> To: accessd at databaseadvisors.com >>> Date: Mon, 24 Mar 2008 20:34:53 -0500 >>> Subject: Re: [AccessD] Search MDBs for specific table name >>> >>> Hi Mark, >>> >>> 1) Walk through the files in the folder using a collection of files >>> >>> 2) Try to import the object(s) you're looking for from each mdb. If you >>> don't get an error, the object exists. (I've never tried this) >>> >>> You can probably use this example from Help: >>> DoCmd.TransferDatabase acImport, "Microsoft Access", _ >>> "C:\My Documents\NWSales.mdb", acReport, "NW Sales for April", _ >>> "Corporate Sales for April" >>> >>> 3) Store the name of the mdb's and objects in a table for later > reference. >>> >>> I want to know if you try this and if it works! >>> >>> Good Luck, >>> Dan >>> >>> -----Original Message----- >>> From: accessd-bounces at databaseadvisors.com >>> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte >>> Sent: Monday, March 24, 2008 3:29 PM >>> To: Access Developers discussion and problem solving >>> Subject: [AccessD] Search MDBs for specific table name >>> >>> >>> Hello All, >>> >>> I need to search a folder with 100's of Access DBs...and find the ones > with >>> a certain table,form,qry, or module name. Any ideas? >>> >>> Thanks, >>> >>> Mark A. Matte >>> >>> >>> >>> _________________________________________________________________ >>> Watch "Cause Effect," a show about real people making a real difference. >>> Learn more. >>> http://im.live.com/Messenger/IM/MTV/?source=text_watchcause >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >>> >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >> >> _________________________________________________________________ >> Watch "Cause Effect," a show about real people making a real difference. > Learn more. >> http://im.live.com/Messenger/IM/MTV/?source=text_watchcause >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com > > _________________________________________________________________ > How well do you know your celebrity gossip? > http://originals.msn.com/thebigdebate?ocid=T002MSN03N0707A > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com _________________________________________________________________ Windows Live Hotmail is giving away Zunes. http://www.windowslive-hotmail.com/ZuneADay/?locale=en-US&ocid=TXT_TAGLM_Mobile_Zune_V3 From drawbridgej at sympatico.ca Wed Mar 26 11:20:22 2008 From: drawbridgej at sympatico.ca (Jack and Pat) Date: Wed, 26 Mar 2008 12:20:22 -0400 Subject: [AccessD] Search MDBs for specific table name In-Reply-To: References: <000a01c88b23$57377e70$8119fea9@LTVM><004601c88ddc$1aac4c40$0201a8c0@M90><280C9402D9C24B7A8BAB5639BF036B69@BPCS><005001c88e18$6cd18990$0300a8c0@danwaters> <000e01c88f59$35710600$6501a8c0@home6399619597> Message-ID: <000f01c88f5d$4ac90e40$6501a8c0@home6399619597> Mark, Not sure what "all expected records in BOTH tables" means. Do you mean in dbObjectsList and A2Kmdbs? When I run it I use the DOS Dir command ie for all of C drive c:\> dir *.mdb /s/b>c:\MDBLog_C_Drive.txt then D drive d:\> dir *.mdb /s/b>c:\MDBLog_D_Drive.txt then H drive h:\> dir *.mdb /s/b>c:\MDBLog_H_Drive.txt Then In access I Delete the data from A2Kmdbs; Then use the Get External Data, Import And import these 3 .txt files into the existing Table A2Kmdbs Then run the proc fJGetDBObjects The proc will empty the dbObjectsList automatically. Jack -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Wednesday, March 26, 2008 12:08 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Search MDBs for specific table name Jack, Thanks for all of your help. Here is a scenario. I run the code for folder "C:\Temp\"...it runs fine...all expected records in both tables. I then delete all records in both tables and run it again...this time it gets stuck in a loop as described below. If I close/reopen the mdb...it will run fine. I have stepped through...and the second time running...these lines step through....but the OtherDB and rz = 'Nothing' and the rz.EOF shows "Object variable or With block variable not set"...it does not give an error. Any thoughts? Thanks, Mark > Do While Not rs.EOF > Debug.Print Now & " - Processing " & rs!fullMDBCoord > strDBPath = rs!fullMDBCoord > ---Set OtherDB = OpenDatabase(strDBPath)--- > ---Set rz = OtherDB.OpenRecordset(qsql)--- > With DBObjList > Do While Not rz.EOF > From: drawbridgej at sympatico.ca > To: accessd at databaseadvisors.com > Date: Wed, 26 Mar 2008 11:51:08 -0400 > Subject: Re: [AccessD] Search MDBs for specific table name > > Mark, > > The procedure works from a list of database names. When you say it only runs > once, it is set up to work from a list of drive:\folder\xxxxxx.mdb > names. > It opens each of these databases in sequence, grabs all the relevant info, > and plops it into the dbObjectsList Table. > > Did you get a list of databases via the DOS command(s) > > ' This DOS command, when run against the F:\ drive, > ' dir *.mdb /s/b>c:\MDBLog_FDrive.txt > ' will find all mdb files on F: drive and output fullpath and db name to > ' c:\MDBLog_FDrive.txt > > Jack > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte > Sent: Wednesday, March 26, 2008 11:19 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Search MDBs for specific table name > > > Jack, or anyone... > > This is a piece of the code you sent...works like a charm...but I can only > run it once...then have to close the db...and I'm not sure why. I have > isloated a few lines where I believe the problem is. I don't get any > errors...it just gets stuck in a continuous loop. I have marked the lines > below---I have stepped through...and the second time running...these lines > step through....but the value = 'Nothing' and the rz.EOF shows > > Any ideas? > > Thanks, > > Mark A. Matte > > Do While Not rs.EOF > Debug.Print Now & " - Processing " & rs!fullMDBCoord > strDBPath = rs!fullMDBCoord > ---Set OtherDB = OpenDatabase(strDBPath)--- > ---Set rz = OtherDB.OpenRecordset(qsql)--- > With DBObjList > Do While Not rz.EOF > > > > ---------------------------------------- >> From: markamatte at hotmail.com >> To: accessd at databaseadvisors.com >> Date: Tue, 25 Mar 2008 20:59:15 +0000 >> Subject: Re: [AccessD] Search MDBs for specific table name >> >> >> Thanks for All of the feedback. Jack was nice enough to send a little > code...and then I added some I had from other projects. So far here is what > I have. >> >> 1. Select your folder/directory >> 2. Puch the button...(just humor) >> Anyway...it collects the following: DB Name, DB location ,DB size ,DB > Created Date, DB LastUpdate, and all objects in DB. >> >> Just about meets my needs, but I was wondering as an Info gathering > tool...can anyone think of any other attribute that might be handy to add > in? >> >> Thanks, >> >> Mark A. Matte >> >>>Mark, >>> >>>Mark,I am resending. The original email was held at databaseadvisors.com > because of size.(seeattached email)>Anyway, others may have responded, but > the attached DBObjects.zip is myapproach. Hope it is helpful and>timely. >>> >>>Jack >> >> >>> From: dwaters at usinternet.com >>> To: accessd at databaseadvisors.com >>> Date: Mon, 24 Mar 2008 20:34:53 -0500 >>> Subject: Re: [AccessD] Search MDBs for specific table name >>> >>> Hi Mark, >>> >>> 1) Walk through the files in the folder using a collection of files >>> >>> 2) Try to import the object(s) you're looking for from each mdb. If you >>> don't get an error, the object exists. (I've never tried this) >>> >>> You can probably use this example from Help: >>> DoCmd.TransferDatabase acImport, "Microsoft Access", _ >>> "C:\My Documents\NWSales.mdb", acReport, "NW Sales for April", _ >>> "Corporate Sales for April" >>> >>> 3) Store the name of the mdb's and objects in a table for later > reference. >>> >>> I want to know if you try this and if it works! >>> >>> Good Luck, >>> Dan >>> >>> -----Original Message----- >>> From: accessd-bounces at databaseadvisors.com >>> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte >>> Sent: Monday, March 24, 2008 3:29 PM >>> To: Access Developers discussion and problem solving >>> Subject: [AccessD] Search MDBs for specific table name >>> >>> >>> Hello All, >>> >>> I need to search a folder with 100's of Access DBs...and find the ones > with >>> a certain table,form,qry, or module name. Any ideas? >>> >>> Thanks, >>> >>> Mark A. Matte >>> >>> >>> >>> _________________________________________________________________ >>> Watch "Cause Effect," a show about real people making a real difference. >>> Learn more. >>> http://im.live.com/Messenger/IM/MTV/?source=text_watchcause >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >>> >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >> >> _________________________________________________________________ >> Watch "Cause Effect," a show about real people making a real difference. > Learn more. >> http://im.live.com/Messenger/IM/MTV/?source=text_watchcause >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com > > _________________________________________________________________ > How well do you know your celebrity gossip? > http://originals.msn.com/thebigdebate?ocid=T002MSN03N0707A > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com _________________________________________________________________ Windows Live Hotmail is giving away Zunes. http://www.windowslive-hotmail.com/ZuneADay/?locale=en-US&ocid=TXT_TAGLM_Mob ile_Zune_V3 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Wed Mar 26 12:27:33 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 26 Mar 2008 18:27:33 +0100 Subject: [AccessD] Find characters in one string that are in another: was RE: Treat string as array Message-ID: Hi Charlotte When you write here you are very precise, so I guess your coding is exactly to the point. He just tries to provoke you. /gustav >>> cfoust at infostatsystems.com 26-03-2008 16:42:31 >>> And pigs will fly any day now! I lost that war years ago. He sees my code as "over-complicated". Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael Bahr Sent: Tuesday, March 25, 2008 8:36 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Find characters in one string that are in another: was RE: Treat string as array Hi Charlotte, instr only returns a positive value if the string part is found and is rather static in looking for a string. Regex's are dynamic in looking for strings and its derivatives plus it returns a boolean if the pattern is matched--at this point we do not care about the string position. Perhaps you can convince your boss that you want to take things to the next level so you can be more productive. :-) Mike... > Yep, I love em. My boss prefers InStr as more "readable", so I don't > get to use them very often ... Even in dot net. :-< > > Charlotte Foust From shamil at users.mns.ru Wed Mar 26 12:42:19 2008 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Wed, 26 Mar 2008 20:42:19 +0300 Subject: [AccessD] Find characters in one string that are in another:was RE: Treat string as array In-Reply-To: Message-ID: <001001c88f68$bd9d1be0$6401a8c0@nant> <<< He just tries to provoke you. >>> "No, really. Continuously. We dismiss ideas more readily than less intelligent people. it's our blessing and our curse." http://www.secretgeek.net/hate_week_08.asp ? -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, March 26, 2008 8:28 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Find characters in one string that are in another:was RE: Treat string as array Hi Charlotte When you write here you are very precise, so I guess your coding is exactly to the point. He just tries to provoke you. /gustav >>> cfoust at infostatsystems.com 26-03-2008 16:42:31 >>> And pigs will fly any day now! I lost that war years ago. He sees my code as "over-complicated". Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael Bahr Sent: Tuesday, March 25, 2008 8:36 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Find characters in one string that are in another: was RE: Treat string as array Hi Charlotte, instr only returns a positive value if the string part is found and is rather static in looking for a string. Regex's are dynamic in looking for strings and its derivatives plus it returns a boolean if the pattern is matched--at this point we do not care about the string position. Perhaps you can convince your boss that you want to take things to the next level so you can be more productive. :-) Mike... > Yep, I love em. My boss prefers InStr as more "readable", so I don't > get to use them very often ... Even in dot net. :-< > > Charlotte Foust -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From markamatte at hotmail.com Wed Mar 26 13:54:27 2008 From: markamatte at hotmail.com (Mark A Matte) Date: Wed, 26 Mar 2008 18:54:27 +0000 Subject: [AccessD] Search MDBs for specific table name In-Reply-To: References: <000a01c88b23$57377e70$8119fea9@LTVM><004601c88ddc$1aac4c40$0201a8c0@M90><280C9402D9C24B7A8BAB5639BF036B69@BPCS> <005001c88e18$6cd18990$0300a8c0@danwaters> <000e01c88f59$35710600$6501a8c0@home6399619597> Message-ID: Jack, Ok...turns out That was my fault...I forgot a CLOSEHANDLE in a different module. But then I ran into a few other issues: Before the issues...here is what I'm doing. I've created a form...it has a lookup so you can choose your directory/folder...then it takes what you were using in the command line...and uses ShellWait to execute. *********** 'Need to use Char34 to pass folder/file names with spaces If InStr(CurrentDBDir, " ") = 0 Then TempPath = CurrentDBDir & "TempLog.txt" ShellCMD = "cmd /c dir " & Me!txtDir & "\*.mdb /s/b>" & TempPath Else TempPath = Chr(34) & CurrentDBDir & "TempLog.txt" & Chr(34) ShellCMD = "cmd /c dir " & Chr(34) & Me!txtDir & "\*.mdb" & Chr(34) & " /s/b>" & TempPath End If 'Create text file with mdb names ShellWait (ShellCMD) *********** It creates the temp file in the same location as the db running it...them it imports the file. Next it runs your code to get the objects from each db... then it runs my code to get the db size,created date, last updated date. So...click the button...and you get all of the MDB info in the selected directory. Ok Issues: 1. ShellWait is not working...no errors...but it is trying to import the file before it is created. 2. Ran into files with passwords...this is where I was getting caught in a loop...bypassed with an "If Len(rz!Name) = 0 Then...create single row in DBObjectsList stating PASSWORD...I can get the file info...just not the Objects. 3. Instead of deleting records in DBObjectsList ...I select only the records that don't have a created date ( yet)... So I end up with a catalog from multiple directories/folders in a single database. Any thoughts on ShellWait or passwords? Currently I just bypass the ones with passwords(get the file just not objects)...as for the ShellWait...temporary fix...msgbox after each function... Again...thanks for all of the help, Mark A. Matte ---------------------------------------- > From: markamatte at hotmail.com > To: accessd at databaseadvisors.com > Date: Wed, 26 Mar 2008 16:08:08 +0000 > Subject: Re: [AccessD] Search MDBs for specific table name > > > Jack, > > Thanks for all of your help. > > Here is a scenario. I run the code for folder "C:\Temp\"...it runs fine...all expected records in both tables. I then delete all records in both tables and run it again...this time it gets stuck in a loop as described below. > > If I close/reopen the mdb...it will run fine. I have stepped through...and the second time running...these lines > step through....but the OtherDB and rz = 'Nothing' and the rz.EOF shows "Object variable or With block variable not set"...it does not give an error. > > Any thoughts? > > Thanks, > > Mark > > > Do While Not rs.EOF > > Debug.Print Now & " - Processing " & rs!fullMDBCoord > > strDBPath = rs!fullMDBCoord > > ---Set OtherDB = OpenDatabase(strDBPath)--- > > ---Set rz = OtherDB.OpenRecordset(qsql)--- > > With DBObjList > > Do While Not rz.EOF > > > > From: drawbridgej at sympatico.ca > > To: accessd at databaseadvisors.com > > Date: Wed, 26 Mar 2008 11:51:08 -0400 > > Subject: Re: [AccessD] Search MDBs for specific table name > > > > Mark, > > > > The procedure works from a list of database names. When you say it only runs > > once, it is set up to work from a list of drive:\folder\xxxxxx.mdb > > names. > > It opens each of these databases in sequence, grabs all the relevant info, > > and plops it into the dbObjectsList Table. > > > > Did you get a list of databases via the DOS command(s) > > > > ' This DOS command, when run against the F:\ drive, > > ' dir *.mdb /s/b>c:\MDBLog_FDrive.txt > > ' will find all mdb files on F: drive and output fullpath and db name to > > ' c:\MDBLog_FDrive.txt > > > > Jack > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte > > Sent: Wednesday, March 26, 2008 11:19 AM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Search MDBs for specific table name > > > > > > Jack, or anyone... > > > > This is a piece of the code you sent...works like a charm...but I can only > > run it once...then have to close the db...and I'm not sure why. I have > > isloated a few lines where I believe the problem is. I don't get any > > errors...it just gets stuck in a continuous loop. I have marked the lines > > below---I have stepped through...and the second time running...these lines > > step through....but the value = 'Nothing' and the rz.EOF shows > > > > Any ideas? > > > > Thanks, > > > > Mark A. Matte > > > > Do While Not rs.EOF > > Debug.Print Now & " - Processing " & rs!fullMDBCoord > > strDBPath = rs!fullMDBCoord > > ---Set OtherDB = OpenDatabase(strDBPath)--- > > ---Set rz = OtherDB.OpenRecordset(qsql)--- > > With DBObjList > > Do While Not rz.EOF > > > > > > > > ---------------------------------------- > >> From: markamatte at hotmail.com > >> To: accessd at databaseadvisors.com > >> Date: Tue, 25 Mar 2008 20:59:15 +0000 > >> Subject: Re: [AccessD] Search MDBs for specific table name > >> > >> > >> Thanks for All of the feedback. Jack was nice enough to send a little > > code...and then I added some I had from other projects. So far here is what > > I have. > >> > >> 1. Select your folder/directory > >> 2. Puch the button...(just humor) > >> Anyway...it collects the following: DB Name, DB location ,DB size ,DB > > Created Date, DB LastUpdate, and all objects in DB. > >> > >> Just about meets my needs, but I was wondering as an Info gathering > > tool...can anyone think of any other attribute that might be handy to add > > in? > >> > >> Thanks, > >> > >> Mark A. Matte > >> > >>>Mark, > >>> > >>>Mark,I am resending. The original email was held at databaseadvisors.com > > because of size.(seeattached email)>Anyway, others may have responded, but > > the attached DBObjects.zip is myapproach. Hope it is helpful and>timely. > >>> > >>>Jack > >> > >> > >>> From: dwaters at usinternet.com > >>> To: accessd at databaseadvisors.com > >>> Date: Mon, 24 Mar 2008 20:34:53 -0500 > >>> Subject: Re: [AccessD] Search MDBs for specific table name > >>> > >>> Hi Mark, > >>> > >>> 1) Walk through the files in the folder using a collection of files > >>> > >>> 2) Try to import the object(s) you're looking for from each mdb. If you > >>> don't get an error, the object exists. (I've never tried this) > >>> > >>> You can probably use this example from Help: > >>> DoCmd.TransferDatabase acImport, "Microsoft Access", _ > >>> "C:\My Documents\NWSales.mdb", acReport, "NW Sales for April", _ > >>> "Corporate Sales for April" > >>> > >>> 3) Store the name of the mdb's and objects in a table for later > > reference. > >>> > >>> I want to know if you try this and if it works! > >>> > >>> Good Luck, > >>> Dan > >>> > >>> -----Original Message----- > >>> From: accessd-bounces at databaseadvisors.com > >>> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte > >>> Sent: Monday, March 24, 2008 3:29 PM > >>> To: Access Developers discussion and problem solving > >>> Subject: [AccessD] Search MDBs for specific table name > >>> > >>> > >>> Hello All, > >>> > >>> I need to search a folder with 100's of Access DBs...and find the ones > > with > >>> a certain table,form,qry, or module name. Any ideas? > >>> > >>> Thanks, > >>> > >>> Mark A. Matte > >>> > >>> > >>> > >>> _________________________________________________________________ > >>> Watch "Cause Effect," a show about real people making a real difference. > >>> Learn more. > >>> http://im.live.com/Messenger/IM/MTV/?source=text_watchcause > >>> -- > >>> AccessD mailing list > >>> AccessD at databaseadvisors.com > >>> http://databaseadvisors.com/mailman/listinfo/accessd > >>> Website: http://www.databaseadvisors.com > >>> > >>> -- > >>> AccessD mailing list > >>> AccessD at databaseadvisors.com > >>> http://databaseadvisors.com/mailman/listinfo/accessd > >>> Website: http://www.databaseadvisors.com > >> > >> _________________________________________________________________ > >> Watch "Cause Effect," a show about real people making a real difference. > > Learn more. > >> http://im.live.com/Messenger/IM/MTV/?source=text_watchcause > >> -- > >> AccessD mailing list > >> AccessD at databaseadvisors.com > >> http://databaseadvisors.com/mailman/listinfo/accessd > >> Website: http://www.databaseadvisors.com > > > > _________________________________________________________________ > > How well do you know your celebrity gossip? > > http://originals.msn.com/thebigdebate?ocid=T002MSN03N0707A > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > _________________________________________________________________ > Windows Live Hotmail is giving away Zunes. > http://www.windowslive-hotmail.com/ZuneADay/?locale=en-US&ocid=TXT_TAGLM_Mobile_Zune_V3 > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com _________________________________________________________________ Watch ?Cause Effect,? a show about real people making a real difference. Learn more. http://im.live.com/Messenger/IM/MTV/?source=text_watchcause From rockysmolin at bchacc.com Wed Mar 26 14:04:01 2008 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Wed, 26 Mar 2008 12:04:01 -0700 Subject: [AccessD] Num Lock Message-ID: <017c01c88f74$2853d4a0$0301a8c0@HAL9005> Dear List: I need to see if the NumLock key is on, and if not, set it on (stops the bound form from moving to another record when 3 or 9 is pressed). I see where you can use SendKeys to send {NUMLOCK} but of course the popular wisdom is not to use SendKeys. No help from help. Is there a way to poll and set the NumLock through vba? MTIA Rocky From drawbridgej at sympatico.ca Wed Mar 26 14:29:52 2008 From: drawbridgej at sympatico.ca (Jack and Pat) Date: Wed, 26 Mar 2008 15:29:52 -0400 Subject: [AccessD] Search MDBs for specific table name In-Reply-To: References: <000a01c88b23$57377e70$8119fea9@LTVM><004601c88ddc$1aac4c40$0201a8c0@M90><280C9402D9C24B7A8BAB5639BF036B69@BPCS><005001c88e18$6cd18990$0300a8c0@danwaters> <000e01c88f59$35710600$6501a8c0@home6399619597> Message-ID: <000301c88f77$c3fdf5e0$6501a8c0@home6399619597> Mark, I don't have any insight into the Passwords or ShellWait. However, if you do the Dir first and get a list of Database names in a table, then when you do the fjgetDbObjects it will process the databases serially. You won't have async Shell going on and thus no Wait issues.. This routine creates a catalog from multiple drives, directories/folders in a single database. The catalog (Table) is very query-able. Did you see my last post? Also, I'm looking at a couple of routines at the moment to do the getting of the *.mdb names into a Table without using the DOS Dir or the current import. Jack -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Wednesday, March 26, 2008 2:54 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Search MDBs for specific table name Jack, Ok...turns out That was my fault...I forgot a CLOSEHANDLE in a different module. But then I ran into a few other issues: Before the issues...here is what I'm doing. I've created a form...it has a lookup so you can choose your directory/folder...then it takes what you were using in the command line...and uses ShellWait to execute. *********** 'Need to use Char34 to pass folder/file names with spaces If InStr(CurrentDBDir, " ") = 0 Then TempPath = CurrentDBDir & "TempLog.txt" ShellCMD = "cmd /c dir " & Me!txtDir & "\*.mdb /s/b>" & TempPath Else TempPath = Chr(34) & CurrentDBDir & "TempLog.txt" & Chr(34) ShellCMD = "cmd /c dir " & Chr(34) & Me!txtDir & "\*.mdb" & Chr(34) & " /s/b>" & TempPath End If 'Create text file with mdb names ShellWait (ShellCMD) *********** It creates the temp file in the same location as the db running it...them it imports the file. Next it runs your code to get the objects from each db... then it runs my code to get the db size,created date, last updated date. So...click the button...and you get all of the MDB info in the selected directory. Ok Issues: 1. ShellWait is not working...no errors...but it is trying to import the file before it is created. 2. Ran into files with passwords...this is where I was getting caught in a loop...bypassed with an "If Len(rz!Name) = 0 Then...create single row in DBObjectsList stating PASSWORD...I can get the file info...just not the Objects. 3. Instead of deleting records in DBObjectsList ...I select only the records that don't have a created date ( yet)... So I end up with a catalog from multiple directories/folders in a single database. Any thoughts on ShellWait or passwords? Currently I just bypass the ones with passwords(get the file just not objects)...as for the ShellWait...temporary fix...msgbox after each function... Again...thanks for all of the help, Mark A. Matte ---------------------------------------- > From: markamatte at hotmail.com > To: accessd at databaseadvisors.com > Date: Wed, 26 Mar 2008 16:08:08 +0000 > Subject: Re: [AccessD] Search MDBs for specific table name > > > Jack, > > Thanks for all of your help. > > Here is a scenario. I run the code for folder "C:\Temp\"...it runs fine...all expected records in both tables. I then delete all records in both tables and run it again...this time it gets stuck in a loop as described below. > > If I close/reopen the mdb...it will run fine. I have stepped through...and the second time running...these lines > step through....but the OtherDB and rz = 'Nothing' and the rz.EOF shows "Object variable or With block variable not set"...it does not give an error. > > Any thoughts? > > Thanks, > > Mark > > > Do While Not rs.EOF > > Debug.Print Now & " - Processing " & rs!fullMDBCoord > > strDBPath = rs!fullMDBCoord > > ---Set OtherDB = OpenDatabase(strDBPath)--- > > ---Set rz = OtherDB.OpenRecordset(qsql)--- > > With DBObjList > > Do While Not rz.EOF > > > > From: drawbridgej at sympatico.ca > > To: accessd at databaseadvisors.com > > Date: Wed, 26 Mar 2008 11:51:08 -0400 > > Subject: Re: [AccessD] Search MDBs for specific table name > > > > Mark, > > > > The procedure works from a list of database names. When you say it only runs > > once, it is set up to work from a list of drive:\folder\xxxxxx.mdb > > names. > > It opens each of these databases in sequence, grabs all the relevant info, > > and plops it into the dbObjectsList Table. > > > > Did you get a list of databases via the DOS command(s) > > > > ' This DOS command, when run against the F:\ drive, > > ' dir *.mdb /s/b>c:\MDBLog_FDrive.txt > > ' will find all mdb files on F: drive and output fullpath and db name to > > ' c:\MDBLog_FDrive.txt > > > > Jack > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte > > Sent: Wednesday, March 26, 2008 11:19 AM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Search MDBs for specific table name > > > > > > Jack, or anyone... > > > > This is a piece of the code you sent...works like a charm...but I can only > > run it once...then have to close the db...and I'm not sure why. I have > > isloated a few lines where I believe the problem is. I don't get any > > errors...it just gets stuck in a continuous loop. I have marked the lines > > below---I have stepped through...and the second time running...these lines > > step through....but the value = 'Nothing' and the rz.EOF shows > > > > Any ideas? > > > > Thanks, > > > > Mark A. Matte > > > > Do While Not rs.EOF > > Debug.Print Now & " - Processing " & rs!fullMDBCoord > > strDBPath = rs!fullMDBCoord > > ---Set OtherDB = OpenDatabase(strDBPath)--- > > ---Set rz = OtherDB.OpenRecordset(qsql)--- > > With DBObjList > > Do While Not rz.EOF > > > > > > > > ---------------------------------------- > >> From: markamatte at hotmail.com > >> To: accessd at databaseadvisors.com > >> Date: Tue, 25 Mar 2008 20:59:15 +0000 > >> Subject: Re: [AccessD] Search MDBs for specific table name > >> > >> > >> Thanks for All of the feedback. Jack was nice enough to send a little > > code...and then I added some I had from other projects. So far here is what > > I have. > >> > >> 1. Select your folder/directory > >> 2. Puch the button...(just humor) > >> Anyway...it collects the following: DB Name, DB location ,DB size ,DB > > Created Date, DB LastUpdate, and all objects in DB. > >> > >> Just about meets my needs, but I was wondering as an Info gathering > > tool...can anyone think of any other attribute that might be handy to add > > in? > >> > >> Thanks, > >> > >> Mark A. Matte > >> > >>>Mark, > >>> > >>>Mark,I am resending. The original email was held at databaseadvisors.com > > because of size.(seeattached email)>Anyway, others may have responded, but > > the attached DBObjects.zip is myapproach. Hope it is helpful and>timely. > >>> > >>>Jack > >> > >> > >>> From: dwaters at usinternet.com > >>> To: accessd at databaseadvisors.com > >>> Date: Mon, 24 Mar 2008 20:34:53 -0500 > >>> Subject: Re: [AccessD] Search MDBs for specific table name > >>> > >>> Hi Mark, > >>> > >>> 1) Walk through the files in the folder using a collection of files > >>> > >>> 2) Try to import the object(s) you're looking for from each mdb. If you > >>> don't get an error, the object exists. (I've never tried this) > >>> > >>> You can probably use this example from Help: > >>> DoCmd.TransferDatabase acImport, "Microsoft Access", _ > >>> "C:\My Documents\NWSales.mdb", acReport, "NW Sales for April", _ > >>> "Corporate Sales for April" > >>> > >>> 3) Store the name of the mdb's and objects in a table for later > > reference. > >>> > >>> I want to know if you try this and if it works! > >>> > >>> Good Luck, > >>> Dan > >>> > >>> -----Original Message----- > >>> From: accessd-bounces at databaseadvisors.com > >>> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte > >>> Sent: Monday, March 24, 2008 3:29 PM > >>> To: Access Developers discussion and problem solving > >>> Subject: [AccessD] Search MDBs for specific table name > >>> > >>> > >>> Hello All, > >>> > >>> I need to search a folder with 100's of Access DBs...and find the ones > > with > >>> a certain table,form,qry, or module name. Any ideas? > >>> > >>> Thanks, > >>> > >>> Mark A. Matte > >>> > >>> > >>> > >>> _________________________________________________________________ > >>> Watch "Cause Effect," a show about real people making a real difference. > >>> Learn more. > >>> http://im.live.com/Messenger/IM/MTV/?source=text_watchcause > >>> -- > >>> AccessD mailing list > >>> AccessD at databaseadvisors.com > >>> http://databaseadvisors.com/mailman/listinfo/accessd > >>> Website: http://www.databaseadvisors.com > >>> > >>> -- > >>> AccessD mailing list > >>> AccessD at databaseadvisors.com > >>> http://databaseadvisors.com/mailman/listinfo/accessd > >>> Website: http://www.databaseadvisors.com > >> > >> _________________________________________________________________ > >> Watch "Cause Effect," a show about real people making a real difference. > > Learn more. > >> http://im.live.com/Messenger/IM/MTV/?source=text_watchcause > >> -- > >> AccessD mailing list > >> AccessD at databaseadvisors.com > >> http://databaseadvisors.com/mailman/listinfo/accessd > >> Website: http://www.databaseadvisors.com > > > > _________________________________________________________________ > > How well do you know your celebrity gossip? > > http://originals.msn.com/thebigdebate?ocid=T002MSN03N0707A > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > _________________________________________________________________ > Windows Live Hotmail is giving away Zunes. > http://www.windowslive-hotmail.com/ZuneADay/?locale=en-US&ocid=TXT_TAGLM_Mob ile_Zune_V3 > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com _________________________________________________________________ Watch "Cause Effect," a show about real people making a real difference. Learn more. http://im.live.com/Messenger/IM/MTV/?source=text_watchcause -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at Marlow.com Wed Mar 26 14:54:02 2008 From: DWUTKA at Marlow.com (Drew Wutka) Date: Wed, 26 Mar 2008 14:54:02 -0500 Subject: [AccessD] Num Lock In-Reply-To: <017c01c88f74$2853d4a0$0301a8c0@HAL9005> Message-ID: Keyboard Class: Option Explicit ' Declare Type for API call: Private Type OSVERSIONINFO dwOSVersionInfoSize As Long dwMajorVersion As Long dwMinorVersion As Long dwBuildNumber As Long dwPlatformId As Long szCSDVersion As String * 128 ' Maintenance string for PSS usage End Type ' API declarations: Private Declare Function GetVersionEx Lib "kernel32" _ Alias "GetVersionExA" _ (lpVersionInformation As OSVERSIONINFO) As Long Private Declare Sub keybd_event Lib "user32" _ (ByVal bVk As Byte, _ ByVal bScan As Byte, _ ByVal dwFlags As Long, ByVal dwExtraInfo As Long) ' Keyboard support functions. ' NOTE: Setting the toggle states will NOT affect the ' keyboard lights. These changes merely affect the current ' process, not the entire machine. ' From "VBA Developer's Handbook" ' by Ken Getz and Mike Gilbert ' Copyright 1997; Sybex, Inc. All rights reserved. ' Not all VBA implementations include this constant! Private Const vbKeyScrollLock = 145 Private Const SPI_GETKEYBOARDDELAY = 22 Private Const SPI_SETKEYBOARDDELAY = 23 Private Const SPI_GETKEYBOARDSPEED = 10 Private Const SPI_SETKEYBOARDSPEED = 11 Const VK_NUMLOCK = &H90 Const VK_SCROLL = &H91 Const VK_CAPITAL = &H14 Const KEYEVENTF_EXTENDEDKEY = &H1 Const KEYEVENTF_KEYUP = &H2 Const VER_PLATFORM_WIN32_NT = 2 Const VER_PLATFORM_WIN32_WINDOWS = 1 ' SystemParametersInfo flags Private Const SPIF_UPDATEINIFILE = &H1 Private Const SPIF_SENDWININICHANGE = &H2 Private Declare Function SystemParametersInfo Lib "user32" _ Alias "SystemParametersInfoA" (ByVal uAction As Long, _ ByVal uParam As Long, lpvParam As Any, ByVal fuWinIni As Long) As Long ' This is a made-up constant. Private Const SPIF_TELLALL = SPIF_UPDATEINIFILE Or SPIF_SENDWININICHANGE Private Declare Function GetKeyboardType Lib "user32" (ByVal lngTypeFlag As Long) As Long Private Declare Function GetKeyState Lib "user32" (ByVal lngVirtKey As Long) As Integer Private Declare Function GetKeyboardState Lib "user32" (bytKeyState As Byte) As Long Private Declare Function SetKeyboardState Lib "user32" (bytKeyState As Byte) As Long Private Declare Function GetCaretBlinkTime Lib "user32" () As Long Private Declare Function SetCaretBlinkTime Lib "user32" (ByVal wMSeconds As Long) As Long Property Get KeyboardType() As Long ' Determine the type of keyboard on the system. ' 1 IBM PC/XT or compatible (83-key) keyboard ' 2 Olivetti "ICO" (102-key) keyboard ' 3 IBM PC/AT (84-key) or similar keyboard ' 4 IBM enhanced (101- or 102-key) keyboard ' 5 Nokia 1050 and similar keyboards ' 6 Nokia 9140 and similar keyboards ' 7 Japanese keyboard KeyboardType = GetKeyboardType(0) End Property Property Get FunctionKeys() As Long ' Determine the number of function keys on the keyboard. ' 1 10 ' 2 12 (sometimes 18) ' 3 10 ' 4 12 ' 5 10 ' 6 24 ' 7 Hardware dependent and specified by the OEM FunctionKeys = GetKeyboardType(2) End Property Property Get Capslock() As Boolean ' Return the Capslock toggle. Capslock = CBool(GetKeyState(vbKeyCapital) And 1) End Property Property Get Numlock() As Boolean ' Return the Numlock toggle. Numlock = CBool(GetKeyState(vbKeyNumlock) And 1) End Property Property Get ScrollLock() As Boolean ' Return the ScrollLock toggle. ' ScrollLock = CBool(GetKeyState(vbKeyScrollLock) And 1) End Property Property Let Capslock(Value As Boolean) ' Set the Capslock toggle. Call SetKeyState(vbKeyCapital, Value) End Property Property Let Numlock(Value As Boolean) ' Set the Numlock toggle. Call SetKeyState(vbKeyNumlock, Value) End Property Property Let ScrollLock(Value As Boolean) ' Set the ScrollLock toggle. Call SetKeyState(vbKeyScrollLock, Value) End Property Private Sub SetKeyState(intKey As Integer, fTurnOn As Boolean) '' Retrieve the keyboard state, set the particular '' key in which you're interested, and then set '' the entire keyboard state back the way it '' was, with the one key altered. Dim abytBuffer(0 To 255) As Byte ' ' Call GetKeyboardState(abytBuffer(0)) ' abytBuffer(intKey) = CByte(Abs(fTurnOn)) ' Call SetKeyboardState(abytBuffer(0)) Dim o As OSVERSIONINFO Dim NumLockState As Boolean Dim ScrollLockState As Boolean Dim CapsLockState As Boolean o.dwOSVersionInfoSize = Len(o) GetVersionEx o Dim keys(0 To 255) As Byte GetKeyboardState keys(0) ' NumLock handling: NumLockState = keys(VK_NUMLOCK) If intKey = vbKeyNumlock Then 'Turn numlock on If o.dwPlatformId = VER_PLATFORM_WIN32_WINDOWS Then '===== Win95 Call GetKeyboardState(abytBuffer(0)) abytBuffer(intKey) = CByte(Abs(fTurnOn)) Call SetKeyboardState(abytBuffer(0)) ElseIf o.dwPlatformId = VER_PLATFORM_WIN32_NT Then '===== WinNT 'Simulate Key Press keybd_event VK_NUMLOCK, &H45, KEYEVENTF_EXTENDEDKEY Or 0, 0 'Simulate Key Release keybd_event VK_NUMLOCK, &H45, KEYEVENTF_EXTENDEDKEY _ Or KEYEVENTF_KEYUP, 0 End If End If ' CapsLock handling: CapsLockState = keys(VK_CAPITAL) If intKey = vbKeyCapital Then 'Turn capslock on If o.dwPlatformId = VER_PLATFORM_WIN32_WINDOWS Then '===== Win95 Call GetKeyboardState(abytBuffer(0)) abytBuffer(intKey) = CByte(Abs(fTurnOn)) Call SetKeyboardState(abytBuffer(0)) ElseIf o.dwPlatformId = VER_PLATFORM_WIN32_NT Then '===== WinNT 'Simulate Key Press keybd_event VK_CAPITAL, &H45, KEYEVENTF_EXTENDEDKEY Or 0, 0 'Simulate Key Release keybd_event VK_CAPITAL, &H45, KEYEVENTF_EXTENDEDKEY _ Or KEYEVENTF_KEYUP, 0 End If End If ' ScrollLock handling: ScrollLockState = keys(VK_SCROLL) If intKey = vbKeyScrollLock Then 'Turn Scroll lock on If o.dwPlatformId = VER_PLATFORM_WIN32_WINDOWS Then '===== Win95 Call GetKeyboardState(abytBuffer(0)) abytBuffer(intKey) = CByte(Abs(fTurnOn)) Call SetKeyboardState(abytBuffer(0)) ElseIf o.dwPlatformId = VER_PLATFORM_WIN32_NT Then '===== WinNT 'Simulate Key Press keybd_event VK_SCROLL, &H45, KEYEVENTF_EXTENDEDKEY Or 0, 0 'Simulate Key Release keybd_event VK_SCROLL, &H45, KEYEVENTF_EXTENDEDKEY _ Or KEYEVENTF_KEYUP, 0 End If End If End Sub Property Let Delay(Value As Long) ' Sets the keyboard repeat-delay setting. ' Only values 0 through 3 are acceptable. Others will be ' set back to 0. Call SystemParametersInfo(SPI_SETKEYBOARDDELAY, Value, 0, SPIF_TELLALL) End Property Property Get Delay() As Long Dim lngValue As Long Call SystemParametersInfo(SPI_GETKEYBOARDDELAY, 0, lngValue, 0) Delay = lngValue End Property Property Let Speed(Value As Long) ' Sets the keyboard repeat-speed setting. ' Only values 0 through 31 are acceptable. Others will be ' set back to 0. Call SystemParametersInfo(SPI_SETKEYBOARDSPEED, Value, 0, SPIF_TELLALL) End Property Property Get Speed() As Long ' Get the keyboard repeat-speed setting. Dim lngValue As Long Call SystemParametersInfo(SPI_GETKEYBOARDSPEED, 0, lngValue, 0) Speed = lngValue End Property Property Get CaretBlinkTime() As Long ' Retrieve the number of milliseconds ' between blinks of the caret. ' SYSTEM RESOURCE. Change this with care. CaretBlinkTime = GetCaretBlinkTime() End Property Property Let CaretBlinkTime(Value As Long) ' Set the number of milliseconds ' between blinks of the caret. ' SYSTEM RESOURCE. Change this with care. ' Allowable values: 200 to 1200 (multiples of 100) Call SetCaretBlinkTime(Value) End Property -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Wednesday, March 26, 2008 2:04 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Num Lock Dear List: I need to see if the NumLock key is on, and if not, set it on (stops the bound form from moving to another record when 3 or 9 is pressed). I see where you can use SendKeys to send {NUMLOCK} but of course the popular wisdom is not to use SendKeys. No help from help. Is there a way to poll and set the NumLock through vba? MTIA Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From rockysmolin at bchacc.com Wed Mar 26 15:43:59 2008 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Wed, 26 Mar 2008 13:43:59 -0700 Subject: [AccessD] Num Lock In-Reply-To: References: <017c01c88f74$2853d4a0$0301a8c0@HAL9005> Message-ID: <01de01c88f82$1e2cebc0$0301a8c0@HAL9005> Holy Mother of Pearl! Where's that nice succinct acNumLock constant? Well, I guess I'll drop this into a module and check it out. I'm sure it works. Seems like shooting a fly with a cannon but that's Access. Thanks Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Wednesday, March 26, 2008 12:54 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Num Lock Keyboard Class: Option Explicit ' Declare Type for API call: Private Type OSVERSIONINFO dwOSVersionInfoSize As Long dwMajorVersion As Long dwMinorVersion As Long dwBuildNumber As Long dwPlatformId As Long szCSDVersion As String * 128 ' Maintenance string for PSS usage End Type ' API declarations: Private Declare Function GetVersionEx Lib "kernel32" _ Alias "GetVersionExA" _ (lpVersionInformation As OSVERSIONINFO) As Long Private Declare Sub keybd_event Lib "user32" _ (ByVal bVk As Byte, _ ByVal bScan As Byte, _ ByVal dwFlags As Long, ByVal dwExtraInfo As Long) ' Keyboard support functions. ' NOTE: Setting the toggle states will NOT affect the ' keyboard lights. These changes merely affect the current ' process, not the entire machine. ' From "VBA Developer's Handbook" ' by Ken Getz and Mike Gilbert ' Copyright 1997; Sybex, Inc. All rights reserved. ' Not all VBA implementations include this constant! Private Const vbKeyScrollLock = 145 Private Const SPI_GETKEYBOARDDELAY = 22 Private Const SPI_SETKEYBOARDDELAY = 23 Private Const SPI_GETKEYBOARDSPEED = 10 Private Const SPI_SETKEYBOARDSPEED = 11 Const VK_NUMLOCK = &H90 Const VK_SCROLL = &H91 Const VK_CAPITAL = &H14 Const KEYEVENTF_EXTENDEDKEY = &H1 Const KEYEVENTF_KEYUP = &H2 Const VER_PLATFORM_WIN32_NT = 2 Const VER_PLATFORM_WIN32_WINDOWS = 1 ' SystemParametersInfo flags Private Const SPIF_UPDATEINIFILE = &H1 Private Const SPIF_SENDWININICHANGE = &H2 Private Declare Function SystemParametersInfo Lib "user32" _ Alias "SystemParametersInfoA" (ByVal uAction As Long, _ ByVal uParam As Long, lpvParam As Any, ByVal fuWinIni As Long) As Long ' This is a made-up constant. Private Const SPIF_TELLALL = SPIF_UPDATEINIFILE Or SPIF_SENDWININICHANGE Private Declare Function GetKeyboardType Lib "user32" (ByVal lngTypeFlag As Long) As Long Private Declare Function GetKeyState Lib "user32" (ByVal lngVirtKey As Long) As Integer Private Declare Function GetKeyboardState Lib "user32" (bytKeyState As Byte) As Long Private Declare Function SetKeyboardState Lib "user32" (bytKeyState As Byte) As Long Private Declare Function GetCaretBlinkTime Lib "user32" () As Long Private Declare Function SetCaretBlinkTime Lib "user32" (ByVal wMSeconds As Long) As Long Property Get KeyboardType() As Long ' Determine the type of keyboard on the system. ' 1 IBM PC/XT or compatible (83-key) keyboard ' 2 Olivetti "ICO" (102-key) keyboard ' 3 IBM PC/AT (84-key) or similar keyboard ' 4 IBM enhanced (101- or 102-key) keyboard ' 5 Nokia 1050 and similar keyboards ' 6 Nokia 9140 and similar keyboards ' 7 Japanese keyboard KeyboardType = GetKeyboardType(0) End Property Property Get FunctionKeys() As Long ' Determine the number of function keys on the keyboard. ' 1 10 ' 2 12 (sometimes 18) ' 3 10 ' 4 12 ' 5 10 ' 6 24 ' 7 Hardware dependent and specified by the OEM FunctionKeys = GetKeyboardType(2) End Property Property Get Capslock() As Boolean ' Return the Capslock toggle. Capslock = CBool(GetKeyState(vbKeyCapital) And 1) End Property Property Get Numlock() As Boolean ' Return the Numlock toggle. Numlock = CBool(GetKeyState(vbKeyNumlock) And 1) End Property Property Get ScrollLock() As Boolean ' Return the ScrollLock toggle. ' ScrollLock = CBool(GetKeyState(vbKeyScrollLock) And 1) End Property Property Let Capslock(Value As Boolean) ' Set the Capslock toggle. Call SetKeyState(vbKeyCapital, Value) End Property Property Let Numlock(Value As Boolean) ' Set the Numlock toggle. Call SetKeyState(vbKeyNumlock, Value) End Property Property Let ScrollLock(Value As Boolean) ' Set the ScrollLock toggle. Call SetKeyState(vbKeyScrollLock, Value) End Property Private Sub SetKeyState(intKey As Integer, fTurnOn As Boolean) '' Retrieve the keyboard state, set the particular '' key in which you're interested, and then set '' the entire keyboard state back the way it '' was, with the one key altered. Dim abytBuffer(0 To 255) As Byte ' ' Call GetKeyboardState(abytBuffer(0)) ' abytBuffer(intKey) = CByte(Abs(fTurnOn)) ' Call SetKeyboardState(abytBuffer(0)) Dim o As OSVERSIONINFO Dim NumLockState As Boolean Dim ScrollLockState As Boolean Dim CapsLockState As Boolean o.dwOSVersionInfoSize = Len(o) GetVersionEx o Dim keys(0 To 255) As Byte GetKeyboardState keys(0) ' NumLock handling: NumLockState = keys(VK_NUMLOCK) If intKey = vbKeyNumlock Then 'Turn numlock on If o.dwPlatformId = VER_PLATFORM_WIN32_WINDOWS Then '===== Win95 Call GetKeyboardState(abytBuffer(0)) abytBuffer(intKey) = CByte(Abs(fTurnOn)) Call SetKeyboardState(abytBuffer(0)) ElseIf o.dwPlatformId = VER_PLATFORM_WIN32_NT Then '===== WinNT 'Simulate Key Press keybd_event VK_NUMLOCK, &H45, KEYEVENTF_EXTENDEDKEY Or 0, 0 'Simulate Key Release keybd_event VK_NUMLOCK, &H45, KEYEVENTF_EXTENDEDKEY _ Or KEYEVENTF_KEYUP, 0 End If End If ' CapsLock handling: CapsLockState = keys(VK_CAPITAL) If intKey = vbKeyCapital Then 'Turn capslock on If o.dwPlatformId = VER_PLATFORM_WIN32_WINDOWS Then '===== Win95 Call GetKeyboardState(abytBuffer(0)) abytBuffer(intKey) = CByte(Abs(fTurnOn)) Call SetKeyboardState(abytBuffer(0)) ElseIf o.dwPlatformId = VER_PLATFORM_WIN32_NT Then '===== WinNT 'Simulate Key Press keybd_event VK_CAPITAL, &H45, KEYEVENTF_EXTENDEDKEY Or 0, 0 'Simulate Key Release keybd_event VK_CAPITAL, &H45, KEYEVENTF_EXTENDEDKEY _ Or KEYEVENTF_KEYUP, 0 End If End If ' ScrollLock handling: ScrollLockState = keys(VK_SCROLL) If intKey = vbKeyScrollLock Then 'Turn Scroll lock on If o.dwPlatformId = VER_PLATFORM_WIN32_WINDOWS Then '===== Win95 Call GetKeyboardState(abytBuffer(0)) abytBuffer(intKey) = CByte(Abs(fTurnOn)) Call SetKeyboardState(abytBuffer(0)) ElseIf o.dwPlatformId = VER_PLATFORM_WIN32_NT Then '===== WinNT 'Simulate Key Press keybd_event VK_SCROLL, &H45, KEYEVENTF_EXTENDEDKEY Or 0, 0 'Simulate Key Release keybd_event VK_SCROLL, &H45, KEYEVENTF_EXTENDEDKEY _ Or KEYEVENTF_KEYUP, 0 End If End If End Sub Property Let Delay(Value As Long) ' Sets the keyboard repeat-delay setting. ' Only values 0 through 3 are acceptable. Others will be ' set back to 0. Call SystemParametersInfo(SPI_SETKEYBOARDDELAY, Value, 0, SPIF_TELLALL) End Property Property Get Delay() As Long Dim lngValue As Long Call SystemParametersInfo(SPI_GETKEYBOARDDELAY, 0, lngValue, 0) Delay = lngValue End Property Property Let Speed(Value As Long) ' Sets the keyboard repeat-speed setting. ' Only values 0 through 31 are acceptable. Others will be ' set back to 0. Call SystemParametersInfo(SPI_SETKEYBOARDSPEED, Value, 0, SPIF_TELLALL) End Property Property Get Speed() As Long ' Get the keyboard repeat-speed setting. Dim lngValue As Long Call SystemParametersInfo(SPI_GETKEYBOARDSPEED, 0, lngValue, 0) Speed = lngValue End Property Property Get CaretBlinkTime() As Long ' Retrieve the number of milliseconds ' between blinks of the caret. ' SYSTEM RESOURCE. Change this with care. CaretBlinkTime = GetCaretBlinkTime() End Property Property Let CaretBlinkTime(Value As Long) ' Set the number of milliseconds ' between blinks of the caret. ' SYSTEM RESOURCE. Change this with care. ' Allowable values: 200 to 1200 (multiples of 100) Call SetCaretBlinkTime(Value) End Property -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Wednesday, March 26, 2008 2:04 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Num Lock Dear List: I need to see if the NumLock key is on, and if not, set it on (stops the bound form from moving to another record when 3 or 9 is pressed). I see where you can use SendKeys to send {NUMLOCK} but of course the popular wisdom is not to use SendKeys. No help from help. Is there a way to poll and set the NumLock through vba? MTIA Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- 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. Version: 7.5.519 / Virus Database: 269.22.0/1343 - Release Date: 3/25/2008 7:17 PM From markamatte at hotmail.com Wed Mar 26 15:47:03 2008 From: markamatte at hotmail.com (Mark A Matte) Date: Wed, 26 Mar 2008 20:47:03 +0000 Subject: [AccessD] Search MDBs for specific table name In-Reply-To: <000301c88f77$c3fdf5e0$6501a8c0@home6399619597> References: <000a01c88b23$57377e70$8119fea9@LTVM><004601c88ddc$1aac4c40$0201a8c0@M90><280C9402D9C24B7A8BAB5639BF036B69@BPCS><005001c88e18$6cd18990$0300a8c0@danwaters> <000e01c88f59$35710600$6501a8c0@home6399619597> <000301c88f77$c3fdf5e0$6501a8c0@home6399619597> Message-ID: Jack, I did not see you last post...I sent you a sample MDB offline. In a nutshell...I took your process...shelled out the command line part...kept ALL data in the tables instead of deleting for each directory...added some file attributes(size and dates)...and ended up with a cataolog of all mdb's on our network...with a list of objects...that I can easily reference and search. Passwords...I'm working on. ShellWait...I put a crude 'pause'/timer...turns out that after the ShellWait...windows still had a grip on the text file for a few seconds. ******** ShellWait (ShellCMD) 'MsgBox "File is being created." MyWaitLine: If MyWait = 1 Then GoTo MyWaitLine Dim MP_Now MP_Now = Now MyPause: If Now() < DateAdd("s", 3, MP_Now) Then GoTo MyPause ********** Thanks again for all of your help. I would like to add some comments as to the author on the module you sent. Please let me know if/what you would like there. Thanks, Mark A. Matte > From: drawbridgej at sympatico.ca > To: accessd at databaseadvisors.com > Date: Wed, 26 Mar 2008 15:29:52 -0400 > Subject: Re: [AccessD] Search MDBs for specific table name > > Mark, > > I don't have any insight into the Passwords or ShellWait. However, if you do > the Dir first and get a list of Database names in a table, then when you do > the fjgetDbObjects > it will process the databases serially. You won't have async Shell going on > and thus no Wait issues.. > This routine creates a catalog from multiple drives, directories/folders in > a single database. The catalog (Table) is very query-able. > > > Did you see my last post? > > Also, I'm looking at a couple of routines at the moment to do the getting of > the *.mdb names into a Table without using the DOS Dir or the current > import. > > Jack > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte > Sent: Wednesday, March 26, 2008 2:54 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Search MDBs for specific table name > > > Jack, > > Ok...turns out That was my fault...I forgot a CLOSEHANDLE in a different > module. But then I ran into a few other issues: > > Before the issues...here is what I'm doing. I've created a form...it has a > lookup so you can choose your directory/folder...then it takes what you were > using in the command line...and uses ShellWait to execute. > > *********** > 'Need to use Char34 to pass folder/file names with spaces > If InStr(CurrentDBDir, " ") = 0 Then > TempPath = CurrentDBDir & "TempLog.txt" > ShellCMD = "cmd /c dir " & Me!txtDir & "\*.mdb /s/b>" & TempPath > Else > TempPath = Chr(34) & CurrentDBDir & "TempLog.txt" & Chr(34) > ShellCMD = "cmd /c dir " & Chr(34) & Me!txtDir & "\*.mdb" & Chr(34) & " > /s/b>" & TempPath > End If > > 'Create text file with mdb names > ShellWait (ShellCMD) > *********** > > It creates the temp file in the same location as the db running it...them > it imports the file. > Next it runs your code to get the objects from each db... > then it runs my code to get the db size,created date, last updated date. > > So...click the button...and you get all of the MDB info in the selected > directory. > > Ok Issues: > 1. ShellWait is not working...no errors...but it is trying to import the > file before it is created. > 2. Ran into files with passwords...this is where I was getting caught in a > loop...bypassed with an "If Len(rz!Name) = 0 Then...create single row in > DBObjectsList stating PASSWORD...I can get the file info...just not the > Objects. > 3. Instead of deleting records in DBObjectsList ...I select only the > records that don't have a created date ( yet)... > > So I end up with a catalog from multiple directories/folders in a single > database. > > Any thoughts on ShellWait or passwords? Currently I just bypass the ones > with passwords(get the file just not objects)...as for the > ShellWait...temporary fix...msgbox after each function... > > Again...thanks for all of the help, > > Mark A. Matte > > > ---------------------------------------- >> From: markamatte at hotmail.com >> To: accessd at databaseadvisors.com >> Date: Wed, 26 Mar 2008 16:08:08 +0000 >> Subject: Re: [AccessD] Search MDBs for specific table name >> >> >> Jack, >> >> Thanks for all of your help. >> >> Here is a scenario. I run the code for folder "C:\Temp\"...it runs > fine...all expected records in both tables. I then delete all records in > both tables and run it again...this time it gets stuck in a loop as > described below. >> >> If I close/reopen the mdb...it will run fine. I have stepped > through...and the second time running...these lines >> step through....but the OtherDB and rz = 'Nothing' and the rz.EOF shows > "Object variable or With block variable not set"...it does not give an > error. >> >> Any thoughts? >> >> Thanks, >> >> Mark >> >>> Do While Not rs.EOF >>> Debug.Print Now & " - Processing " & rs!fullMDBCoord >>> strDBPath = rs!fullMDBCoord >>> ---Set OtherDB = OpenDatabase(strDBPath)--- >>> ---Set rz = OtherDB.OpenRecordset(qsql)--- >>> With DBObjList >>> Do While Not rz.EOF >> >> >>> From: drawbridgej at sympatico.ca >>> To: accessd at databaseadvisors.com >>> Date: Wed, 26 Mar 2008 11:51:08 -0400 >>> Subject: Re: [AccessD] Search MDBs for specific table name >>> >>> Mark, >>> >>> The procedure works from a list of database names. When you say it only > runs >>> once, it is set up to work from a list of drive:\folder\xxxxxx.mdb >>> names. >>> It opens each of these databases in sequence, grabs all the relevant > info, >>> and plops it into the dbObjectsList Table. >>> >>> Did you get a list of databases via the DOS command(s) >>> >>> ' This DOS command, when run against the F:\ drive, >>> ' dir *.mdb /s/b>c:\MDBLog_FDrive.txt >>> ' will find all mdb files on F: drive and output fullpath and db name to >>> ' c:\MDBLog_FDrive.txt >>> >>> Jack >>> >>> -----Original Message----- >>> From: accessd-bounces at databaseadvisors.com >>> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte >>> Sent: Wednesday, March 26, 2008 11:19 AM >>> To: Access Developers discussion and problem solving >>> Subject: Re: [AccessD] Search MDBs for specific table name >>> >>> >>> Jack, or anyone... >>> >>> This is a piece of the code you sent...works like a charm...but I can > only >>> run it once...then have to close the db...and I'm not sure why. I have >>> isloated a few lines where I believe the problem is. I don't get any >>> errors...it just gets stuck in a continuous loop. I have marked the > lines >>> below---I have stepped through...and the second time running...these > lines >>> step through....but the value = 'Nothing' and the rz.EOF shows >>> >>> Any ideas? >>> >>> Thanks, >>> >>> Mark A. Matte >>> >>> Do While Not rs.EOF >>> Debug.Print Now & " - Processing " & rs!fullMDBCoord >>> strDBPath = rs!fullMDBCoord >>> ---Set OtherDB = OpenDatabase(strDBPath)--- >>> ---Set rz = OtherDB.OpenRecordset(qsql)--- >>> With DBObjList >>> Do While Not rz.EOF >>> >>> >>> >>> ---------------------------------------- >>>> From: markamatte at hotmail.com >>>> To: accessd at databaseadvisors.com >>>> Date: Tue, 25 Mar 2008 20:59:15 +0000 >>>> Subject: Re: [AccessD] Search MDBs for specific table name >>>> >>>> >>>> Thanks for All of the feedback. Jack was nice enough to send a little >>> code...and then I added some I had from other projects. So far here is > what >>> I have. >>>> >>>> 1. Select your folder/directory >>>> 2. Puch the button...(just humor) >>>> Anyway...it collects the following: DB Name, DB location ,DB size ,DB >>> Created Date, DB LastUpdate, and all objects in DB. >>>> >>>> Just about meets my needs, but I was wondering as an Info gathering >>> tool...can anyone think of any other attribute that might be handy to > add >>> in? >>>> >>>> Thanks, >>>> >>>> Mark A. Matte >>>> >>>>>Mark, >>>>> >>>>>Mark,I am resending. The original email was held at > databaseadvisors.com >>> because of size.(seeattached email)>Anyway, others may have responded, > but >>> the attached DBObjects.zip is myapproach. Hope it is helpful and>timely. >>>>> >>>>>Jack >>>> >>>> >>>>> From: dwaters at usinternet.com >>>>> To: accessd at databaseadvisors.com >>>>> Date: Mon, 24 Mar 2008 20:34:53 -0500 >>>>> Subject: Re: [AccessD] Search MDBs for specific table name >>>>> >>>>> Hi Mark, >>>>> >>>>> 1) Walk through the files in the folder using a collection of files >>>>> >>>>> 2) Try to import the object(s) you're looking for from each mdb. If > you >>>>> don't get an error, the object exists. (I've never tried this) >>>>> >>>>> You can probably use this example from Help: >>>>> DoCmd.TransferDatabase acImport, "Microsoft Access", _ >>>>> "C:\My Documents\NWSales.mdb", acReport, "NW Sales for April", _ >>>>> "Corporate Sales for April" >>>>> >>>>> 3) Store the name of the mdb's and objects in a table for later >>> reference. >>>>> >>>>> I want to know if you try this and if it works! >>>>> >>>>> Good Luck, >>>>> Dan >>>>> >>>>> -----Original Message----- >>>>> From: accessd-bounces at databaseadvisors.com >>>>> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A > Matte >>>>> Sent: Monday, March 24, 2008 3:29 PM >>>>> To: Access Developers discussion and problem solving >>>>> Subject: [AccessD] Search MDBs for specific table name >>>>> >>>>> >>>>> Hello All, >>>>> >>>>> I need to search a folder with 100's of Access DBs...and find the ones >>> with >>>>> a certain table,form,qry, or module name. Any ideas? >>>>> >>>>> Thanks, >>>>> >>>>> Mark A. Matte >>>>> >>>>> >>>>> >>>>> _________________________________________________________________ >>>>> Watch "Cause Effect," a show about real people making a real > difference. >>>>> Learn more. >>>>> http://im.live.com/Messenger/IM/MTV/?source=text_watchcause >>>>> -- >>>>> AccessD mailing list >>>>> AccessD at databaseadvisors.com >>>>> http://databaseadvisors.com/mailman/listinfo/accessd >>>>> Website: http://www.databaseadvisors.com >>>>> >>>>> -- >>>>> AccessD mailing list >>>>> AccessD at databaseadvisors.com >>>>> http://databaseadvisors.com/mailman/listinfo/accessd >>>>> Website: http://www.databaseadvisors.com >>>> >>>> _________________________________________________________________ >>>> Watch "Cause Effect," a show about real people making a real > difference. >>> Learn more. >>>> http://im.live.com/Messenger/IM/MTV/?source=text_watchcause >>>> -- >>>> AccessD mailing list >>>> AccessD at databaseadvisors.com >>>> http://databaseadvisors.com/mailman/listinfo/accessd >>>> Website: http://www.databaseadvisors.com >>> >>> _________________________________________________________________ >>> How well do you know your celebrity gossip? >>> http://originals.msn.com/thebigdebate?ocid=T002MSN03N0707A >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >> >> _________________________________________________________________ >> Windows Live Hotmail is giving away Zunes. >> > http://www.windowslive-hotmail.com/ZuneADay/?locale=en-US&ocid=TXT_TAGLM_Mob > ile_Zune_V3 >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com > > _________________________________________________________________ > Watch "Cause Effect," a show about real people making a real difference. > Learn more. > http://im.live.com/Messenger/IM/MTV/?source=text_watchcause > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com _________________________________________________________________ Test your Star IQ http://club.live.com/red_carpet_reveal.aspx?icid=redcarpet_HMTAGMAR From Lambert.Heenan at AIG.com Wed Mar 26 15:50:44 2008 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Wed, 26 Mar 2008 15:50:44 -0500 Subject: [AccessD] Num Lock Message-ID: <34C8A2AB1EF3564CB0D64DB6AFFDD5C211DF6689@XLIVMBX35bkup.aig.com> Or your can try my (slightly) briefer code to be found at http://www.mvps.org/access/api/api0046.htm It's actually a replacement for SendKeys, but within the code you will find two routines to check and set the NumLock status. You can drop that code into a module, Drew's code needs to be in a Class module of course. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Wednesday, March 26, 2008 4:44 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Num Lock Holy Mother of Pearl! Where's that nice succinct acNumLock constant? Well, I guess I'll drop this into a module and check it out. I'm sure it works. Seems like shooting a fly with a cannon but that's Access. Thanks Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Wednesday, March 26, 2008 12:54 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Num Lock Keyboard Class: From lmrazek at lcm-res.com Wed Mar 26 15:51:40 2008 From: lmrazek at lcm-res.com (Lawrence Mrazek) Date: Wed, 26 Mar 2008 15:51:40 -0500 Subject: [AccessD] DB Design Question In-Reply-To: References: <000a01c88b23$57377e70$8119fea9@LTVM><004601c88ddc$1aac4c40$0201a8c0@M90><280C9402D9C24B7A8BAB5639BF036B69@BPCS> <005001c88e18$6cd18990$0300a8c0@danwaters> Message-ID: <020101c88f83$30fd6620$036fa8c0@lcmdv8000> Hi Folks: I'm working on revising a resource directory consisting of companies/organizations and the services they offer, and would appreciate any feedback regarding a specific design question I have. Each company/organization can have multiple locations. Given that the locations are currently contained in 20+ separate tables, once for each service grouping (EX: dogs, cars, birds), and with specific fields for each service, I'd like to resolve the locations into one table, and link out to services via a some sort of relationship. For example, the "dogs" table might have the additional fields: breed, color, weight, while Cars might have: horsepower, tire size, etc. I'd like to have this system to be as flexible as possible, any hints on how to relate those service specific fields to the general tblLocation? Note that each location might could have multiple services associated with it. Thanks ... I'm just a bit foggy today and need a second opinion on this problem. Larry Mrazek LCM Research, Inc. www.lcm-res.com lmrazek at lcm-res.com ph. 314-432-5886 mobile: 314-496-1645 From DWUTKA at Marlow.com Wed Mar 26 16:01:11 2008 From: DWUTKA at Marlow.com (Drew Wutka) Date: Wed, 26 Mar 2008 16:01:11 -0500 Subject: [AccessD] Num Lock In-Reply-To: <01de01c88f82$1e2cebc0$0301a8c0@HAL9005> Message-ID: Make sure it's a class module. Then just do: Dim kb as Keyboard Set kb=New Keyboard If kb.Numlock then 'Numlock is on End if -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Wednesday, March 26, 2008 3:44 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Num Lock Holy Mother of Pearl! Where's that nice succinct acNumLock constant? Well, I guess I'll drop this into a module and check it out. I'm sure it works. Seems like shooting a fly with a cannon but that's Access. Thanks Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Wednesday, March 26, 2008 12:54 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Num Lock Keyboard Class: Option Explicit ' Declare Type for API call: Private Type OSVERSIONINFO dwOSVersionInfoSize As Long dwMajorVersion As Long dwMinorVersion As Long dwBuildNumber As Long dwPlatformId As Long szCSDVersion As String * 128 ' Maintenance string for PSS usage End Type ' API declarations: Private Declare Function GetVersionEx Lib "kernel32" _ Alias "GetVersionExA" _ (lpVersionInformation As OSVERSIONINFO) As Long Private Declare Sub keybd_event Lib "user32" _ (ByVal bVk As Byte, _ ByVal bScan As Byte, _ ByVal dwFlags As Long, ByVal dwExtraInfo As Long) ' Keyboard support functions. ' NOTE: Setting the toggle states will NOT affect the ' keyboard lights. These changes merely affect the current ' process, not the entire machine. ' From "VBA Developer's Handbook" ' by Ken Getz and Mike Gilbert ' Copyright 1997; Sybex, Inc. All rights reserved. ' Not all VBA implementations include this constant! Private Const vbKeyScrollLock = 145 Private Const SPI_GETKEYBOARDDELAY = 22 Private Const SPI_SETKEYBOARDDELAY = 23 Private Const SPI_GETKEYBOARDSPEED = 10 Private Const SPI_SETKEYBOARDSPEED = 11 Const VK_NUMLOCK = &H90 Const VK_SCROLL = &H91 Const VK_CAPITAL = &H14 Const KEYEVENTF_EXTENDEDKEY = &H1 Const KEYEVENTF_KEYUP = &H2 Const VER_PLATFORM_WIN32_NT = 2 Const VER_PLATFORM_WIN32_WINDOWS = 1 ' SystemParametersInfo flags Private Const SPIF_UPDATEINIFILE = &H1 Private Const SPIF_SENDWININICHANGE = &H2 Private Declare Function SystemParametersInfo Lib "user32" _ Alias "SystemParametersInfoA" (ByVal uAction As Long, _ ByVal uParam As Long, lpvParam As Any, ByVal fuWinIni As Long) As Long ' This is a made-up constant. Private Const SPIF_TELLALL = SPIF_UPDATEINIFILE Or SPIF_SENDWININICHANGE Private Declare Function GetKeyboardType Lib "user32" (ByVal lngTypeFlag As Long) As Long Private Declare Function GetKeyState Lib "user32" (ByVal lngVirtKey As Long) As Integer Private Declare Function GetKeyboardState Lib "user32" (bytKeyState As Byte) As Long Private Declare Function SetKeyboardState Lib "user32" (bytKeyState As Byte) As Long Private Declare Function GetCaretBlinkTime Lib "user32" () As Long Private Declare Function SetCaretBlinkTime Lib "user32" (ByVal wMSeconds As Long) As Long Property Get KeyboardType() As Long ' Determine the type of keyboard on the system. ' 1 IBM PC/XT or compatible (83-key) keyboard ' 2 Olivetti "ICO" (102-key) keyboard ' 3 IBM PC/AT (84-key) or similar keyboard ' 4 IBM enhanced (101- or 102-key) keyboard ' 5 Nokia 1050 and similar keyboards ' 6 Nokia 9140 and similar keyboards ' 7 Japanese keyboard KeyboardType = GetKeyboardType(0) End Property Property Get FunctionKeys() As Long ' Determine the number of function keys on the keyboard. ' 1 10 ' 2 12 (sometimes 18) ' 3 10 ' 4 12 ' 5 10 ' 6 24 ' 7 Hardware dependent and specified by the OEM FunctionKeys = GetKeyboardType(2) End Property Property Get Capslock() As Boolean ' Return the Capslock toggle. Capslock = CBool(GetKeyState(vbKeyCapital) And 1) End Property Property Get Numlock() As Boolean ' Return the Numlock toggle. Numlock = CBool(GetKeyState(vbKeyNumlock) And 1) End Property Property Get ScrollLock() As Boolean ' Return the ScrollLock toggle. ' ScrollLock = CBool(GetKeyState(vbKeyScrollLock) And 1) End Property Property Let Capslock(Value As Boolean) ' Set the Capslock toggle. Call SetKeyState(vbKeyCapital, Value) End Property Property Let Numlock(Value As Boolean) ' Set the Numlock toggle. Call SetKeyState(vbKeyNumlock, Value) End Property Property Let ScrollLock(Value As Boolean) ' Set the ScrollLock toggle. Call SetKeyState(vbKeyScrollLock, Value) End Property Private Sub SetKeyState(intKey As Integer, fTurnOn As Boolean) '' Retrieve the keyboard state, set the particular '' key in which you're interested, and then set '' the entire keyboard state back the way it '' was, with the one key altered. Dim abytBuffer(0 To 255) As Byte ' ' Call GetKeyboardState(abytBuffer(0)) ' abytBuffer(intKey) = CByte(Abs(fTurnOn)) ' Call SetKeyboardState(abytBuffer(0)) Dim o As OSVERSIONINFO Dim NumLockState As Boolean Dim ScrollLockState As Boolean Dim CapsLockState As Boolean o.dwOSVersionInfoSize = Len(o) GetVersionEx o Dim keys(0 To 255) As Byte GetKeyboardState keys(0) ' NumLock handling: NumLockState = keys(VK_NUMLOCK) If intKey = vbKeyNumlock Then 'Turn numlock on If o.dwPlatformId = VER_PLATFORM_WIN32_WINDOWS Then '===== Win95 Call GetKeyboardState(abytBuffer(0)) abytBuffer(intKey) = CByte(Abs(fTurnOn)) Call SetKeyboardState(abytBuffer(0)) ElseIf o.dwPlatformId = VER_PLATFORM_WIN32_NT Then '===== WinNT 'Simulate Key Press keybd_event VK_NUMLOCK, &H45, KEYEVENTF_EXTENDEDKEY Or 0, 0 'Simulate Key Release keybd_event VK_NUMLOCK, &H45, KEYEVENTF_EXTENDEDKEY _ Or KEYEVENTF_KEYUP, 0 End If End If ' CapsLock handling: CapsLockState = keys(VK_CAPITAL) If intKey = vbKeyCapital Then 'Turn capslock on If o.dwPlatformId = VER_PLATFORM_WIN32_WINDOWS Then '===== Win95 Call GetKeyboardState(abytBuffer(0)) abytBuffer(intKey) = CByte(Abs(fTurnOn)) Call SetKeyboardState(abytBuffer(0)) ElseIf o.dwPlatformId = VER_PLATFORM_WIN32_NT Then '===== WinNT 'Simulate Key Press keybd_event VK_CAPITAL, &H45, KEYEVENTF_EXTENDEDKEY Or 0, 0 'Simulate Key Release keybd_event VK_CAPITAL, &H45, KEYEVENTF_EXTENDEDKEY _ Or KEYEVENTF_KEYUP, 0 End If End If ' ScrollLock handling: ScrollLockState = keys(VK_SCROLL) If intKey = vbKeyScrollLock Then 'Turn Scroll lock on If o.dwPlatformId = VER_PLATFORM_WIN32_WINDOWS Then '===== Win95 Call GetKeyboardState(abytBuffer(0)) abytBuffer(intKey) = CByte(Abs(fTurnOn)) Call SetKeyboardState(abytBuffer(0)) ElseIf o.dwPlatformId = VER_PLATFORM_WIN32_NT Then '===== WinNT 'Simulate Key Press keybd_event VK_SCROLL, &H45, KEYEVENTF_EXTENDEDKEY Or 0, 0 'Simulate Key Release keybd_event VK_SCROLL, &H45, KEYEVENTF_EXTENDEDKEY _ Or KEYEVENTF_KEYUP, 0 End If End If End Sub Property Let Delay(Value As Long) ' Sets the keyboard repeat-delay setting. ' Only values 0 through 3 are acceptable. Others will be ' set back to 0. Call SystemParametersInfo(SPI_SETKEYBOARDDELAY, Value, 0, SPIF_TELLALL) End Property Property Get Delay() As Long Dim lngValue As Long Call SystemParametersInfo(SPI_GETKEYBOARDDELAY, 0, lngValue, 0) Delay = lngValue End Property Property Let Speed(Value As Long) ' Sets the keyboard repeat-speed setting. ' Only values 0 through 31 are acceptable. Others will be ' set back to 0. Call SystemParametersInfo(SPI_SETKEYBOARDSPEED, Value, 0, SPIF_TELLALL) End Property Property Get Speed() As Long ' Get the keyboard repeat-speed setting. Dim lngValue As Long Call SystemParametersInfo(SPI_GETKEYBOARDSPEED, 0, lngValue, 0) Speed = lngValue End Property Property Get CaretBlinkTime() As Long ' Retrieve the number of milliseconds ' between blinks of the caret. ' SYSTEM RESOURCE. Change this with care. CaretBlinkTime = GetCaretBlinkTime() End Property Property Let CaretBlinkTime(Value As Long) ' Set the number of milliseconds ' between blinks of the caret. ' SYSTEM RESOURCE. Change this with care. ' Allowable values: 200 to 1200 (multiples of 100) Call SetCaretBlinkTime(Value) End Property -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Wednesday, March 26, 2008 2:04 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Num Lock Dear List: I need to see if the NumLock key is on, and if not, set it on (stops the bound form from moving to another record when 3 or 9 is pressed). I see where you can use SendKeys to send {NUMLOCK} but of course the popular wisdom is not to use SendKeys. No help from help. Is there a way to poll and set the NumLock through vba? MTIA Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- 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. Version: 7.5.519 / Virus Database: 269.22.0/1343 - Release Date: 3/25/2008 7:17 PM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From rockysmolin at bchacc.com Wed Mar 26 16:12:43 2008 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Wed, 26 Mar 2008 14:12:43 -0700 Subject: [AccessD] Num Lock In-Reply-To: References: <017c01c88f74$2853d4a0$0301a8c0@HAL9005> Message-ID: <01df01c88f86$21d7f590$0301a8c0@HAL9005> Got it working. Not sure if I'm using it right but it seems to work with If Numlock = False Then Numlock = true in the _Open event of the form. Thanks again. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Wednesday, March 26, 2008 12:54 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Num Lock Keyboard Class: Option Explicit ' Declare Type for API call: Private Type OSVERSIONINFO dwOSVersionInfoSize As Long dwMajorVersion As Long dwMinorVersion As Long dwBuildNumber As Long dwPlatformId As Long szCSDVersion As String * 128 ' Maintenance string for PSS usage End Type ' API declarations: Private Declare Function GetVersionEx Lib "kernel32" _ Alias "GetVersionExA" _ (lpVersionInformation As OSVERSIONINFO) As Long Private Declare Sub keybd_event Lib "user32" _ (ByVal bVk As Byte, _ ByVal bScan As Byte, _ ByVal dwFlags As Long, ByVal dwExtraInfo As Long) ' Keyboard support functions. ' NOTE: Setting the toggle states will NOT affect the ' keyboard lights. These changes merely affect the current ' process, not the entire machine. ' From "VBA Developer's Handbook" ' by Ken Getz and Mike Gilbert ' Copyright 1997; Sybex, Inc. All rights reserved. ' Not all VBA implementations include this constant! Private Const vbKeyScrollLock = 145 Private Const SPI_GETKEYBOARDDELAY = 22 Private Const SPI_SETKEYBOARDDELAY = 23 Private Const SPI_GETKEYBOARDSPEED = 10 Private Const SPI_SETKEYBOARDSPEED = 11 Const VK_NUMLOCK = &H90 Const VK_SCROLL = &H91 Const VK_CAPITAL = &H14 Const KEYEVENTF_EXTENDEDKEY = &H1 Const KEYEVENTF_KEYUP = &H2 Const VER_PLATFORM_WIN32_NT = 2 Const VER_PLATFORM_WIN32_WINDOWS = 1 ' SystemParametersInfo flags Private Const SPIF_UPDATEINIFILE = &H1 Private Const SPIF_SENDWININICHANGE = &H2 Private Declare Function SystemParametersInfo Lib "user32" _ Alias "SystemParametersInfoA" (ByVal uAction As Long, _ ByVal uParam As Long, lpvParam As Any, ByVal fuWinIni As Long) As Long ' This is a made-up constant. Private Const SPIF_TELLALL = SPIF_UPDATEINIFILE Or SPIF_SENDWININICHANGE Private Declare Function GetKeyboardType Lib "user32" (ByVal lngTypeFlag As Long) As Long Private Declare Function GetKeyState Lib "user32" (ByVal lngVirtKey As Long) As Integer Private Declare Function GetKeyboardState Lib "user32" (bytKeyState As Byte) As Long Private Declare Function SetKeyboardState Lib "user32" (bytKeyState As Byte) As Long Private Declare Function GetCaretBlinkTime Lib "user32" () As Long Private Declare Function SetCaretBlinkTime Lib "user32" (ByVal wMSeconds As Long) As Long Property Get KeyboardType() As Long ' Determine the type of keyboard on the system. ' 1 IBM PC/XT or compatible (83-key) keyboard ' 2 Olivetti "ICO" (102-key) keyboard ' 3 IBM PC/AT (84-key) or similar keyboard ' 4 IBM enhanced (101- or 102-key) keyboard ' 5 Nokia 1050 and similar keyboards ' 6 Nokia 9140 and similar keyboards ' 7 Japanese keyboard KeyboardType = GetKeyboardType(0) End Property Property Get FunctionKeys() As Long ' Determine the number of function keys on the keyboard. ' 1 10 ' 2 12 (sometimes 18) ' 3 10 ' 4 12 ' 5 10 ' 6 24 ' 7 Hardware dependent and specified by the OEM FunctionKeys = GetKeyboardType(2) End Property Property Get Capslock() As Boolean ' Return the Capslock toggle. Capslock = CBool(GetKeyState(vbKeyCapital) And 1) End Property Property Get Numlock() As Boolean ' Return the Numlock toggle. Numlock = CBool(GetKeyState(vbKeyNumlock) And 1) End Property Property Get ScrollLock() As Boolean ' Return the ScrollLock toggle. ' ScrollLock = CBool(GetKeyState(vbKeyScrollLock) And 1) End Property Property Let Capslock(Value As Boolean) ' Set the Capslock toggle. Call SetKeyState(vbKeyCapital, Value) End Property Property Let Numlock(Value As Boolean) ' Set the Numlock toggle. Call SetKeyState(vbKeyNumlock, Value) End Property Property Let ScrollLock(Value As Boolean) ' Set the ScrollLock toggle. Call SetKeyState(vbKeyScrollLock, Value) End Property Private Sub SetKeyState(intKey As Integer, fTurnOn As Boolean) '' Retrieve the keyboard state, set the particular '' key in which you're interested, and then set '' the entire keyboard state back the way it '' was, with the one key altered. Dim abytBuffer(0 To 255) As Byte ' ' Call GetKeyboardState(abytBuffer(0)) ' abytBuffer(intKey) = CByte(Abs(fTurnOn)) ' Call SetKeyboardState(abytBuffer(0)) Dim o As OSVERSIONINFO Dim NumLockState As Boolean Dim ScrollLockState As Boolean Dim CapsLockState As Boolean o.dwOSVersionInfoSize = Len(o) GetVersionEx o Dim keys(0 To 255) As Byte GetKeyboardState keys(0) ' NumLock handling: NumLockState = keys(VK_NUMLOCK) If intKey = vbKeyNumlock Then 'Turn numlock on If o.dwPlatformId = VER_PLATFORM_WIN32_WINDOWS Then '===== Win95 Call GetKeyboardState(abytBuffer(0)) abytBuffer(intKey) = CByte(Abs(fTurnOn)) Call SetKeyboardState(abytBuffer(0)) ElseIf o.dwPlatformId = VER_PLATFORM_WIN32_NT Then '===== WinNT 'Simulate Key Press keybd_event VK_NUMLOCK, &H45, KEYEVENTF_EXTENDEDKEY Or 0, 0 'Simulate Key Release keybd_event VK_NUMLOCK, &H45, KEYEVENTF_EXTENDEDKEY _ Or KEYEVENTF_KEYUP, 0 End If End If ' CapsLock handling: CapsLockState = keys(VK_CAPITAL) If intKey = vbKeyCapital Then 'Turn capslock on If o.dwPlatformId = VER_PLATFORM_WIN32_WINDOWS Then '===== Win95 Call GetKeyboardState(abytBuffer(0)) abytBuffer(intKey) = CByte(Abs(fTurnOn)) Call SetKeyboardState(abytBuffer(0)) ElseIf o.dwPlatformId = VER_PLATFORM_WIN32_NT Then '===== WinNT 'Simulate Key Press keybd_event VK_CAPITAL, &H45, KEYEVENTF_EXTENDEDKEY Or 0, 0 'Simulate Key Release keybd_event VK_CAPITAL, &H45, KEYEVENTF_EXTENDEDKEY _ Or KEYEVENTF_KEYUP, 0 End If End If ' ScrollLock handling: ScrollLockState = keys(VK_SCROLL) If intKey = vbKeyScrollLock Then 'Turn Scroll lock on If o.dwPlatformId = VER_PLATFORM_WIN32_WINDOWS Then '===== Win95 Call GetKeyboardState(abytBuffer(0)) abytBuffer(intKey) = CByte(Abs(fTurnOn)) Call SetKeyboardState(abytBuffer(0)) ElseIf o.dwPlatformId = VER_PLATFORM_WIN32_NT Then '===== WinNT 'Simulate Key Press keybd_event VK_SCROLL, &H45, KEYEVENTF_EXTENDEDKEY Or 0, 0 'Simulate Key Release keybd_event VK_SCROLL, &H45, KEYEVENTF_EXTENDEDKEY _ Or KEYEVENTF_KEYUP, 0 End If End If End Sub Property Let Delay(Value As Long) ' Sets the keyboard repeat-delay setting. ' Only values 0 through 3 are acceptable. Others will be ' set back to 0. Call SystemParametersInfo(SPI_SETKEYBOARDDELAY, Value, 0, SPIF_TELLALL) End Property Property Get Delay() As Long Dim lngValue As Long Call SystemParametersInfo(SPI_GETKEYBOARDDELAY, 0, lngValue, 0) Delay = lngValue End Property Property Let Speed(Value As Long) ' Sets the keyboard repeat-speed setting. ' Only values 0 through 31 are acceptable. Others will be ' set back to 0. Call SystemParametersInfo(SPI_SETKEYBOARDSPEED, Value, 0, SPIF_TELLALL) End Property Property Get Speed() As Long ' Get the keyboard repeat-speed setting. Dim lngValue As Long Call SystemParametersInfo(SPI_GETKEYBOARDSPEED, 0, lngValue, 0) Speed = lngValue End Property Property Get CaretBlinkTime() As Long ' Retrieve the number of milliseconds ' between blinks of the caret. ' SYSTEM RESOURCE. Change this with care. CaretBlinkTime = GetCaretBlinkTime() End Property Property Let CaretBlinkTime(Value As Long) ' Set the number of milliseconds ' between blinks of the caret. ' SYSTEM RESOURCE. Change this with care. ' Allowable values: 200 to 1200 (multiples of 100) Call SetCaretBlinkTime(Value) End Property -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Wednesday, March 26, 2008 2:04 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Num Lock Dear List: I need to see if the NumLock key is on, and if not, set it on (stops the bound form from moving to another record when 3 or 9 is pressed). I see where you can use SendKeys to send {NUMLOCK} but of course the popular wisdom is not to use SendKeys. No help from help. Is there a way to poll and set the NumLock through vba? MTIA Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- 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. Version: 7.5.519 / Virus Database: 269.22.0/1343 - Release Date: 3/25/2008 7:17 PM From DWUTKA at Marlow.com Wed Mar 26 16:19:13 2008 From: DWUTKA at Marlow.com (Drew Wutka) Date: Wed, 26 Mar 2008 16:19:13 -0500 Subject: [AccessD] Num Lock In-Reply-To: <01df01c88f86$21d7f590$0301a8c0@HAL9005> Message-ID: Hmmmm, did you put that code in a class module? I've never tried to use a property in a basic module... Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Wednesday, March 26, 2008 4:13 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Num Lock Got it working. Not sure if I'm using it right but it seems to work with If Numlock = False Then Numlock = true in the _Open event of the form. Thanks again. Rocky The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From rockysmolin at bchacc.com Wed Mar 26 16:22:52 2008 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Wed, 26 Mar 2008 14:22:52 -0700 Subject: [AccessD] Num Lock In-Reply-To: <34C8A2AB1EF3564CB0D64DB6AFFDD5C211DF6689@XLIVMBX35bkup.aig.com> References: <34C8A2AB1EF3564CB0D64DB6AFFDD5C211DF6689@XLIVMBX35bkup.aig.com> Message-ID: <01f901c88f87$8cf9b0b0$0301a8c0@HAL9005> Thanks Lambert. Somehow I got Drew's code working in a module. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Wednesday, March 26, 2008 1:51 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Num Lock Or your can try my (slightly) briefer code to be found at http://www.mvps.org/access/api/api0046.htm It's actually a replacement for SendKeys, but within the code you will find two routines to check and set the NumLock status. You can drop that code into a module, Drew's code needs to be in a Class module of course. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Wednesday, March 26, 2008 4:44 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Num Lock Holy Mother of Pearl! Where's that nice succinct acNumLock constant? Well, I guess I'll drop this into a module and check it out. I'm sure it works. Seems like shooting a fly with a cannon but that's Access. Thanks Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Wednesday, March 26, 2008 12:54 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Num Lock Keyboard Class: -- 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. Version: 7.5.519 / Virus Database: 269.22.0/1343 - Release Date: 3/25/2008 7:17 PM From max.wanadoo at gmail.com Wed Mar 26 16:30:27 2008 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Wed, 26 Mar 2008 21:30:27 -0000 Subject: [AccessD] Num Lock In-Reply-To: References: <01de01c88f82$1e2cebc0$0301a8c0@HAL9005> Message-ID: <000301c88f88$9d2e98a0$8119fea9@LTVM> Drew, What Reference have you got to allow Keyboard to be recognised? Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Wednesday, March 26, 2008 9:01 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Num Lock Make sure it's a class module. Then just do: Dim kb as Keyboard Set kb=New Keyboard If kb.Numlock then 'Numlock is on End if -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Wednesday, March 26, 2008 3:44 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Num Lock Holy Mother of Pearl! Where's that nice succinct acNumLock constant? Well, I guess I'll drop this into a module and check it out. I'm sure it works. Seems like shooting a fly with a cannon but that's Access. Thanks Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Wednesday, March 26, 2008 12:54 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Num Lock Keyboard Class: Option Explicit ' Declare Type for API call: Private Type OSVERSIONINFO dwOSVersionInfoSize As Long dwMajorVersion As Long dwMinorVersion As Long dwBuildNumber As Long dwPlatformId As Long szCSDVersion As String * 128 ' Maintenance string for PSS usage End Type ' API declarations: Private Declare Function GetVersionEx Lib "kernel32" _ Alias "GetVersionExA" _ (lpVersionInformation As OSVERSIONINFO) As Long Private Declare Sub keybd_event Lib "user32" _ (ByVal bVk As Byte, _ ByVal bScan As Byte, _ ByVal dwFlags As Long, ByVal dwExtraInfo As Long) ' Keyboard support functions. ' NOTE: Setting the toggle states will NOT affect the ' keyboard lights. These changes merely affect the current ' process, not the entire machine. ' From "VBA Developer's Handbook" ' by Ken Getz and Mike Gilbert ' Copyright 1997; Sybex, Inc. All rights reserved. ' Not all VBA implementations include this constant! Private Const vbKeyScrollLock = 145 Private Const SPI_GETKEYBOARDDELAY = 22 Private Const SPI_SETKEYBOARDDELAY = 23 Private Const SPI_GETKEYBOARDSPEED = 10 Private Const SPI_SETKEYBOARDSPEED = 11 Const VK_NUMLOCK = &H90 Const VK_SCROLL = &H91 Const VK_CAPITAL = &H14 Const KEYEVENTF_EXTENDEDKEY = &H1 Const KEYEVENTF_KEYUP = &H2 Const VER_PLATFORM_WIN32_NT = 2 Const VER_PLATFORM_WIN32_WINDOWS = 1 ' SystemParametersInfo flags Private Const SPIF_UPDATEINIFILE = &H1 Private Const SPIF_SENDWININICHANGE = &H2 Private Declare Function SystemParametersInfo Lib "user32" _ Alias "SystemParametersInfoA" (ByVal uAction As Long, _ ByVal uParam As Long, lpvParam As Any, ByVal fuWinIni As Long) As Long ' This is a made-up constant. Private Const SPIF_TELLALL = SPIF_UPDATEINIFILE Or SPIF_SENDWININICHANGE Private Declare Function GetKeyboardType Lib "user32" (ByVal lngTypeFlag As Long) As Long Private Declare Function GetKeyState Lib "user32" (ByVal lngVirtKey As Long) As Integer Private Declare Function GetKeyboardState Lib "user32" (bytKeyState As Byte) As Long Private Declare Function SetKeyboardState Lib "user32" (bytKeyState As Byte) As Long Private Declare Function GetCaretBlinkTime Lib "user32" () As Long Private Declare Function SetCaretBlinkTime Lib "user32" (ByVal wMSeconds As Long) As Long Property Get KeyboardType() As Long ' Determine the type of keyboard on the system. ' 1 IBM PC/XT or compatible (83-key) keyboard ' 2 Olivetti "ICO" (102-key) keyboard ' 3 IBM PC/AT (84-key) or similar keyboard ' 4 IBM enhanced (101- or 102-key) keyboard ' 5 Nokia 1050 and similar keyboards ' 6 Nokia 9140 and similar keyboards ' 7 Japanese keyboard KeyboardType = GetKeyboardType(0) End Property Property Get FunctionKeys() As Long ' Determine the number of function keys on the keyboard. ' 1 10 ' 2 12 (sometimes 18) ' 3 10 ' 4 12 ' 5 10 ' 6 24 ' 7 Hardware dependent and specified by the OEM FunctionKeys = GetKeyboardType(2) End Property Property Get Capslock() As Boolean ' Return the Capslock toggle. Capslock = CBool(GetKeyState(vbKeyCapital) And 1) End Property Property Get Numlock() As Boolean ' Return the Numlock toggle. Numlock = CBool(GetKeyState(vbKeyNumlock) And 1) End Property Property Get ScrollLock() As Boolean ' Return the ScrollLock toggle. ' ScrollLock = CBool(GetKeyState(vbKeyScrollLock) And 1) End Property Property Let Capslock(Value As Boolean) ' Set the Capslock toggle. Call SetKeyState(vbKeyCapital, Value) End Property Property Let Numlock(Value As Boolean) ' Set the Numlock toggle. Call SetKeyState(vbKeyNumlock, Value) End Property Property Let ScrollLock(Value As Boolean) ' Set the ScrollLock toggle. Call SetKeyState(vbKeyScrollLock, Value) End Property Private Sub SetKeyState(intKey As Integer, fTurnOn As Boolean) '' Retrieve the keyboard state, set the particular '' key in which you're interested, and then set '' the entire keyboard state back the way it '' was, with the one key altered. Dim abytBuffer(0 To 255) As Byte ' ' Call GetKeyboardState(abytBuffer(0)) ' abytBuffer(intKey) = CByte(Abs(fTurnOn)) ' Call SetKeyboardState(abytBuffer(0)) Dim o As OSVERSIONINFO Dim NumLockState As Boolean Dim ScrollLockState As Boolean Dim CapsLockState As Boolean o.dwOSVersionInfoSize = Len(o) GetVersionEx o Dim keys(0 To 255) As Byte GetKeyboardState keys(0) ' NumLock handling: NumLockState = keys(VK_NUMLOCK) If intKey = vbKeyNumlock Then 'Turn numlock on If o.dwPlatformId = VER_PLATFORM_WIN32_WINDOWS Then '===== Win95 Call GetKeyboardState(abytBuffer(0)) abytBuffer(intKey) = CByte(Abs(fTurnOn)) Call SetKeyboardState(abytBuffer(0)) ElseIf o.dwPlatformId = VER_PLATFORM_WIN32_NT Then '===== WinNT 'Simulate Key Press keybd_event VK_NUMLOCK, &H45, KEYEVENTF_EXTENDEDKEY Or 0, 0 'Simulate Key Release keybd_event VK_NUMLOCK, &H45, KEYEVENTF_EXTENDEDKEY _ Or KEYEVENTF_KEYUP, 0 End If End If ' CapsLock handling: CapsLockState = keys(VK_CAPITAL) If intKey = vbKeyCapital Then 'Turn capslock on If o.dwPlatformId = VER_PLATFORM_WIN32_WINDOWS Then '===== Win95 Call GetKeyboardState(abytBuffer(0)) abytBuffer(intKey) = CByte(Abs(fTurnOn)) Call SetKeyboardState(abytBuffer(0)) ElseIf o.dwPlatformId = VER_PLATFORM_WIN32_NT Then '===== WinNT 'Simulate Key Press keybd_event VK_CAPITAL, &H45, KEYEVENTF_EXTENDEDKEY Or 0, 0 'Simulate Key Release keybd_event VK_CAPITAL, &H45, KEYEVENTF_EXTENDEDKEY _ Or KEYEVENTF_KEYUP, 0 End If End If ' ScrollLock handling: ScrollLockState = keys(VK_SCROLL) If intKey = vbKeyScrollLock Then 'Turn Scroll lock on If o.dwPlatformId = VER_PLATFORM_WIN32_WINDOWS Then '===== Win95 Call GetKeyboardState(abytBuffer(0)) abytBuffer(intKey) = CByte(Abs(fTurnOn)) Call SetKeyboardState(abytBuffer(0)) ElseIf o.dwPlatformId = VER_PLATFORM_WIN32_NT Then '===== WinNT 'Simulate Key Press keybd_event VK_SCROLL, &H45, KEYEVENTF_EXTENDEDKEY Or 0, 0 'Simulate Key Release keybd_event VK_SCROLL, &H45, KEYEVENTF_EXTENDEDKEY _ Or KEYEVENTF_KEYUP, 0 End If End If End Sub Property Let Delay(Value As Long) ' Sets the keyboard repeat-delay setting. ' Only values 0 through 3 are acceptable. Others will be ' set back to 0. Call SystemParametersInfo(SPI_SETKEYBOARDDELAY, Value, 0, SPIF_TELLALL) End Property Property Get Delay() As Long Dim lngValue As Long Call SystemParametersInfo(SPI_GETKEYBOARDDELAY, 0, lngValue, 0) Delay = lngValue End Property Property Let Speed(Value As Long) ' Sets the keyboard repeat-speed setting. ' Only values 0 through 31 are acceptable. Others will be ' set back to 0. Call SystemParametersInfo(SPI_SETKEYBOARDSPEED, Value, 0, SPIF_TELLALL) End Property Property Get Speed() As Long ' Get the keyboard repeat-speed setting. Dim lngValue As Long Call SystemParametersInfo(SPI_GETKEYBOARDSPEED, 0, lngValue, 0) Speed = lngValue End Property Property Get CaretBlinkTime() As Long ' Retrieve the number of milliseconds ' between blinks of the caret. ' SYSTEM RESOURCE. Change this with care. CaretBlinkTime = GetCaretBlinkTime() End Property Property Let CaretBlinkTime(Value As Long) ' Set the number of milliseconds ' between blinks of the caret. ' SYSTEM RESOURCE. Change this with care. ' Allowable values: 200 to 1200 (multiples of 100) Call SetCaretBlinkTime(Value) End Property -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Wednesday, March 26, 2008 2:04 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Num Lock Dear List: I need to see if the NumLock key is on, and if not, set it on (stops the bound form from moving to another record when 3 or 9 is pressed). I see where you can use SendKeys to send {NUMLOCK} but of course the popular wisdom is not to use SendKeys. No help from help. Is there a way to poll and set the NumLock through vba? MTIA Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- 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. Version: 7.5.519 / Virus Database: 269.22.0/1343 - Release Date: 3/25/2008 7:17 PM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Wed Mar 26 16:39:51 2008 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Wed, 26 Mar 2008 14:39:51 -0700 Subject: [AccessD] Num Lock In-Reply-To: References: <01df01c88f86$21d7f590$0301a8c0@HAL9005> Message-ID: <020101c88f89$ecbcd930$0301a8c0@HAL9005> Yeah, just a plain old module. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Wednesday, March 26, 2008 2:19 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Num Lock Hmmmm, did you put that code in a class module? I've never tried to use a property in a basic module... Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Wednesday, March 26, 2008 4:13 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Num Lock Got it working. Not sure if I'm using it right but it seems to work with If Numlock = False Then Numlock = true in the _Open event of the form. Thanks again. Rocky The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- 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. Version: 7.5.519 / Virus Database: 269.22.0/1343 - Release Date: 3/25/2008 7:17 PM From joe at anamericanjoe.us Wed Mar 26 17:56:14 2008 From: joe at anamericanjoe.us (joe at anamericanjoe.us) Date: Wed, 26 Mar 2008 22:56:14 +0000 Subject: [AccessD] Anyone out there having bad internet problems today? Message-ID: Hi John, It seems to be ok from work. Joe -----Original Message----- From: jwcolby [mailto:jwcolby at colbyconsulting.com] Sent: Thursday, March 13, 2008 11:21 AM To: ''Access Developers discussion and problem solving'', ''Discussion of Hardware and Software issues'' Subject: [AccessD] Anyone out there having bad internet problems today? 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 pcs at azizaz.com Wed Mar 26 23:33:12 2008 From: pcs at azizaz.com (pcs at azizaz.com) Date: Thu, 27 Mar 2008 14:33:12 +1000 (EST) Subject: [AccessD] Treat string as array Message-ID: <20080327143312.DSY33575@dommail.onthenet.com.au> Four days later trailing behind.. Tested out Gustav's painful exercise... learned something new Then had to revisit the split... As John says without a delimiter, the Split function doesn't do much. If Delimeter is omitted " " (space) is assumed. If Delimeter is provided as "" (zero length string) the whole expression is returned.... >From the VBA Help : Split(expression[, delimiter[, limit[, compare]]]) The Split function syntax has these named arguments: Part Description expression Required. String expression containing substrings and delimiters. If expression is a zero-length string(""), Split returns an empty array, that is, an array with no elements and no data. delimiter Optional. String character used to identify substring limits. If omitted, the space character (" ") is assumed to be the delimiter. If delimiter is a zero-length string, a single-element array containing the entire expression string is returned. limit Optional. Number of substrings to be returned; ?1 indicates that all substrings are returned. compare Optional. Numeric value indicating the kind of comparison to use when evaluating substrings. See Settings section for values. borge ---- Original message ---- >Date: Sat, 22 Mar 2008 22:00:28 -0400 >From: "jwcolby" >Subject: Re: [AccessD] Treat string as array >To: "'Access Developers discussion and problem solving'" > >Split only works when the string contains "words" or delimited strings. It >does nothing if it is all one big string of characters. > > >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: Saturday, March 22, 2008 8:47 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Treat string as array > >...Split() >...works in 2k+ >...hth > >William > >----- Original Message ----- >From: "jwcolby" >To: "'Access Developers discussion and problem solving'" > >Sent: Saturday, March 22, 2008 6:30 PM >Subject: Re: [AccessD] Treat string as array > > >>A for next iterator. >> >> Dim varChar as variant >> For each varChar in arrSomeStr >> Do something with varChar >> Next varChar >> >> Much cleaner than >> >> Dim IntPtr >> Dim varChar as variant >> for intPtr <=len(strSomeStr) >> varChar = mid(strsomestr,intprt,1) >> So something with VarChar >> next intprt >> >> They both work but... >> >> Strings are just pointers to an memory location on the heap. Turning a >> string into an array of characters SHOULD be a function call, optimized in >> assembler to be blindingly fast. >> >> 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 Rocky Smolin at >> Beach Access Software >> Sent: Saturday, March 22, 2008 6:15 PM >> To: 'Access Developers discussion and problem solving' >> Subject: Re: [AccessD] Treat string as array >> >> >> What do you need that you don't get from MID? >> >> Rocky >> >>> >>> How can I turn a string into an array? I need to iterate through the >>> characters of a string. >>> >>> For each char in str >>> dosomething char >>> Next char >>> >>> 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 >> >> No virus found in this incoming message. >> Checked by AVG. >> Version: 7.5.519 / Virus Database: 269.21.8/1338 - Release Date: 3/21/2008 >> 5:52 PM >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Wed Mar 26 23:50:41 2008 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 27 Mar 2008 00:50:41 -0400 Subject: [AccessD] Treat string as array In-Reply-To: <20080327143312.DSY33575@dommail.onthenet.com.au> References: <20080327143312.DSY33575@dommail.onthenet.com.au> Message-ID: <000801c88fc6$1cb5eb40$0201a8c0@M90> Yea, but Gustav's solution (to my actual question) was precisely what I needed. 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 pcs at azizaz.com Sent: Thursday, March 27, 2008 12:33 AM To: Access Developers discussion and problemsolving Subject: Re: [AccessD] Treat string as array Four days later trailing behind.. Tested out Gustav's painful exercise... learned something new Then had to revisit the split... As John says without a delimiter, the Split function doesn't do much. If Delimeter is omitted " " (space) is assumed. If Delimeter is provided as "" (zero length string) the whole expression is returned.... >From the VBA Help : Split(expression[, delimiter[, limit[, compare]]]) The Split function syntax has these named arguments: Part Description expression Required. String expression containing substrings and delimiters. If expression is a zero-length string(""), Split returns an empty array, that is, an array with no elements and no data. delimiter Optional. String character used to identify substring limits. If omitted, the space character (" ") is assumed to be the delimiter. If delimiter is a zero-length string, a single-element array containing the entire expression string is returned. limit Optional. Number of substrings to be returned; -1 indicates that all substrings are returned. compare Optional. Numeric value indicating the kind of comparison to use when evaluating substrings. See Settings section for values. borge ---- Original message ---- >Date: Sat, 22 Mar 2008 22:00:28 -0400 >From: "jwcolby" >Subject: Re: [AccessD] Treat string as array >To: "'Access Developers discussion and problem solving'" > >Split only works when the string contains "words" or delimited strings. It >does nothing if it is all one big string of characters. > > >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: Saturday, March 22, 2008 8:47 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Treat string as array > >...Split() >...works in 2k+ >...hth > >William > >----- Original Message ----- >From: "jwcolby" >To: "'Access Developers discussion and problem solving'" > >Sent: Saturday, March 22, 2008 6:30 PM >Subject: Re: [AccessD] Treat string as array > > >>A for next iterator. >> >> Dim varChar as variant >> For each varChar in arrSomeStr >> Do something with varChar >> Next varChar >> >> Much cleaner than >> >> Dim IntPtr >> Dim varChar as variant >> for intPtr <=len(strSomeStr) >> varChar = mid(strsomestr,intprt,1) >> So something with VarChar >> next intprt >> >> They both work but... >> >> Strings are just pointers to an memory location on the heap. Turning a >> string into an array of characters SHOULD be a function call, optimized in >> assembler to be blindingly fast. >> >> 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 Rocky Smolin at >> Beach Access Software >> Sent: Saturday, March 22, 2008 6:15 PM >> To: 'Access Developers discussion and problem solving' >> Subject: Re: [AccessD] Treat string as array >> >> >> What do you need that you don't get from MID? >> >> Rocky >> >>> >>> How can I turn a string into an array? I need to iterate through the >>> characters of a string. >>> >>> For each char in str >>> dosomething char >>> Next char >>> >>> 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 >> >> No virus found in this incoming message. >> Checked by AVG. >> Version: 7.5.519 / Virus Database: 269.21.8/1338 - Release Date: 3/21/2008 >> 5:52 PM >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From adtp at airtelmail.in Thu Mar 27 02:25:16 2008 From: adtp at airtelmail.in (A.D.Tejpal) Date: Thu, 27 Mar 2008 12:55:16 +0530 Subject: [AccessD] Treat string as array References: <20080327143312.DSY33575@dommail.onthenet.com.au> Message-ID: <005001c88fdb$f02d0070$5e57a27a@personald6374f> Use of Split() function on compact strings (Having no pre-existing delimiters) ============================ Use of Split() function for assigning individual characters of an input string (not having any pre-existing delimiters) to individual elements of an array was demonstrated vide my post dated 25-Mar-2008. This is done by seeding the string with suitable delimiters before applying the Split() function. The seeded delimiter should be chosen in such a manner that it is not likely to be present in the original string. In view of JC's subsequent clarification regarding the nature of characters involved, revised function Fn_ConvStringToArray(), based upon this approach, is given below. It uses "<<>>" as a sample delimiter. As stated earlier, the expression on right hand side of statement (A) can also be used directly, as it is based purely upon access built in functions. Fn_ConvStringToArray() merely acts as a wrapper function. Note - StrConv() function with vbFromUnicode as the argument, as suggested earlier by Gustav, should be considered the preferred alternative. Fn_ConvStringToArray() as given below, is meant just to demonstrate the feasibility of using Split() function even in absence of pre-existing delimiters. A.D.Tejpal ------------ ' Code in VBA module '================================= Function Fn_ConvStringToArray(StrInput _ As String) As Variant Fn_ConvStringToArray = _ Split(Format(StrInput, _ Mid(Replace(String(Len(StrInput), _ "<"), "<<>>", "<<>>@"), 5)), "<<>>") ' (A) End Function '================================= ----- Original Message ----- From: pcs at azizaz.com To: Access Developers discussion and problemsolving Sent: Thursday, March 27, 2008 10:03 Subject: Re: [AccessD] Treat string as array Four days later trailing behind.. Tested out Gustav's painful exercise... learned something new Then had to revisit the split... As John says without a delimiter, the Split function doesn't do much. If Delimeter is omitted " " (space) is assumed. If Delimeter is provided as "" (zero length string) the whole expression is returned.... From the VBA Help : Split(expression[, delimiter[, limit[, compare]]]) The Split function syntax has these named arguments: Part Description expression Required. String expression containing substrings and delimiters. If expression is a zero-length string(""), Split returns an empty array, that is, an array with no elements and no data. delimiter Optional. String character used to identify substring limits. If omitted, the space character (" ") is assumed to be the delimiter. If delimiter is a zero-length string, a single-element array containing the entire expression string is returned. limit Optional. Number of substrings to be returned; ?1 indicates that all substrings are returned. compare Optional. Numeric value indicating the kind of comparison to use when evaluating substrings. See Settings section for values. borge ---- Original message ---- >Date: Sat, 22 Mar 2008 22:00:28 -0400 >From: "jwcolby" >Subject: Re: [AccessD] Treat string as array >To: "'Access Developers discussion and problem solving'" > >Split only works when the string contains "words" or delimited strings. It does nothing if it is all one big string of characters. > >John W. Colby >Colby Consulting >www.ColbyConsulting.com <> From robert at webedb.com Thu Mar 27 07:40:23 2008 From: robert at webedb.com (Robert L. Stewart) Date: Thu, 27 Mar 2008 07:40:23 -0500 Subject: [AccessD] DB Design Question In-Reply-To: References: Message-ID: <200803271241.m2RCfIxe012123@databaseadvisors.com> Larry, Try the following: tblCompanyOrg CompanyID CompanyName ETC tlkpServices ServiceID ServiceDesc ServiceGroupID tlkpServiceGroup ServiceGroupID ServiceGrouDesc tblCompanyOrgLocations CompanyOrgLocationID CompanyID Address City State PostalCode tblCOLocationPhones COLocationPhoneID PhoneNumber PhoneComments tblCOLocationServices COLocationServiceID COLocationID ServiceID ServiceComments This is one way of structuring it off the top of my head. Robert At 04:12 PM 3/26/2008, you wrote: >Date: Wed, 26 Mar 2008 15:51:40 -0500 >From: "Lawrence Mrazek" >Subject: [AccessD] DB Design Question >To: "'Access Developers discussion and problem solving'" > >Message-ID: <020101c88f83$30fd6620$036fa8c0 at lcmdv8000> >Content-Type: text/plain; charset="US-ASCII" > >Hi Folks: > >I'm working on revising a resource directory consisting of >companies/organizations and the services they offer, and would appreciate >any feedback regarding a specific design question I have. > >Each company/organization can have multiple locations. Given that the >locations are currently contained in 20+ separate tables, once for each >service grouping (EX: dogs, cars, birds), and with specific fields for each >service, I'd like to resolve the locations into one table, and link out to >services via a some sort of relationship. > >For example, the "dogs" table might have the additional fields: breed, >color, weight, while Cars might have: horsepower, tire size, etc. > >I'd like to have this system to be as flexible as possible, any hints on how >to relate those service specific fields to the general tblLocation? Note >that each location might could have multiple services associated with it. > >Thanks ... I'm just a bit foggy today and need a second opinion on this >problem. > >Larry Mrazek From DWUTKA at Marlow.com Thu Mar 27 09:32:55 2008 From: DWUTKA at Marlow.com (Drew Wutka) Date: Thu, 27 Mar 2008 09:32:55 -0500 Subject: [AccessD] Num Lock In-Reply-To: <020101c88f89$ecbcd930$0301a8c0@HAL9005> Message-ID: Interesting. Well, it should be in a class module...but hey, if it works...it works. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Wednesday, March 26, 2008 4:40 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Num Lock Yeah, just a plain old module. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Wednesday, March 26, 2008 2:19 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Num Lock Hmmmm, did you put that code in a class module? I've never tried to use a property in a basic module... Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Wednesday, March 26, 2008 4:13 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Num Lock Got it working. Not sure if I'm using it right but it seems to work with If Numlock = False Then Numlock = true in the _Open event of the form. Thanks again. Rocky The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- 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. Version: 7.5.519 / Virus Database: 269.22.0/1343 - Release Date: 3/25/2008 7:17 PM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From tinanfields at torchlake.com Thu Mar 27 10:54:48 2008 From: tinanfields at torchlake.com (Tina Norris Fields) Date: Thu, 27 Mar 2008 11:54:48 -0400 Subject: [AccessD] VM for different versions of Access Message-ID: <47EBC348.4000101@torchlake.com> Hi All, Double-posting, since this is a technical virtual machine question but involves Access. The database I wrote about that got corrupted has been mostly repaired. That is to say the tables are intact, all the data are there, and the table relationships are good. However, there are bits and pieces that definitely are out of whack. I am going to remodel the database, to use only the features the client actually uses and wants, to restore the switchboard interface the client likes, and then split the sucker into a proper BE and FE. Client agrees. Here is the puzzle: client uses Access97. My machine is WinXP Pro with Office 2003. I would like to install a virtual machine and run Office 97 in that machine (yes, I still have a licensed copy on the shelf - unbelievable!). I would like that machine to reside on my USB external drive. Is this do-able? What are the gotchas I need to watch out for? I have Microsoft's VirtualPC installed as well as VMWare's Server. The MS VirtualPC seems the better candidate for making a virtual machine to run another version of Office. Suggestions? Ideas? Watch-out fors? Thanks, Tina From rockysmolin at bchacc.com Thu Mar 27 11:24:21 2008 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Thu, 27 Mar 2008 09:24:21 -0700 Subject: [AccessD] Automating Acrobat Message-ID: <004e01c89027$03950040$0301a8c0@HAL9005> Dear List: Does anyone know if Acrobat's fillable forms can be automated from Access like you can merge data into a word doc? MTIA, Rocky From wdhindman at dejpolsystems.com Thu Mar 27 16:48:30 2008 From: wdhindman at dejpolsystems.com (William Hindman) Date: Thu, 27 Mar 2008 17:48:30 -0400 Subject: [AccessD] VM for different versions of Access References: <47EBC348.4000101@torchlake.com> Message-ID: <001301c89054$4c8471a0$fe786c4c@jisshowsbs.local> Tina ...I use a usb stick as the vhd location but afaik the virtual machine has to be on the system itself ...since I can run the vpc install from the same usb stick that the vhd resides on, it makes it very portable to move from client to client. ...as for Access97, have you considered replacing it on the client systems with an A2k3 runtime? With proper design, a runtime is a lot more stable, subject to less user caused crashes, and can easily provide everything they need short of code development itself ...and as you know, the A2k3 platform itself has numerousadvantages over A97. ...plus it doesn't cost your client anything to upgrade that way. William ----- Original Message ----- From: "Tina Norris Fields" To: ; Sent: Thursday, March 27, 2008 11:54 AM Subject: [AccessD] VM for different versions of Access > Hi All, > > Double-posting, since this is a technical virtual machine question but > involves Access. > > The database I wrote about that got corrupted has been mostly repaired. > That is to say the tables are intact, all the data are there, and the > table relationships are good. However, there are bits and pieces that > definitely are out of whack. I am going to remodel the database, to use > only the features the client actually uses and wants, to restore the > switchboard interface the client likes, and then split the sucker into a > proper BE and FE. Client agrees. Here is the puzzle: client uses > Access97. My machine is WinXP Pro with Office 2003. > > I would like to install a virtual machine and run Office 97 in that > machine (yes, I still have a licensed copy on the shelf - > unbelievable!). I would like that machine to reside on my USB external > drive. Is this do-able? What are the gotchas I need to watch out for? > > I have Microsoft's VirtualPC installed as well as VMWare's Server. The > MS VirtualPC seems the better candidate for making a virtual machine to > run another version of Office. > > Suggestions? Ideas? Watch-out fors? > > Thanks, > Tina > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From wdhindman at dejpolsystems.com Thu Mar 27 17:08:48 2008 From: wdhindman at dejpolsystems.com (William Hindman) Date: Thu, 27 Mar 2008 18:08:48 -0400 Subject: [AccessD] Automating Acrobat References: <004e01c89027$03950040$0301a8c0@HAL9005> Message-ID: <001901c89057$22428b40$fe786c4c@jisshowsbs.local> Rocky ...depends on exactly what you need to do ...I've never found a way to manipulate a pdf the way you can a word doc ...my approach has been to create a report in Access and then use Leban's code to output it as a pdf ...other than not being able to edit an existing pdf, I've not found any functionality that I can't duplicate taking this approach and the user rarely knows or cares how the pdf was produced. William ----- Original Message ----- From: "Rocky Smolin at Beach Access Software" To: "'Access Developers discussion and problem solving'" Sent: Thursday, March 27, 2008 12:24 PM Subject: [AccessD] Automating Acrobat > Dear List: > > Does anyone know if Acrobat's fillable forms can be automated from Access > like you can merge data into a word doc? > > MTIA, > > Rocky > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From rockysmolin at bchacc.com Thu Mar 27 17:59:02 2008 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Thu, 27 Mar 2008 15:59:02 -0700 Subject: [AccessD] Automating Acrobat In-Reply-To: <001901c89057$22428b40$fe786c4c@jisshowsbs.local> References: <004e01c89027$03950040$0301a8c0@HAL9005> <001901c89057$22428b40$fe786c4c@jisshowsbs.local> Message-ID: <007901c8905e$269abda0$0301a8c0@HAL9005> Well, specifically the user asks: "Can fillable PDF forms be filled in by [the application] as Word docs are generated from forms?" Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Thursday, March 27, 2008 3:09 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Automating Acrobat Rocky ...depends on exactly what you need to do ...I've never found a way to manipulate a pdf the way you can a word doc ...my approach has been to create a report in Access and then use Leban's code to output it as a pdf ...other than not being able to edit an existing pdf, I've not found any functionality that I can't duplicate taking this approach and the user rarely knows or cares how the pdf was produced. William ----- Original Message ----- From: "Rocky Smolin at Beach Access Software" To: "'Access Developers discussion and problem solving'" Sent: Thursday, March 27, 2008 12:24 PM Subject: [AccessD] Automating Acrobat > Dear List: > > Does anyone know if Acrobat's fillable forms can be automated from Access > like you can merge data into a word doc? > > MTIA, > > Rocky > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG. Version: 7.5.519 / Virus Database: 269.22.1/1345 - Release Date: 3/26/2008 6:50 PM From Darryl.Collins at coles.com.au Thu Mar 27 18:12:59 2008 From: Darryl.Collins at coles.com.au (Darryl Collins) Date: Fri, 28 Mar 2008 10:12:59 +1100 Subject: [AccessD] VM for different versions of Access Message-ID: <49DFE57FB126044B8A8B934E7AEA09ED09FD70D4@WPEXCH05.colesmyer.ad.cmltd.net.au> Tina, I read this only this morning... I may be of some use to you? http://www.windowssecrets.com/2008/03/27/01-XP-virtual-computing-avoids-dual-boot-complexity regards Darryl. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Tina Norris Fields Sent: Friday, 28 March 2008 2:55 AM To: dba-tech at databaseadvisors.com; accessd at databaseadvisors.com Subject: [AccessD] VM for different versions of Access Hi All, Double-posting, since this is a technical virtual machine question but involves Access. The database I wrote about that got corrupted has been mostly repaired. That is to say the tables are intact, all the data are there, and the table relationships are good. However, there are bits and pieces that definitely are out of whack. I am going to remodel the database, to use only the features the client actually uses and wants, to restore the switchboard interface the client likes, and then split the sucker into a proper BE and FE. Client agrees. Here is the puzzle: client uses Access97. My machine is WinXP Pro with Office 2003. I would like to install a virtual machine and run Office 97 in that machine (yes, I still have a licensed copy on the shelf - unbelievable!). I would like that machine to reside on my USB external drive. Is this do-able? What are the gotchas I need to watch out for? I have Microsoft's VirtualPC installed as well as VMWare's Server. The MS VirtualPC seems the better candidate for making a virtual machine to run another version of Office. Suggestions? Ideas? Watch-out fors? Thanks, Tina -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This email and any attachments may contain privileged and confidential information and are intended for the named addressee only. If you have received this e-mail in error, please notify the sender and delete this e-mail immediately. Any confidentiality, privilege or copyright is not waived or lost because this e-mail has been sent to you in error. It is your responsibility to check this e-mail and any attachments for viruses. No warranty is made that this material is free from computer virus or any other defect or error. Any loss/damage incurred by using this material is not the sender's responsibility. The sender's entire liability will be limited to resupplying the material. From Darryl.Collins at coles.com.au Thu Mar 27 18:18:06 2008 From: Darryl.Collins at coles.com.au (Darryl Collins) Date: Fri, 28 Mar 2008 10:18:06 +1100 Subject: [AccessD] VM for different versions of Access Message-ID: <49DFE57FB126044B8A8B934E7AEA09ED09FD70D5@WPEXCH05.colesmyer.ad.cmltd.net.au> I reallly should check these emails before I post. "I may be of some use to you?" Well, maybe, hehehehe... but that is unlikely, perhaps I should say: "It may be of some use to you?" -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Darryl Collins Sent: Friday, 28 March 2008 10:13 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] VM for different versions of Access Tina, I read this only this morning... I may be of some use to you? http://www.windowssecrets.com/2008/03/27/01-XP-virtual-computing-avoids-dual-boot-complexity regards Darryl. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Tina Norris Fields Sent: Friday, 28 March 2008 2:55 AM To: dba-tech at databaseadvisors.com; accessd at databaseadvisors.com Subject: [AccessD] VM for different versions of Access Hi All, Double-posting, since this is a technical virtual machine question but involves Access. The database I wrote about that got corrupted has been mostly repaired. That is to say the tables are intact, all the data are there, and the table relationships are good. However, there are bits and pieces that definitely are out of whack. I am going to remodel the database, to use only the features the client actually uses and wants, to restore the switchboard interface the client likes, and then split the sucker into a proper BE and FE. Client agrees. Here is the puzzle: client uses Access97. My machine is WinXP Pro with Office 2003. I would like to install a virtual machine and run Office 97 in that machine (yes, I still have a licensed copy on the shelf - unbelievable!). I would like that machine to reside on my USB external drive. Is this do-able? What are the gotchas I need to watch out for? I have Microsoft's VirtualPC installed as well as VMWare's Server. The MS VirtualPC seems the better candidate for making a virtual machine to run another version of Office. Suggestions? Ideas? Watch-out fors? Thanks, Tina -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This email and any attachments may contain privileged and confidential information and are intended for the named addressee only. If you have received this e-mail in error, please notify the sender and delete this e-mail immediately. Any confidentiality, privilege or copyright is not waived or lost because this e-mail has been sent to you in error. It is your responsibility to check this e-mail and any attachments for viruses. No warranty is made that this material is free from computer virus or any other defect or error. Any loss/damage incurred by using this material is not the sender's responsibility. The sender's entire liability will be limited to resupplying the material. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This email and any attachments may contain privileged and confidential information and are intended for the named addressee only. If you have received this e-mail in error, please notify the sender and delete this e-mail immediately. Any confidentiality, privilege or copyright is not waived or lost because this e-mail has been sent to you in error. It is your responsibility to check this e-mail and any attachments for viruses. No warranty is made that this material is free from computer virus or any other defect or error. Any loss/damage incurred by using this material is not the sender's responsibility. The sender's entire liability will be limited to resupplying the material. From dbdoug at gmail.com Thu Mar 27 18:38:37 2008 From: dbdoug at gmail.com (Doug Steele) Date: Thu, 27 Mar 2008 16:38:37 -0700 Subject: [AccessD] VM for different versions of Access In-Reply-To: <47EBC348.4000101@torchlake.com> References: <47EBC348.4000101@torchlake.com> Message-ID: <4dd71a0c0803271638x3d17edc6j2e778ddbcc35432f@mail.gmail.com> I use VMWare, and I have an 8gb USB stick with a full Windows XP install and Office 2003. Works very well, as long as you've got at least 2gb RAM! You can also set up the VM to be copyable (with VMWare Workstation, anyway), copy it to another machine running VMWare Player, and run it there. I use VMs for keeping various development environments separate (specifically, different versions of Office) and it's great. It would be so cool to set up a VM on a client's computer so you could have total control over the environment that your database was running in. The VMs are a bit large for shooting back & forth, though, and I haven't yet got up the nerve to ask any client to purchase an extra set of Windows installs for every computer running my database! Doug Steele On Thu, Mar 27, 2008 at 8:54 AM, Tina Norris Fields < tinanfields at torchlake.com> wrote: > Hi All, > > Double-posting, since this is a technical virtual machine question but > involves Access. > > The database I wrote about that got corrupted has been mostly repaired. > That is to say the tables are intact, all the data are there, and the > table relationships are good. However, there are bits and pieces that > definitely are out of whack. I am going to remodel the database, to use > only the features the client actually uses and wants, to restore the > switchboard interface the client likes, and then split the sucker into a > proper BE and FE. Client agrees. Here is the puzzle: client uses > Access97. My machine is WinXP Pro with Office 2003. > > I would like to install a virtual machine and run Office 97 in that > machine (yes, I still have a licensed copy on the shelf - > unbelievable!). I would like that machine to reside on my USB external > drive. Is this do-able? What are the gotchas I need to watch out for? > > I have Microsoft's VirtualPC installed as well as VMWare's Server. The > MS VirtualPC seems the better candidate for making a virtual machine to > run another version of Office. > > Suggestions? Ideas? Watch-out fors? > > Thanks, > Tina > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From wdhindman at dejpolsystems.com Thu Mar 27 20:12:14 2008 From: wdhindman at dejpolsystems.com (William Hindman) Date: Thu, 27 Mar 2008 21:12:14 -0400 Subject: [AccessD] VM for different versions of Access References: <47EBC348.4000101@torchlake.com> <4dd71a0c0803271638x3d17edc6j2e778ddbcc35432f@mail.gmail.com> Message-ID: <000901c89070$c2b11060$fe786c4c@jisshowsbs.local> ...Microsoft is offering a free WinXpSP2 install on a vhd ...you have to renew every few months but it is no cost ...its intended for web developers running multiple versions of IE on one system but you don't have to do anything other than download it ...I have two copies installed on my vpc, one with IE6, and one with IE8 ...works a trick and a damn sight easier than keeping multiple pcs running. William ----- Original Message ----- From: "Doug Steele" To: "Access Developers discussion and problem solving" Sent: Thursday, March 27, 2008 7:38 PM Subject: Re: [AccessD] VM for different versions of Access >I use VMWare, and I have an 8gb USB stick with a full Windows XP install >and > Office 2003. Works very well, as long as you've got at least 2gb RAM! > You > can also set up the VM to be copyable (with VMWare Workstation, anyway), > copy it to another machine running VMWare Player, and run it there. > > I use VMs for keeping various development environments separate > (specifically, different versions of Office) and it's great. > > It would be so cool to set up a VM on a client's computer so you could > have > total control over the environment that your database was running in. The > VMs are a bit large for shooting back & forth, though, and I haven't yet > got > up the nerve to ask any client to purchase an extra set of Windows > installs > for every computer running my database! > > Doug Steele > > > On Thu, Mar 27, 2008 at 8:54 AM, Tina Norris Fields < > tinanfields at torchlake.com> wrote: > >> Hi All, >> >> Double-posting, since this is a technical virtual machine question but >> involves Access. >> >> The database I wrote about that got corrupted has been mostly repaired. >> That is to say the tables are intact, all the data are there, and the >> table relationships are good. However, there are bits and pieces that >> definitely are out of whack. I am going to remodel the database, to use >> only the features the client actually uses and wants, to restore the >> switchboard interface the client likes, and then split the sucker into a >> proper BE and FE. Client agrees. Here is the puzzle: client uses >> Access97. My machine is WinXP Pro with Office 2003. >> >> I would like to install a virtual machine and run Office 97 in that >> machine (yes, I still have a licensed copy on the shelf - >> unbelievable!). I would like that machine to reside on my USB external >> drive. Is this do-able? What are the gotchas I need to watch out for? >> >> I have Microsoft's VirtualPC installed as well as VMWare's Server. The >> MS VirtualPC seems the better candidate for making a virtual machine to >> run another version of Office. >> >> Suggestions? Ideas? Watch-out fors? >> >> Thanks, >> Tina >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From ebarro at verizon.net Thu Mar 27 20:28:21 2008 From: ebarro at verizon.net (Eric Barro) Date: Thu, 27 Mar 2008 18:28:21 -0700 Subject: [AccessD] Automating Acrobat In-Reply-To: <004e01c89027$03950040$0301a8c0@HAL9005> Message-ID: <0JYF0013J2RAZU91@vms046.mailsrvcs.net> Yes if you download their SDK you can populate PDF forms with data and save the data as an FDF file. I used this approach 5 years ago for an insurance company application. I had an Access app for the field reps that downloaded their survey data (work they needed to get done) and opened fillable PDF forms. The data they filled in was saved as FDF files on their local drive and emailed to the home office as well as well as FTPed to the home office ftp server. I'd have to search my archives for the app but yes it can be done. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Thursday, March 27, 2008 9:24 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Automating Acrobat Dear List: Does anyone know if Acrobat's fillable forms can be automated from Access like you can merge data into a word doc? MTIA, Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From wdhindman at dejpolsystems.com Thu Mar 27 20:31:23 2008 From: wdhindman at dejpolsystems.com (William Hindman) Date: Thu, 27 Mar 2008 21:31:23 -0400 Subject: [AccessD] Automating Acrobat References: <004e01c89027$03950040$0301a8c0@HAL9005><001901c89057$22428b40$fe786c4c@jisshowsbs.local> <007901c8905e$269abda0$0301a8c0@HAL9005> Message-ID: <001f01c89073$6f345ac0$fe786c4c@jisshowsbs.local> ...yes, as long as existing pdfs don't require editing ...you have to look at what he wants as his end product rather than the way he poses the question ...if what he wants is to fill out a blank pdf form, you can do that pretty easily ...you just build a form/report that precisely duplicates the pdf and users can fill it out in Access and then print or save as a pdf ...the Lebans code does an excellent job of replicating the report in pdf format. ...dl the Lebans code and try it out ...he has samples and you don't require any additional software ...takes a few minutes and then you'll know if it'll do what you need. William ----- Original Message ----- From: "Rocky Smolin at Beach Access Software" To: "'Access Developers discussion and problem solving'" Sent: Thursday, March 27, 2008 6:59 PM Subject: Re: [AccessD] Automating Acrobat > Well, specifically the user asks: "Can fillable PDF forms be filled in by > [the application] as Word docs are generated from forms?" > > Rocky > > > > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman > Sent: Thursday, March 27, 2008 3:09 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Automating Acrobat > > Rocky > > ...depends on exactly what you need to do ...I've never found a way to > manipulate a pdf the way you can a word doc ...my approach has been to > create a report in Access and then use Leban's code to output it as a pdf > ...other than not being able to edit an existing pdf, I've not found any > functionality that I can't duplicate taking this approach and the user > rarely knows or cares how the pdf was produced. > > William > > ----- Original Message ----- > From: "Rocky Smolin at Beach Access Software" > To: "'Access Developers discussion and problem solving'" > > Sent: Thursday, March 27, 2008 12:24 PM > Subject: [AccessD] Automating Acrobat > > >> Dear List: >> >> Does anyone know if Acrobat's fillable forms can be automated from Access >> like you can merge data into a word doc? >> >> MTIA, >> >> Rocky >> >> >> >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > No virus found in this incoming message. > Checked by AVG. > Version: 7.5.519 / Virus Database: 269.22.1/1345 - Release Date: 3/26/2008 > 6:50 PM > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From rockysmolin at bchacc.com Thu Mar 27 22:58:03 2008 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Thu, 27 Mar 2008 20:58:03 -0700 Subject: [AccessD] Automating Acrobat In-Reply-To: <0JYF0013J2RAZU91@vms046.mailsrvcs.net> References: <004e01c89027$03950040$0301a8c0@HAL9005> <0JYF0013J2RAZU91@vms046.mailsrvcs.net> Message-ID: <00c101c89087$ec6780d0$0301a8c0@HAL9005> SDK. Got it. Well, I'll have to get it. And Acrobat Pro, too, I suppose. Thanks. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: Thursday, March 27, 2008 6:28 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Automating Acrobat Yes if you download their SDK you can populate PDF forms with data and save the data as an FDF file. I used this approach 5 years ago for an insurance company application. I had an Access app for the field reps that downloaded their survey data (work they needed to get done) and opened fillable PDF forms. The data they filled in was saved as FDF files on their local drive and emailed to the home office as well as well as FTPed to the home office ftp server. I'd have to search my archives for the app but yes it can be done. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Thursday, March 27, 2008 9:24 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Automating Acrobat Dear List: Does anyone know if Acrobat's fillable forms can be automated from Access like you can merge data into a word doc? MTIA, Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG. Version: 7.5.519 / Virus Database: 269.22.1/1347 - Release Date: 3/27/2008 7:15 PM From pcs at azizaz.com Thu Mar 27 23:28:59 2008 From: pcs at azizaz.com (pcs at azizaz.com) Date: Fri, 28 Mar 2008 14:28:59 +1000 (EST) Subject: [AccessD] How to get rid of procedures not used in a project Message-ID: <20080328142859.DTB33860@dommail.onthenet.com.au> Hello, Is there a utility in existence that will identify all procedure (subs and functions) that are not used (referenced) in a Project, i.e. they are not called by any other sub or function or event on a Form ?? I am trying to do a spring clean of a major project where a lot of modules have been copied in to just use a few procedures from here, a few from there and so on ... pretty messy I know ... regards borge From Gustav at cactus.dk Fri Mar 28 02:19:03 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 28 Mar 2008 08:19:03 +0100 Subject: [AccessD] How to get rid of procedures not used in a project Message-ID: Hi Borge FMS's Total Access Analyzer claims to have this feature: http://www.fmsinc.com/MicrosoftAccess/BestPractices.html I have no experience with it. /gustav >>> pcs at azizaz.com 28-03-2008 05:28 >>> Hello, Is there a utility in existence that will identify all procedure (subs and functions) that are not used (referenced) in a Project, i.e. they are not called by any other sub or function or event on a Form ?? I am trying to do a spring clean of a major project where a lot of modules have been copied in to just use a few procedures from here, a few from there and so on ... pretty messy I know ... regards borge From boogieloogie at gmail.com Fri Mar 28 02:48:22 2008 From: boogieloogie at gmail.com (Boogie Loogie) Date: Fri, 28 Mar 2008 04:48:22 -0300 Subject: [AccessD] OT:Backup and Restore Complete PCs In-Reply-To: <29f585dd0803250300n3782dd8ew22a25369c42bb3ca@mail.gmail.com> References: <000a01c88b23$57377e70$8119fea9@LTVM> <004601c88ddc$1aac4c40$0201a8c0@M90> <280C9402D9C24B7A8BAB5639BF036B69@BPCS> <29f585dd0803250300n3782dd8ew22a25369c42bb3ca@mail.gmail.com> Message-ID: <3bf43ee90803280048l3b0cc54fhb9ea70609c5a9e1f@mail.gmail.com> I have used a free product called Drive Image XML that creates a ghost image of my hard drive once every 24 hours to an external HD. I had to set up my Windows Task Manager to automate it, but once you set it...forget it! Read about it at: http://www.tatumba.com/blog/archives/238 :L On Tue, Mar 25, 2008 at 7:00 AM, Arthur Fuller wrote: > I'm pretty sure that Google Desktop has an add-in that can search MDBs. > > On 3/24/08, Mark A Matte wrote: > > > > > > Hello All, > > > > I need to search a folder with 100's of Access DBs...and find the ones > > with a certain table,form,qry, or module name. Any ideas? > > > > Thanks, > > > > Mark A. Matte > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From dwaters at usinternet.com Fri Mar 28 07:38:59 2008 From: dwaters at usinternet.com (Dan Waters) Date: Fri, 28 Mar 2008 07:38:59 -0500 Subject: [AccessD] VM for different versions of Access In-Reply-To: <000901c89070$c2b11060$fe786c4c@jisshowsbs.local> References: <47EBC348.4000101@torchlake.com><4dd71a0c0803271638x3d17edc6j2e778ddbcc35432f@mail.gmail.com> <000901c89070$c2b11060$fe786c4c@jisshowsbs.local> Message-ID: <000301c890d0$b2724650$0300a8c0@danwaters> William - could you post a link for this? Thanks! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Thursday, March 27, 2008 8:12 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] VM for different versions of Access ...Microsoft is offering a free WinXpSP2 install on a vhd ...you have to renew every few months but it is no cost ...its intended for web developers running multiple versions of IE on one system but you don't have to do anything other than download it ...I have two copies installed on my vpc, one with IE6, and one with IE8 ...works a trick and a damn sight easier than keeping multiple pcs running. William ----- Original Message ----- From: "Doug Steele" To: "Access Developers discussion and problem solving" Sent: Thursday, March 27, 2008 7:38 PM Subject: Re: [AccessD] VM for different versions of Access >I use VMWare, and I have an 8gb USB stick with a full Windows XP install >and > Office 2003. Works very well, as long as you've got at least 2gb RAM! > You > can also set up the VM to be copyable (with VMWare Workstation, anyway), > copy it to another machine running VMWare Player, and run it there. > > I use VMs for keeping various development environments separate > (specifically, different versions of Office) and it's great. > > It would be so cool to set up a VM on a client's computer so you could > have > total control over the environment that your database was running in. The > VMs are a bit large for shooting back & forth, though, and I haven't yet > got > up the nerve to ask any client to purchase an extra set of Windows > installs > for every computer running my database! > > Doug Steele > > > On Thu, Mar 27, 2008 at 8:54 AM, Tina Norris Fields < > tinanfields at torchlake.com> wrote: > >> Hi All, >> >> Double-posting, since this is a technical virtual machine question but >> involves Access. >> >> The database I wrote about that got corrupted has been mostly repaired. >> That is to say the tables are intact, all the data are there, and the >> table relationships are good. However, there are bits and pieces that >> definitely are out of whack. I am going to remodel the database, to use >> only the features the client actually uses and wants, to restore the >> switchboard interface the client likes, and then split the sucker into a >> proper BE and FE. Client agrees. Here is the puzzle: client uses >> Access97. My machine is WinXP Pro with Office 2003. >> >> I would like to install a virtual machine and run Office 97 in that >> machine (yes, I still have a licensed copy on the shelf - >> unbelievable!). I would like that machine to reside on my USB external >> drive. Is this do-able? What are the gotchas I need to watch out for? >> >> I have Microsoft's VirtualPC installed as well as VMWare's Server. The >> MS VirtualPC seems the better candidate for making a virtual machine to >> run another version of Office. >> >> Suggestions? Ideas? Watch-out fors? >> >> Thanks, >> Tina >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Mar 28 08:50:33 2008 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Fri, 28 Mar 2008 08:50:33 -0500 Subject: [AccessD] How to get rid of procedures not used in a project Message-ID: <34C8A2AB1EF3564CB0D64DB6AFFDD5C211DF66A9@XLIVMBX35bkup.aig.com> Take a look at the free MZ Tools (Don't program without it) http://www.mztool.com It has a 'Review Source Code' option on its 'Other Utilities' menu that will do exactly what you want. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of pcs at azizaz.com Sent: Friday, March 28, 2008 12:29 AM To: Access Developers discussion and problem solving Subject: [AccessD] How to get rid of procedures not used in a project Hello, Is there a utility in existence that will identify all procedure (subs and functions) that are not used (referenced) in a Project, i.e. they are not called by any other sub or function or event on a Form ?? I am trying to do a spring clean of a major project where a lot of modules have been copied in to just use a few procedures from here, a few from there and so on ... pretty messy I know ... regards borge -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Patricia.O'Connor at otda.state.ny.us Fri Mar 28 09:44:48 2008 From: Patricia.O'Connor at otda.state.ny.us (O'Connor, Patricia (OTDA)) Date: Fri, 28 Mar 2008 10:44:48 -0400 Subject: [AccessD] VB6 stability In-Reply-To: <000d01c86119$ba2c9620$6501a8c0@nant> References: <002801c86064$441a27a0$0301a8c0@HAL9005> <000d01c86119$ba2c9620$6501a8c0@nant> Message-ID: <01DBAB52E30A9A4AB3D94EF8029EDBE8021BB2E8@EXCNYSM0A1AI.nysemail.nyenet> Hi All Quick question - someone in my office was told that VB6 is unstable This is the first I have ever heard of this. Since so many people here (genius and gurus) use many different softwares I figured if VB6 was unstable it would be told here If it is unstable - why, in what area, or is this an effort for someone to justify why they use and/or to push using something else. I have used Vb for years and never really had any problems. TIA Patti ************************************************** * Patricia O'Connor * (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. From hkotsch at arcor.de Fri Mar 28 09:49:04 2008 From: hkotsch at arcor.de (Helmut Kotsch) Date: Fri, 28 Mar 2008 15:49:04 +0100 Subject: [AccessD] How to get rid of procedures not used in a project In-Reply-To: <34C8A2AB1EF3564CB0D64DB6AFFDD5C211DF66A9@XLIVMBX35bkup.aig.com> Message-ID: Shouldn't the link be http://www.mztools.com ? Helmut -----Ursprungliche Nachricht----- Von: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]Im Auftrag von Heenan, Lambert Gesendet: Freitag, 28. Marz 2008 14:51 An: 'Access Developers discussion and problem solving' Betreff: Re: [AccessD] How to get rid of procedures not used in a project Take a look at the free MZ Tools (Don't program without it) http://www.mztool.com It has a 'Review Source Code' option on its 'Other Utilities' menu that will do exactly what you want. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of pcs at azizaz.com Sent: Friday, March 28, 2008 12:29 AM To: Access Developers discussion and problem solving Subject: [AccessD] How to get rid of procedures not used in a project Hello, Is there a utility in existence that will identify all procedure (subs and functions) that are not used (referenced) in a Project, i.e. they are not called by any other sub or function or event on a Form ?? I am trying to do a spring clean of a major project where a lot of modules have been copied in to just use a few procedures from here, a few from there and so on ... pretty messy I know ... regards borge -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Fri Mar 28 09:48:06 2008 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Fri, 28 Mar 2008 09:48:06 -0500 Subject: [AccessD] Count Average in Query Message-ID: I have a table that has casing pressures for hundreds of wells. There can be anywhere from 1 to 31 values per well per month. What I need to extract from the table is a count by month of wells that have an average casing pressure over 1000 psi. I am not quite sure how do this best. I could calculate a monthly average for each well, then extract the ones over 1000 and then count them. This just doesn't seem like the best way to go. Thanks. Chester Kaup Engineering Technician Kinder Morgan CO2 Company, LLP Office (432) 688-3797 FAX (432) 688-3799 No trees were killed in the sending of this message. However a large number of electrons were terribly inconvenienced. From jwcolby at colbyconsulting.com Fri Mar 28 09:54:10 2008 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 28 Mar 2008 10:54:10 -0400 Subject: [AccessD] VB6 stability In-Reply-To: <01DBAB52E30A9A4AB3D94EF8029EDBE8021BB2E8@EXCNYSM0A1AI.nysemail.nyenet> References: <002801c86064$441a27a0$0301a8c0@HAL9005><000d01c86119$ba2c9620$6501a8c0@nant> <01DBAB52E30A9A4AB3D94EF8029EDBE8021BB2E8@EXCNYSM0A1AI.nysemail.nyenet> Message-ID: <001101c890e3$95813cf0$0201a8c0@M90> LOL. The best way to handle this is to ask that person to document his / her case. Bring in or display REPUTABLE web pages or books or magazines that state how and why. My guess is that will shut them up fast, or send them off on a wild goose chase, determined to find it and you will never see them again. Either way works. 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 O'Connor, Patricia (OTDA) Sent: Friday, March 28, 2008 10:45 AM To: Access Developers discussion and problem solving Subject: [AccessD] VB6 stability Hi All Quick question - someone in my office was told that VB6 is unstable This is the first I have ever heard of this. Since so many people here (genius and gurus) use many different softwares I figured if VB6 was unstable it would be told here If it is unstable - why, in what area, or is this an effort for someone to justify why they use and/or to push using something else. I have used Vb for years and never really had any problems. TIA Patti ************************************************** * Patricia O'Connor * (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. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at gmail.com Fri Mar 28 10:01:03 2008 From: ssharkins at gmail.com (Susan Harkins) Date: Fri, 28 Mar 2008 11:01:03 -0400 Subject: [AccessD] DB Design Question References: <000a01c88b23$57377e70$8119fea9@LTVM><004601c88ddc$1aac4c40$0201a8c0@M90><280C9402D9C24B7A8BAB5639BF036B69@BPCS><005001c88e18$6cd18990$0300a8c0@danwaters> <020101c88f83$30fd6620$036fa8c0@lcmdv8000> Message-ID: <00ab01c890e4$937a05d0$4b3a8343@SusanOne> Did you ever get any responses to this and do you still need help? Susan H. > > Each company/organization can have multiple locations. Given that the > locations are currently contained in 20+ separate tables, once for each > service grouping (EX: dogs, cars, birds), and with specific fields for > each > service, I'd like to resolve the locations into one table, and link out to > services via a some sort of relationship. > > For example, the "dogs" table might have the additional fields: breed, > color, weight, while Cars might have: horsepower, tire size, etc. > From ebarro at verizon.net Fri Mar 28 10:07:52 2008 From: ebarro at verizon.net (Eric Barro) Date: Fri, 28 Mar 2008 10:07:52 -0500 (CDT) Subject: [AccessD] VB6 stability Message-ID: <26703280.2215501206716872612.JavaMail.root@vms229.mailsrvcs.net> Patti, The person who said this probably wants to move the apps to .NET. Visual Basic is a stable development platform. A subset (VBA) is the underlying technology in the Microsoft Office platform. Eric ------------------------ From: "O'Connor, Patricia (OTDA)" Date: 2008/03/28 Fri AM 09:44:48 CDT To: Access Developers discussion and problem solving Subject: [AccessD] VB6 stability Hi All Quick question - someone in my office was told that VB6 is unstable This is the first I have ever heard of this. Since so many people here (genius and gurus) use many different softwares I figured if VB6 was unstable it would be told here If it is unstable - why, in what area, or is this an effort for someone to justify why they use and/or to push using something else. I have used Vb for years and never really had any problems. TIA Patti ************************************************** * Patricia O'Connor * (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. -- 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 Mar 28 10:13:12 2008 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Fri, 28 Mar 2008 11:13:12 -0400 Subject: [AccessD] How to get rid of procedures not used in a project Message-ID: <34C8A2AB1EF3564CB0D64DB6AFFDD5C211DF66AD@XLIVMBX35bkup.aig.com> Well of course. But it's Friday and my typing neurons are worn out! :-) Thanks for the correction. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Helmut Kotsch Sent: Friday, March 28, 2008 10:49 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] How to get rid of procedures not used in a project Shouldn't the link be http://www.mztools.com ? Helmut -----Ursprungliche Nachricht----- Von: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]Im Auftrag von Heenan, Lambert Gesendet: Freitag, 28. Marz 2008 14:51 An: 'Access Developers discussion and problem solving' Betreff: Re: [AccessD] How to get rid of procedures not used in a project Take a look at the free MZ Tools (Don't program without it) http://www.mztool.com It has a 'Review Source Code' option on its 'Other Utilities' menu that will do exactly what you want. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of pcs at azizaz.com Sent: Friday, March 28, 2008 12:29 AM To: Access Developers discussion and problem solving Subject: [AccessD] How to get rid of procedures not used in a project Hello, Is there a utility in existence that will identify all procedure (subs and functions) that are not used (referenced) in a Project, i.e. they are not called by any other sub or function or event on a Form ?? I am trying to do a spring clean of a major project where a lot of modules have been copied in to just use a few procedures from here, a few from there and so on ... pretty messy I know ... regards borge -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Patricia.O'Connor at otda.state.ny.us Fri Mar 28 10:31:16 2008 From: Patricia.O'Connor at otda.state.ny.us (O'Connor, Patricia (OTDA)) Date: Fri, 28 Mar 2008 11:31:16 -0400 Subject: [AccessD] Count Average in Query In-Reply-To: References: Message-ID: <01DBAB52E30A9A4AB3D94EF8029EDBE8021BB2E9@EXCNYSM0A1AI.nysemail.nyenet> Try Select YearMonth, WellId, Count(WellPressureRecords) Recnt, Sum(CasePressure) PressureAmt AVG(sum(CasePressure) / Count(wellPressureRecords)) AvgPressure >From YourTable Where AVG(sum(CasePressure) / Count(wellPressureRecords)) > 1000 Group by YearMonth, WellId Otherwise may have to do subquery or two queries linked Let me know how this goes HTH ************************************************** * Patricia O'Connor * Information Technology Specialist 3 (Programming) * 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 > Kaup, Chester > Sent: Friday, March 28, 2008 10:48 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] Count Average in Query > > I have a table that has casing pressures for hundreds of > wells. There can be anywhere from 1 to 31 values per well per > month. What I need to extract from the table is a count by > month of wells that have an average casing pressure over 1000 > psi. I am not quite sure how do this best. I could calculate > a monthly average for each well, then extract the ones over > 1000 and then count them. This just doesn't seem like the > best way to go. Thanks. > > > > Chester Kaup > > Engineering Technician > > Kinder Morgan CO2 Company, LLP > > Office (432) 688-3797 > > FAX (432) 688-3799 > > > > > > No trees were killed in the sending of this message. However > a large number of electrons were terribly inconvenienced. > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From wdhindman at dejpolsystems.com Fri Mar 28 10:39:56 2008 From: wdhindman at dejpolsystems.com (William Hindman) Date: Fri, 28 Mar 2008 11:39:56 -0400 Subject: [AccessD] Automating Acrobat References: <004e01c89027$03950040$0301a8c0@HAL9005><0JYF0013J2RAZU91@vms046.mailsrvcs.net> <00c101c89087$ec6780d0$0301a8c0@HAL9005> Message-ID: <003901c890e9$fa1bba40$fe786c4c@jisshowsbs.local> ...given the following query: SELECT DISTINCTROW tblExhibitorProducts.EPCID, qryApr08Grid.CompanyID, qryApr08Grid.CompanyName, qryApr08Grid.AdClass, qryApr08Grid.SGOn FROM tblExhibitorProducts INNER JOIN qryApr08Grid ON tblExhibitorProducts.CompanyID = qryApr08Grid.CompanyID WHERE (((tblExhibitorProducts.EPCID)=11)) OR (((qryApr08Grid.AdClass)="A")); ...how can I avoid duplicates in the OR results? ...I've tried totals and uniuqe values/records but nothing produces consistent results ...help! William From wdhindman at dejpolsystems.com Fri Mar 28 10:43:06 2008 From: wdhindman at dejpolsystems.com (William Hindman) Date: Fri, 28 Mar 2008 11:43:06 -0400 Subject: [AccessD] deduping qry results Message-ID: <004901c890ea$6afc0f30$fe786c4c@jisshowsbs.local> ...senior moment ...posted on another thread by mistake :( ...given the following query: SELECT DISTINCTROW tblExhibitorProducts.EPCID, qryApr08Grid.CompanyID, qryApr08Grid.CompanyName, qryApr08Grid.AdClass, qryApr08Grid.SGOn FROM tblExhibitorProducts INNER JOIN qryApr08Grid ON tblExhibitorProducts.CompanyID = qryApr08Grid.CompanyID WHERE (((tblExhibitorProducts.EPCID)=11)) OR (((qryApr08Grid.AdClass)="A")); ...how can I avoid duplicates in the OR results? ...I've tried totals and uniuqe values/records but nothing produces consistent results ...help! William From DWUTKA at Marlow.com Fri Mar 28 10:52:52 2008 From: DWUTKA at Marlow.com (Drew Wutka) Date: Fri, 28 Mar 2008 10:52:52 -0500 Subject: [AccessD] VB6 stability In-Reply-To: <01DBAB52E30A9A4AB3D94EF8029EDBE8021BB2E8@EXCNYSM0A1AI.nysemail.nyenet> Message-ID: VB6 is extremely stable. From a programming aspect, there are three instances I know of where the debug mode (running a program within VB itself, instead of a compiled state) can get flaky. One is using subclassed forms (putting an icon in the system tray for a form). If you just 'stop' or end the program before unhooking the subclassed icon, VB6 will crash. The second method is multithreading. VB6 will not multithread in debug mode, but you can create a multithreaded .exe. The final method is in creating NT services. I do this using an NTService OCX. Works great, but if you try to run it in normal mode, instead of debug mode, VB crashes. As for compiled programs, however, I've never had a problem with .exes being 'unstable'. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of O'Connor, Patricia (OTDA) Sent: Friday, March 28, 2008 9:45 AM To: Access Developers discussion and problem solving Subject: [AccessD] VB6 stability Hi All Quick question - someone in my office was told that VB6 is unstable This is the first I have ever heard of this. Since so many people here (genius and gurus) use many different softwares I figured if VB6 was unstable it would be told here If it is unstable - why, in what area, or is this an effort for someone to justify why they use and/or to push using something else. I have used Vb for years and never really had any problems. TIA Patti ************************************************** * Patricia O'Connor * (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. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From Gustav at cactus.dk Fri Mar 28 10:57:06 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 28 Mar 2008 16:57:06 +0100 Subject: [AccessD] deduping qry results Message-ID: Hi William Couldn't you just remove DISTINCTROW and then use this query as source in another query where you use DISTINCT? /gustav >>> wdhindman at dejpolsystems.com 28-03-2008 16:43:06 >>> ...senior moment ...posted on another thread by mistake :( ...given the following query: SELECT DISTINCTROW tblExhibitorProducts.EPCID, qryApr08Grid.CompanyID, qryApr08Grid.CompanyName, qryApr08Grid.AdClass, qryApr08Grid.SGOn FROM tblExhibitorProducts INNER JOIN qryApr08Grid ON tblExhibitorProducts.CompanyID = qryApr08Grid.CompanyID WHERE (((tblExhibitorProducts.EPCID)=11)) OR (((qryApr08Grid.AdClass)="A")); ...how can I avoid duplicates in the OR results? ...I've tried totals and uniuqe values/records but nothing produces consistent results ...help! William From Patricia.O'Connor at otda.state.ny.us Fri Mar 28 11:03:34 2008 From: Patricia.O'Connor at otda.state.ny.us (O'Connor, Patricia (OTDA)) Date: Fri, 28 Mar 2008 12:03:34 -0400 Subject: [AccessD] Count Average in Query In-Reply-To: References: Message-ID: <01DBAB52E30A9A4AB3D94EF8029EDBE8021BB2EA@EXCNYSM0A1AI.nysemail.nyenet> Sorry sent wrong copy You would have to do a subquery or link two queries Here is the subquery Select YearMonth, count(WellId) WellOver1000 Avg(Sum(PressureAmt) / Sum(Recnt)) AvgOvr >From (Select Yt1.YearMonth, Yt1.WellId, Count(Yt1.WellID) RecCnt, Sum(Yt1.CasePressure) PressureAmt, AVG(sum(Yt1.CasePressure) / Count(Yt1.WellId)) AvgPressure From YourTable Yt1 HAVING AVG(sum(Yt1.CasePressure) / Count(Yt1.WellID)) > 1000 GROUP BY Yt1.YearMonth, Yt1.WellId ) Group by YearMonth ************************************************** * Patricia O'Connor * Information Technology Specialist 3 (Programming) * 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 > Kaup, Chester > Sent: Friday, March 28, 2008 10:48 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] Count Average in Query > > I have a table that has casing pressures for hundreds of > wells. There can be anywhere from 1 to 31 values per well per > month. What I need to extract from the table is a count by > month of wells that have an average casing pressure over 1000 > psi. I am not quite sure how do this best. I could calculate > a monthly average for each well, then extract the ones over > 1000 and then count them. This just doesn't seem like the > best way to go. Thanks. > > > > Chester Kaup > > Engineering Technician > > Kinder Morgan CO2 Company, LLP > > Office (432) 688-3797 > > FAX (432) 688-3799 > > > > > > No trees were killed in the sending of this message. However > a large number of electrons were terribly inconvenienced. > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From wdhindman at dejpolsystems.com Fri Mar 28 11:06:38 2008 From: wdhindman at dejpolsystems.com (William Hindman) Date: Fri, 28 Mar 2008 12:06:38 -0400 Subject: [AccessD] deduping qry results References: Message-ID: <005801c890ed$b4f98740$fe786c4c@jisshowsbs.local> ...love to but EPCID is a parameter supplied by the user. William ----- Original Message ----- From: "Gustav Brock" To: Sent: Friday, March 28, 2008 11:57 AM Subject: Re: [AccessD] deduping qry results > Hi William > > Couldn't you just remove DISTINCTROW and then use this query as source in > another query where you use DISTINCT? > > /gustav > >>>> wdhindman at dejpolsystems.com 28-03-2008 16:43:06 >>> > ...senior moment ...posted on another thread by mistake :( > > ...given the following query: > > SELECT DISTINCTROW tblExhibitorProducts.EPCID, qryApr08Grid.CompanyID, > qryApr08Grid.CompanyName, qryApr08Grid.AdClass, qryApr08Grid.SGOn > FROM tblExhibitorProducts INNER JOIN qryApr08Grid ON > tblExhibitorProducts.CompanyID = qryApr08Grid.CompanyID WHERE > (((tblExhibitorProducts.EPCID)=11)) OR (((qryApr08Grid.AdClass)="A")); > > ...how can I avoid duplicates in the OR results? > ...I've tried totals and uniuqe values/records but nothing produces > consistent results ...help! > > William > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From rockysmolin at bchacc.com Fri Mar 28 11:08:25 2008 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Fri, 28 Mar 2008 09:08:25 -0700 Subject: [AccessD] Automating Acrobat In-Reply-To: <003901c890e9$fa1bba40$fe786c4c@jisshowsbs.local> References: <004e01c89027$03950040$0301a8c0@HAL9005><0JYF0013J2RAZU91@vms046.mailsrvcs.net><00c101c89087$ec6780d0$0301a8c0@HAL9005> <003901c890e9$fa1bba40$fe786c4c@jisshowsbs.local> Message-ID: <001a01c890ed$f43aeb10$0301a8c0@HAL9005> Two queries - one to set up the records with dups and a second one using the first one but properties Unique Values - Yes? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Friday, March 28, 2008 8:40 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Automating Acrobat ...given the following query: SELECT DISTINCTROW tblExhibitorProducts.EPCID, qryApr08Grid.CompanyID, qryApr08Grid.CompanyName, qryApr08Grid.AdClass, qryApr08Grid.SGOn FROM tblExhibitorProducts INNER JOIN qryApr08Grid ON tblExhibitorProducts.CompanyID = qryApr08Grid.CompanyID WHERE (((tblExhibitorProducts.EPCID)=11)) OR (((qryApr08Grid.AdClass)="A")); ...how can I avoid duplicates in the OR results? ...I've tried totals and uniuqe values/records but nothing produces consistent results ...help! William -- 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. Version: 7.5.519 / Virus Database: 269.22.1/1347 - Release Date: 3/27/2008 7:15 PM From DWUTKA at Marlow.com Fri Mar 28 11:09:26 2008 From: DWUTKA at Marlow.com (Drew Wutka) Date: Fri, 28 Mar 2008 11:09:26 -0500 Subject: [AccessD] DB Design Question In-Reply-To: <020101c88f83$30fd6620$036fa8c0@lcmdv8000> Message-ID: I would recommend designing the 'service groups' as a table design in and of itself. For example, you have multiple companies, each with multiple locations, each with multiple 'service groupings'. Each service grouping could have it's own fields. Instead of making those table fields, make them data fields: tblServiceGrouping ServiceGroupingID ServiceGroupingName 1 Dogs 2 Cars tblServiceGroupingFields FieldID ServiceGroupingID FieldName FieldType 1 1 Breed Text 2 1 Color Text 3 2 Make Text 4 2 Color Text 5 2 HorsePower Integer tblSGDataText FieldID NormalDataID <-- This is going to link the data to what you actually want to record.... Data (Text) 1 'x' Terrier 2 'x' Brown 1 'y' Dalmation 2 'y' White tblSGDataInteger FieldID NormalDataID Data (Integer) 5 'z' 250 5 'a' 300 I have several systems where I needed 'dynamic' table designs. This method works pretty well. That 'NormalDataID' is the id that is going to link the data in the 'data tables' to what you are trying to accomplish. For instance, the sample data I posted above, let's say that you are recording an 'customer' for each service Grouping. So you would have Customer X, which has a brown terrier. The Customer ID (or better yet, the Customer Service ID (so a customer could be serviced more then once), would be the 'NormalDataID'. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lawrence Mrazek Sent: Wednesday, March 26, 2008 3:52 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] DB Design Question Hi Folks: I'm working on revising a resource directory consisting of companies/organizations and the services they offer, and would appreciate any feedback regarding a specific design question I have. Each company/organization can have multiple locations. Given that the locations are currently contained in 20+ separate tables, once for each service grouping (EX: dogs, cars, birds), and with specific fields for each service, I'd like to resolve the locations into one table, and link out to services via a some sort of relationship. For example, the "dogs" table might have the additional fields: breed, color, weight, while Cars might have: horsepower, tire size, etc. I'd like to have this system to be as flexible as possible, any hints on how to relate those service specific fields to the general tblLocation? Note that each location might could have multiple services associated with it. Thanks ... I'm just a bit foggy today and need a second opinion on this problem. Larry Mrazek LCM Research, Inc. www.lcm-res.com lmrazek at lcm-res.com ph. 314-432-5886 mobile: 314-496-1645 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From dwaters at usinternet.com Fri Mar 28 11:12:15 2008 From: dwaters at usinternet.com (Dan Waters) Date: Fri, 28 Mar 2008 11:12:15 -0500 Subject: [AccessD] Access 2003 or Access 2007 with SQL Server 2005 Message-ID: <001301c890ee$7d61d980$0300a8c0@danwaters> I have a customer who may soon be using PC's where A2003 is replaced by A2007. These are all client PC's, and none will have multiple versions of Access. The system they use will soon be updated to use SQL Server 2005 for the BE. Does anyone use a system in this configuration? How's it going so far? Thanks, Dan From wdhindman at dejpolsystems.com Fri Mar 28 11:27:29 2008 From: wdhindman at dejpolsystems.com (William Hindman) Date: Fri, 28 Mar 2008 12:27:29 -0400 Subject: [AccessD] Automating Acrobat References: <004e01c89027$03950040$0301a8c0@HAL9005><0JYF0013J2RAZU91@vms046.mailsrvcs.net><00c101c89087$ec6780d0$0301a8c0@HAL9005><003901c890e9$fa1bba40$fe786c4c@jisshowsbs.local> <001a01c890ed$f43aeb10$0301a8c0@HAL9005> Message-ID: <006d01c890f0$9e278500$fe786c4c@jisshowsbs.local> ...that would be the normal approach but EPCID is a parameter and isn't known until the user supplies it ...thus I can't dedupe before hand since the data caught by the OR almost certainly has differing EPCIDs ..I'm thinking about using a UNION but those always make my head hurt :( William ----- Original Message ----- From: "Rocky Smolin at Beach Access Software" To: "'Access Developers discussion and problem solving'" Sent: Friday, March 28, 2008 12:08 PM Subject: Re: [AccessD] Automating Acrobat > Two queries - one to set up the records with dups and a second one using > the > first one but properties Unique Values - Yes? > > Rocky > > > > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman > Sent: Friday, March 28, 2008 8:40 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Automating Acrobat > > ...given the following query: > > SELECT DISTINCTROW tblExhibitorProducts.EPCID, qryApr08Grid.CompanyID, > qryApr08Grid.CompanyName, qryApr08Grid.AdClass, qryApr08Grid.SGOn FROM > tblExhibitorProducts INNER JOIN qryApr08Grid ON > tblExhibitorProducts.CompanyID = qryApr08Grid.CompanyID WHERE > (((tblExhibitorProducts.EPCID)=11)) OR (((qryApr08Grid.AdClass)="A")); > > ...how can I avoid duplicates in the OR results? > ...I've tried totals and uniuqe values/records but nothing produces > consistent results ...help! > > William > > > > -- > 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. > Version: 7.5.519 / Virus Database: 269.22.1/1347 - Release Date: 3/27/2008 > 7:15 PM > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From lmrazek at lcm-res.com Fri Mar 28 11:36:58 2008 From: lmrazek at lcm-res.com (Lawrence Mrazek) Date: Fri, 28 Mar 2008 11:36:58 -0500 Subject: [AccessD] DB Design Question In-Reply-To: References: <020101c88f83$30fd6620$036fa8c0@lcmdv8000> Message-ID: <035201c890f1$f33df0a0$036fa8c0@lcmdv8000> Hi All: (I'm just beginning to tackle this today, thanks to all who have responded (Susan H. & Robert S.) I think Drew's approach probably fits this problem the best ... This way I'm not constraining the client, and it will allow them to better manage the data on their own. The only other issue that I face is customizing the data input experience for each specific field ... Basically, what if I need to have a radio group or dropdown list? Larry Mrazek LCM Research, Inc. www.lcm-res.com lmrazek at lcm-res.com ph. 314-432-5886 mobile: 314-496-1645 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Friday, March 28, 2008 11:09 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] DB Design Question I would recommend designing the 'service groups' as a table design in and of itself. For example, you have multiple companies, each with multiple locations, each with multiple 'service groupings'. Each service grouping could have it's own fields. Instead of making those table fields, make them data fields: tblServiceGrouping ServiceGroupingID ServiceGroupingName 1 Dogs 2 Cars tblServiceGroupingFields FieldID ServiceGroupingID FieldName FieldType 1 1 Breed Text 2 1 Color Text 3 2 Make Text 4 2 Color Text 5 2 HorsePower Integer tblSGDataText FieldID NormalDataID <-- This is going to link the data to what you actually want to record.... Data (Text) 1 'x' Terrier 2 'x' Brown 1 'y' Dalmation 2 'y' White tblSGDataInteger FieldID NormalDataID Data (Integer) 5 'z' 250 5 'a' 300 I have several systems where I needed 'dynamic' table designs. This method works pretty well. That 'NormalDataID' is the id that is going to link the data in the 'data tables' to what you are trying to accomplish. For instance, the sample data I posted above, let's say that you are recording an 'customer' for each service Grouping. So you would have Customer X, which has a brown terrier. The Customer ID (or better yet, the Customer Service ID (so a customer could be serviced more then once), would be the 'NormalDataID'. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lawrence Mrazek Sent: Wednesday, March 26, 2008 3:52 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] DB Design Question Hi Folks: I'm working on revising a resource directory consisting of companies/organizations and the services they offer, and would appreciate any feedback regarding a specific design question I have. Each company/organization can have multiple locations. Given that the locations are currently contained in 20+ separate tables, once for each service grouping (EX: dogs, cars, birds), and with specific fields for each service, I'd like to resolve the locations into one table, and link out to services via a some sort of relationship. For example, the "dogs" table might have the additional fields: breed, color, weight, while Cars might have: horsepower, tire size, etc. I'd like to have this system to be as flexible as possible, any hints on how to relate those service specific fields to the general tblLocation? Note that each location might could have multiple services associated with it. Thanks ... I'm just a bit foggy today and need a second opinion on this problem. Larry Mrazek LCM Research, Inc. www.lcm-res.com lmrazek at lcm-res.com ph. 314-432-5886 mobile: 314-496-1645 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Patricia.O'Connor at otda.state.ny.us Fri Mar 28 11:37:17 2008 From: Patricia.O'Connor at otda.state.ny.us (O'Connor, Patricia (OTDA)) Date: Fri, 28 Mar 2008 12:37:17 -0400 Subject: [AccessD] deduping qry results In-Reply-To: <004901c890ea$6afc0f30$fe786c4c@jisshowsbs.local> References: <004901c890ea$6afc0f30$fe786c4c@jisshowsbs.local> Message-ID: <01DBAB52E30A9A4AB3D94EF8029EDBE8021BB2EB@EXCNYSM0A1AI.nysemail.nyenet> William Could you show an example of what you are trying to avoid. Or be a bit more specific? What element(S) are you trying not to get a duplicate of ? SELECT DISTINCTROW tblExhibitorProducts.EPCID, qryApr08Grid.CompanyID, qryApr08Grid.CompanyName, qryApr08Grid.AdClass, qryApr08Grid.SGOn FROM tblExhibitorProducts INNER JOIN qryApr08Grid ON tblExhibitorProducts.CompanyID = qryApr08Grid.CompanyID WHERE (tblExhibitorProducts.EPCID=11) OR (qryApr08Grid.AdClass ="A") ; I have an idea but need to see if I am right ************************************************** * Patricia O'Connor * Information Technology Specialist 3 (Programming) * 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 > William Hindman > Sent: Friday, March 28, 2008 11:43 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] deduping qry results > > ...senior moment ...posted on another thread by mistake :( > > ...given the following query: > > SELECT DISTINCTROW tblExhibitorProducts.EPCID, > qryApr08Grid.CompanyID, qryApr08Grid.CompanyName, > qryApr08Grid.AdClass, qryApr08Grid.SGOn FROM > tblExhibitorProducts INNER JOIN qryApr08Grid ON > tblExhibitorProducts.CompanyID = qryApr08Grid.CompanyID WHERE > (((tblExhibitorProducts.EPCID)=11)) OR (((qryApr08Grid.AdClass)="A")); > > ...how can I avoid duplicates in the OR results? > ...I've tried totals and uniuqe values/records but nothing > produces consistent results ...help! > > William > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From ssharkins at gmail.com Fri Mar 28 11:43:04 2008 From: ssharkins at gmail.com (Susan Harkins) Date: Fri, 28 Mar 2008 12:43:04 -0400 Subject: [AccessD] DB Design Question References: <020101c88f83$30fd6620$036fa8c0@lcmdv8000> <035201c890f1$f33df0a0$036fa8c0@lcmdv8000> Message-ID: <026a01c890f2$cceb7ed0$4b3a8343@SusanOne> > The only other issue that I face is customizing the data input experience > for each specific field ... Basically, what if I need to have a radio > group > or dropdown list? ======I don't understand your question -- perhaps an example? FWIW, if the form's underlying query is correct, it'll take care of a lot of your data entry issues. It sounds like you want to limit data entry choices or do you want to use these controls to autofill other controls? Susan H. From wdhindman at dejpolsystems.com Fri Mar 28 11:51:40 2008 From: wdhindman at dejpolsystems.com (William Hindman) Date: Fri, 28 Mar 2008 12:51:40 -0400 Subject: [AccessD] deduping qry results References: <004901c890ea$6afc0f30$fe786c4c@jisshowsbs.local> <01DBAB52E30A9A4AB3D94EF8029EDBE8021BB2EB@EXCNYSM0A1AI.nysemail.nyenet> Message-ID: <007f01c890f3$ff25d020$fe786c4c@jisshowsbs.local> ...I'm need to eliminate CompanyID and CompanyName dupes that result from the OR due to there being multiple identical CompanyIDs with different EPCIDs ...I should be able to do this with GroupBy and First but it keeps killing good records :( William ----- Original Message ----- From: "O'Connor, Patricia (OTDA)" To: "Access Developers discussion and problem solving" Sent: Friday, March 28, 2008 12:37 PM Subject: Re: [AccessD] deduping qry results > William > > Could you show an example of what you are trying to avoid. > Or be a bit more specific? > > What element(S) are you trying not to get a duplicate of ? > > SELECT DISTINCTROW > tblExhibitorProducts.EPCID, > qryApr08Grid.CompanyID, > qryApr08Grid.CompanyName, > qryApr08Grid.AdClass, > qryApr08Grid.SGOn > FROM tblExhibitorProducts > INNER JOIN qryApr08Grid > ON tblExhibitorProducts.CompanyID = qryApr08Grid.CompanyID > WHERE (tblExhibitorProducts.EPCID=11) > OR (qryApr08Grid.AdClass ="A") ; > > I have an idea but need to see if I am right > > ************************************************** > * Patricia O'Connor > * Information Technology Specialist 3 (Programming) > * 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 >> William Hindman >> Sent: Friday, March 28, 2008 11:43 AM >> To: Access Developers discussion and problem solving >> Subject: [AccessD] deduping qry results >> >> ...senior moment ...posted on another thread by mistake :( >> >> ...given the following query: >> >> SELECT DISTINCTROW tblExhibitorProducts.EPCID, >> qryApr08Grid.CompanyID, qryApr08Grid.CompanyName, >> qryApr08Grid.AdClass, qryApr08Grid.SGOn FROM >> tblExhibitorProducts INNER JOIN qryApr08Grid ON >> tblExhibitorProducts.CompanyID = qryApr08Grid.CompanyID WHERE >> (((tblExhibitorProducts.EPCID)=11)) OR (((qryApr08Grid.AdClass)="A")); >> >> ...how can I avoid duplicates in the OR results? >> ...I've tried totals and uniuqe values/records but nothing >> produces consistent results ...help! >> >> William >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From Gustav at cactus.dk Fri Mar 28 11:52:28 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 28 Mar 2008 17:52:28 +0100 Subject: [AccessD] deduping qry results Message-ID: Hi William And so? Just specify the parameter in the top query as well. /gustav >>> wdhindman at dejpolsystems.com 28-03-2008 17:06:38 >>> ...love to but EPCID is a parameter supplied by the user. William ----- Original Message ----- From: "Gustav Brock" To: Sent: Friday, March 28, 2008 11:57 AM Subject: Re: [AccessD] deduping qry results > Hi William > > Couldn't you just remove DISTINCTROW and then use this query as source in > another query where you use DISTINCT? > > /gustav > >>>> wdhindman at dejpolsystems.com 28-03-2008 16:43:06 >>> > ...senior moment ...posted on another thread by mistake :( > > ...given the following query: > > SELECT DISTINCTROW tblExhibitorProducts.EPCID, qryApr08Grid.CompanyID, > qryApr08Grid.CompanyName, qryApr08Grid.AdClass, qryApr08Grid.SGOn > FROM tblExhibitorProducts INNER JOIN qryApr08Grid ON > tblExhibitorProducts.CompanyID = qryApr08Grid.CompanyID WHERE > (((tblExhibitorProducts.EPCID)=11)) OR (((qryApr08Grid.AdClass)="A")); > > ...how can I avoid duplicates in the OR results? > ...I've tried totals and uniuqe values/records but nothing produces > consistent results ...help! > > William From cfoust at infostatsystems.com Fri Mar 28 11:53:43 2008 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 28 Mar 2008 09:53:43 -0700 Subject: [AccessD] deduping qry results In-Reply-To: <004901c890ea$6afc0f30$fe786c4c@jisshowsbs.local> References: <004901c890ea$6afc0f30$fe786c4c@jisshowsbs.local> Message-ID: William, if you're only joining tblExhibitorProducts in order to filter aryApr08Grid.CompanyID, Why not use an In and a subquery on tblExhibitorProducts.CompanyID filtered by the EPCID entered instead of an inner join? Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Friday, March 28, 2008 8:43 AM To: Access Developers discussion and problem solving Subject: [AccessD] deduping qry results ...senior moment ...posted on another thread by mistake :( ...given the following query: SELECT DISTINCTROW tblExhibitorProducts.EPCID, qryApr08Grid.CompanyID, qryApr08Grid.CompanyName, qryApr08Grid.AdClass, qryApr08Grid.SGOn FROM tblExhibitorProducts INNER JOIN qryApr08Grid ON tblExhibitorProducts.CompanyID = qryApr08Grid.CompanyID WHERE (((tblExhibitorProducts.EPCID)=11)) OR (((qryApr08Grid.AdClass)="A")); ...how can I avoid duplicates in the OR results? ...I've tried totals and uniuqe values/records but nothing produces consistent results ...help! William -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From wdhindman at dejpolsystems.com Fri Mar 28 12:01:53 2008 From: wdhindman at dejpolsystems.com (William Hindman) Date: Fri, 28 Mar 2008 13:01:53 -0400 Subject: [AccessD] deduping qry results References: Message-ID: <009101c890f5$71f68df0$fe786c4c@jisshowsbs.local> ...but the OR'd records have different EPCIDs and would thus be eliminated. William ----- Original Message ----- From: "Gustav Brock" To: Sent: Friday, March 28, 2008 12:52 PM Subject: Re: [AccessD] deduping qry results > Hi William > > And so? > Just specify the parameter in the top query as well. > > /gustav > >>>> wdhindman at dejpolsystems.com 28-03-2008 17:06:38 >>> > ...love to but EPCID is a parameter supplied by the user. > > William > > ----- Original Message ----- > From: "Gustav Brock" > To: > Sent: Friday, March 28, 2008 11:57 AM > Subject: Re: [AccessD] deduping qry results > > >> Hi William >> >> Couldn't you just remove DISTINCTROW and then use this query as source in >> another query where you use DISTINCT? >> >> /gustav >> >>>>> wdhindman at dejpolsystems.com 28-03-2008 16:43:06 >>> >> ...senior moment ...posted on another thread by mistake :( >> >> ...given the following query: >> >> SELECT DISTINCTROW tblExhibitorProducts.EPCID, qryApr08Grid.CompanyID, >> qryApr08Grid.CompanyName, qryApr08Grid.AdClass, qryApr08Grid.SGOn >> FROM tblExhibitorProducts INNER JOIN qryApr08Grid ON >> tblExhibitorProducts.CompanyID = qryApr08Grid.CompanyID WHERE >> (((tblExhibitorProducts.EPCID)=11)) OR (((qryApr08Grid.AdClass)="A")); >> >> ...how can I avoid duplicates in the OR results? >> ...I've tried totals and uniuqe values/records but nothing produces >> consistent results ...help! >> >> William > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From Gustav at cactus.dk Fri Mar 28 12:23:04 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 28 Mar 2008 18:23:04 +0100 Subject: [AccessD] deduping qry results Message-ID: Hi William Oh, missed that. Then how about: SELECT DISTINCT tblExhibitorProducts.EPCID, qryApr08Grid.CompanyID, qryApr08Grid.CompanyName, qryApr08Grid.AdClass, qryApr08Grid.SGOn FROM tblExhibitorProducts, qryApr08Grid WHERE (tblExhibitorProducts.CompanyID = qryApr08Grid.CompanyID) AND (tblExhibitorProducts.EPCID=11 OR qryApr08Grid.AdClass="A"); or: SELECT tblExhibitorProducts.EPCID, qryApr08Grid.* FROM tblExhibitorProducts, qryApr08Grid WHERE tblExhibitorProducts.CompanyID = qryApr08Grid.CompanyID; Feed this to: SELECT DISTINCT EPCID, CompanyID, CompanyName, AdClass, SGOn FROM qryTemp WHERE EPCID=11 OR AdClass="A"; /gustav >>> wdhindman at dejpolsystems.com 28-03-2008 18:01:53 >>> ...but the OR'd records have different EPCIDs and would thus be eliminated. William ----- Original Message ----- From: "Gustav Brock" To: Sent: Friday, March 28, 2008 12:52 PM Subject: Re: [AccessD] deduping qry results > Hi William > > And so? > Just specify the parameter in the top query as well. > > /gustav > >>>> wdhindman at dejpolsystems.com 28-03-2008 17:06:38 >>> > ...love to but EPCID is a parameter supplied by the user. > > William > > ----- Original Message ----- > From: "Gustav Brock" > To: > Sent: Friday, March 28, 2008 11:57 AM > Subject: Re: [AccessD] deduping qry results > > >> Hi William >> >> Couldn't you just remove DISTINCTROW and then use this query as source in >> another query where you use DISTINCT? >> >> /gustav >> >>>>> wdhindman at dejpolsystems.com 28-03-2008 16:43:06 >>> >> ...senior moment ...posted on another thread by mistake :( >> >> ...given the following query: >> >> SELECT DISTINCTROW tblExhibitorProducts.EPCID, qryApr08Grid.CompanyID, >> qryApr08Grid.CompanyName, qryApr08Grid.AdClass, qryApr08Grid.SGOn >> FROM tblExhibitorProducts INNER JOIN qryApr08Grid ON >> tblExhibitorProducts.CompanyID = qryApr08Grid.CompanyID WHERE >> (((tblExhibitorProducts.EPCID)=11)) OR (((qryApr08Grid.AdClass)="A")); >> >> ...how can I avoid duplicates in the OR results? >> ...I've tried totals and uniuqe values/records but nothing produces >> consistent results ...help! >> >> William > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Fri Mar 28 12:23:59 2008 From: wdhindman at dejpolsystems.com (William Hindman) Date: Fri, 28 Mar 2008 13:23:59 -0400 Subject: [AccessD] deduping qry results References: <004901c890ea$6afc0f30$fe786c4c@jisshowsbs.local> Message-ID: <009701c890f8$853373d0$fe786c4c@jisshowsbs.local> ...not quite Charlotte ...the EPCID reflects product categories that an Exhibtor sells ...I need to show all Exhibitors (CompanyID) for a given show (qryApr08Grid) who sell a selected product (EPCID) ...watch out now ...plus ANY Exhibitor from the qryApr08Grid who has paid a sponsorshp fee (AdClass =A) whether or not they sell that product. ...so far, I'm not getting there ...theoretically I should be able to use Totals: GroupBy and First to do this ...but it keeps dropping valid records when I do that ...so far this has me stumped. William ----- Original Message ----- From: "Charlotte Foust" To: "Access Developers discussion and problem solving" Sent: Friday, March 28, 2008 12:53 PM Subject: Re: [AccessD] deduping qry results > William, if you're only joining tblExhibitorProducts in order to filter > aryApr08Grid.CompanyID, Why not use an In and a subquery on > tblExhibitorProducts.CompanyID filtered by the EPCID entered instead of > an inner join? > > Charlotte Foust > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William > Hindman > Sent: Friday, March 28, 2008 8:43 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] deduping qry results > > ...senior moment ...posted on another thread by mistake :( > > ...given the following query: > > SELECT DISTINCTROW tblExhibitorProducts.EPCID, qryApr08Grid.CompanyID, > qryApr08Grid.CompanyName, qryApr08Grid.AdClass, qryApr08Grid.SGOn FROM > tblExhibitorProducts INNER JOIN qryApr08Grid ON > tblExhibitorProducts.CompanyID = qryApr08Grid.CompanyID WHERE > (((tblExhibitorProducts.EPCID)=11)) OR (((qryApr08Grid.AdClass)="A")); > > ...how can I avoid duplicates in the OR results? > ...I've tried totals and uniuqe values/records but nothing produces > consistent results ...help! > > William > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From Patricia.O'Connor at otda.state.ny.us Fri Mar 28 12:35:59 2008 From: Patricia.O'Connor at otda.state.ny.us (O'Connor, Patricia (OTDA)) Date: Fri, 28 Mar 2008 13:35:59 -0400 Subject: [AccessD] deduping qry results In-Reply-To: <007f01c890f3$ff25d020$fe786c4c@jisshowsbs.local> References: <004901c890ea$6afc0f30$fe786c4c@jisshowsbs.local><01DBAB52E30A9A4AB3D94EF8029EDBE8021BB2EB@EXCNYSM0A1AI.nysemail.nyenet> <007f01c890f3$ff25d020$fe786c4c@jisshowsbs.local> Message-ID: <01DBAB52E30A9A4AB3D94EF8029EDBE8021BB2EC@EXCNYSM0A1AI.nysemail.nyenet> You want only those records where the EPCID is equal to the parameter Or if EPCID is NOT there then the ADCLASS = A BUT if they have the same address you want to keep the EPCID = Parameter over the A only Well then try SELECT tblExhibitorProducts.EPCID, qryApr08Grid.CompanyID, qryApr08Grid.CompanyName, qryApr08Grid.AdClass, qryApr08Grid.SGOn, MAX(IIF(tblExhibitorProducts.EPCID = 11, 1, qryApr08Grid.AdClass ="A", 2)) Whoisbetter FROM tblExhibitorProducts INNER JOIN qryApr08Grid ON tblExhibitorProducts.CompanyID = qryApr08Grid.CompanyID WHERE (tblExhibitorProducts.EPCID=11) OR (qryApr08Grid.AdClass ="A") Group by tblExhibitorProducts.EPCID, qryApr08Grid.CompanyID, qryApr08Grid.CompanyName, qryApr08Grid.AdClass, qryApr08Grid.SGOn ; ************************************************** * Patricia O'Connor * Information Technology Specialist 3 (Programming) * 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 > William Hindman > Sent: Friday, March 28, 2008 12:52 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] deduping qry results > > ...I'm need to eliminate CompanyID and CompanyName dupes that > result from the OR due to there being multiple identical > CompanyIDs with different EPCIDs ...I should be able to do > this with GroupBy and First but it keeps killing good records :( > > William > > ----- Original Message ----- > From: "O'Connor, Patricia (OTDA)" > To: "Access Developers discussion and problem solving" > > Sent: Friday, March 28, 2008 12:37 PM > Subject: Re: [AccessD] deduping qry results > > > > William > > > > Could you show an example of what you are trying to avoid. > > Or be a bit more specific? > > > > What element(S) are you trying not to get a duplicate of ? > > > > SELECT DISTINCTROW > > tblExhibitorProducts.EPCID, > > qryApr08Grid.CompanyID, > > qryApr08Grid.CompanyName, > > qryApr08Grid.AdClass, > > qryApr08Grid.SGOn > > FROM tblExhibitorProducts > > INNER JOIN qryApr08Grid > > ON tblExhibitorProducts.CompanyID = qryApr08Grid.CompanyID > > WHERE (tblExhibitorProducts.EPCID=11) > > OR (qryApr08Grid.AdClass ="A") ; > > > > I have an idea but need to see if I am right > > > > ************************************************** > > * Patricia O'Connor > > * Information Technology Specialist 3 (Programming) > > * OTDA - BDMA > > * (W) mailto:Patricia.O'Connor at otda.state.ny.us > > * (w) mailto:aa1160 at nysemail.state.ny.us > > ************************************************** > > > > > From markamatte at hotmail.com Fri Mar 28 12:52:39 2008 From: markamatte at hotmail.com (Mark A Matte) Date: Fri, 28 Mar 2008 17:52:39 +0000 Subject: [AccessD] VBE Experience anyone? In-Reply-To: <01DBAB52E30A9A4AB3D94EF8029EDBE8021BB2EC@EXCNYSM0A1AI.nysemail.nyenet> References: <004901c890ea$6afc0f30$fe786c4c@jisshowsbs.local><01DBAB52E30A9A4AB3D94EF8029EDBE8021BB2EB@EXCNYSM0A1AI.nysemail.nyenet> <007f01c890f3$ff25d020$fe786c4c@jisshowsbs.local> <01DBAB52E30A9A4AB3D94EF8029EDBE8021BB2EC@EXCNYSM0A1AI.nysemail.nyenet> Message-ID: Hello All, I am using the code below to loop through the Modules and find stuff. It always points to the current db. Is there any way to point this to a different database...if so anyone know the syntax? Thanks Again, Mark A. Matte *************** For Each vbComp In VBE.VBProjects(1).VBComponents With vbComp StartLine = 1 StartColumn = 1 EndLine = vbComp.CodeModule.CountOfLines EndColumn = 60 strCode = .CodeModule.Lines(1, .CodeModule.CountOfLines) ************* _________________________________________________________________ Test your Star IQ http://club.live.com/red_carpet_reveal.aspx?icid=redcarpet_HMTAGMAR From markamatte at hotmail.com Fri Mar 28 13:00:12 2008 From: markamatte at hotmail.com (Mark A Matte) Date: Fri, 28 Mar 2008 18:00:12 +0000 Subject: [AccessD] deduping qry results In-Reply-To: <009701c890f8$853373d0$fe786c4c@jisshowsbs.local> References: <004901c890ea$6afc0f30$fe786c4c@jisshowsbs.local> <009701c890f8$853373d0$fe786c4c@jisshowsbs.local> Message-ID: William, I did this recently in SQL Server...I'm sure it can be done in VBA...I have not tried in an Access query. Hopefully the concept will give you an alternative. Good Luck, Mark A. Matte **********************BEGIN************************ --By Mark A. Matte 3/18/2008 declare @CaseID decimal(15,0), at NoteNum int, at NoteCount int declare MyCursor cursor for Select case_id,note_seq_nbr,count(*) as CT from tblCaseNote_temp group by case_id,note_seq_nbr having count(*)>1 order by case_id,note_seq_nbr open mycursor fetch next from mycursor into @CaseID, at NoteNum, at NoteCount while (@@fetch_status =0) Begin delete top(@noteCount-1) from tblCaseNote_Temp where case_id=@CaseID and note_seq_nbr=@noteNum fetch next from mycursor into @CaseID, at NoteNum, at NoteCount End Close mycursor deallocate mycursor ***********************END************************* > From: wdhindman at dejpolsystems.com > To: accessd at databaseadvisors.com > Date: Fri, 28 Mar 2008 13:23:59 -0400 > Subject: Re: [AccessD] deduping qry results > > ...not quite Charlotte ...the EPCID reflects product categories that an > Exhibtor sells ...I need to show all Exhibitors (CompanyID) for a given show > (qryApr08Grid) who sell a selected product (EPCID) ...watch out now ...plus > ANY Exhibitor from the qryApr08Grid who has paid a sponsorshp fee (AdClass > =A) whether or not they sell that product. > > ...so far, I'm not getting there ...theoretically I should be able to use > Totals: GroupBy and First to do this ...but it keeps dropping valid records > when I do that ...so far this has me stumped. > > William > > ----- Original Message ----- > From: "Charlotte Foust" > To: "Access Developers discussion and problem solving" > > Sent: Friday, March 28, 2008 12:53 PM > Subject: Re: [AccessD] deduping qry results > > >> William, if you're only joining tblExhibitorProducts in order to filter >> aryApr08Grid.CompanyID, Why not use an In and a subquery on >> tblExhibitorProducts.CompanyID filtered by the EPCID entered instead of >> an inner join? >> >> Charlotte Foust >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William >> Hindman >> Sent: Friday, March 28, 2008 8:43 AM >> To: Access Developers discussion and problem solving >> Subject: [AccessD] deduping qry results >> >> ...senior moment ...posted on another thread by mistake :( >> >> ...given the following query: >> >> SELECT DISTINCTROW tblExhibitorProducts.EPCID, qryApr08Grid.CompanyID, >> qryApr08Grid.CompanyName, qryApr08Grid.AdClass, qryApr08Grid.SGOn FROM >> tblExhibitorProducts INNER JOIN qryApr08Grid ON >> tblExhibitorProducts.CompanyID = qryApr08Grid.CompanyID WHERE >> (((tblExhibitorProducts.EPCID)=11)) OR (((qryApr08Grid.AdClass)="A")); >> >> ...how can I avoid duplicates in the OR results? >> ...I've tried totals and uniuqe values/records but nothing produces >> consistent results ...help! >> >> William >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com _________________________________________________________________ Watch ?Cause Effect,? a show about real people making a real difference. Learn more. http://im.live.com/Messenger/IM/MTV/?source=text_watchcause From shamil at users.mns.ru Fri Mar 28 13:06:47 2008 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Fri, 28 Mar 2008 21:06:47 +0300 Subject: [AccessD] VB6 stability In-Reply-To: <01DBAB52E30A9A4AB3D94EF8029EDBE8021BB2E8@EXCNYSM0A1AI.nysemail.nyenet> Message-ID: <002401c890fe$7d8525b0$6401a8c0@nant> Hi Patti, I confess, profess and confirm from my experienced that VB6 is a stable development/runtime environment :) -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of O'Connor, Patricia (OTDA) Sent: Friday, March 28, 2008 5:45 PM To: Access Developers discussion and problem solving Subject: [AccessD] VB6 stability Hi All Quick question - someone in my office was told that VB6 is unstable This is the first I have ever heard of this. Since so many people here (genius and gurus) use many different softwares I figured if VB6 was unstable it would be told here If it is unstable - why, in what area, or is this an effort for someone to justify why they use and/or to push using something else. I have used Vb for years and never really had any problems. TIA Patti ************************************************** * Patricia O'Connor * (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. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From drawbridgej at sympatico.ca Fri Mar 28 13:21:47 2008 From: drawbridgej at sympatico.ca (Jack and Pat) Date: Fri, 28 Mar 2008 14:21:47 -0400 Subject: [AccessD] VBE Experience anyone? In-Reply-To: References: <004901c890ea$6afc0f30$fe786c4c@jisshowsbs.local><01DBAB52E30A9A4AB3D94EF8029EDBE8021BB2EB@EXCNYSM0A1AI.nysemail.nyenet><007f01c890f3$ff25d020$fe786c4c@jisshowsbs.local> <01DBAB52E30A9A4AB3D94EF8029EDBE8021BB2EC@EXCNYSM0A1AI.nysemail.nyenet> Message-ID: <000301c89100$95f57c60$6501a8c0@home6399619597> Mark, I have a routine that will do multiple databases. It doesn't use the VBE stuff that you're using. I have some code I got from the internet and it puts a bunch of modules into a table. The results can be queried. Here's some of the intro comments on the routine I use to Call the ModuleLister. Haven't used it for a while, but I have it. Jack '--------------------------------------------------------------------------- ------------ ' Procedure : jModuleLister ' DateTime : 2006-09-25 14:17 ' Author : drawbrij ' Purpose : This is the main procedure that does the calling ' to process the modules/forms/reports in other mdbs. ' ' You can list a number of databases and get all module info for review. '--------------------------------------------------------------------------- ------------ ' Sub jModuleLister() Call EnumerateModules("d:\NAICS2007_FE.mdb", "", True) ' '******************************************************************** 'If doing multiple mdbs use this template for second, third etc. * 'Call EnumerateModules("Put full database names here","",False) * '******************************************************************** 'Call EnumerateModules("C:\Jack\DATA\CCCDOCN\CCC_StandardExtractV0.mdb", "", False) 'Jack Test stuff 'Work 'Call EnumerateModules("C:\backup\RawLoaderStandardTemplate_v2 1, 09-25-2007.mdb", "", True) 'Call EnumerateModules("C:\Jack\DATA\CCCDOCN\CCC_StandardExtractV0.mdb", "", False) 'Call EnumerateModules("C:\WINNT\System32\LoaderLibrary.mda", "", False) 'Call EnumerateModules("C:\WINNT\System32\jGOLD01_A2K.mda", "", False) 'Home ' 'Call EnumerateModules("C:\WINNT\System32\LoaderLibrary.mda", "", False) 'Call EnumerateModules("C:\WINNT\System32\jGOLD01_A2K.mda", "", False) 'Call EnumerateModules("E:\A2K\Backups\RawLoaderStandardTemplate_v2.mdb 5, 04-13-2005.mdb", "", True) MsgBox "Finished Extracting Module Info" & vbCrLf & _ " Query tblModules for Details" End Sub -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Friday, March 28, 2008 1:53 PM To: Access Developers discussion and problem solving Subject: [AccessD] VBE Experience anyone? Hello All, I am using the code below to loop through the Modules and find stuff. It always points to the current db. Is there any way to point this to a different database...if so anyone know the syntax? Thanks Again, Mark A. Matte *************** For Each vbComp In VBE.VBProjects(1).VBComponents With vbComp StartLine = 1 StartColumn = 1 EndLine = vbComp.CodeModule.CountOfLines EndColumn = 60 strCode = .CodeModule.Lines(1, .CodeModule.CountOfLines) ************* _________________________________________________________________ Test your Star IQ http://club.live.com/red_carpet_reveal.aspx?icid=redcarpet_HMTAGMAR -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Patricia.O'Connor at otda.state.ny.us Fri Mar 28 13:26:39 2008 From: Patricia.O'Connor at otda.state.ny.us (O'Connor, Patricia (OTDA)) Date: Fri, 28 Mar 2008 14:26:39 -0400 Subject: [AccessD] VB6 stability In-Reply-To: <002401c890fe$7d8525b0$6401a8c0@nant> References: <01DBAB52E30A9A4AB3D94EF8029EDBE8021BB2E8@EXCNYSM0A1AI.nysemail.nyenet> <002401c890fe$7d8525b0$6401a8c0@nant> Message-ID: <01DBAB52E30A9A4AB3D94EF8029EDBE8021BB2ED@EXCNYSM0A1AI.nysemail.nyenet> I knew VB6 was stable and told the coworker that whoever said it wasn't was wrong It is very nice to know I didn't miss something important Thank you all for the uplifting affirmations And making me smile !!! Happy Friday and weekend ************************************************** * Patricia O'Connor * Information Technology Specialist 3 (Programming) * (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 > Shamil Salakhetdinov > Sent: Friday, March 28, 2008 02:07 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] VB6 stability > > Hi Patti, > > I confess, profess and confirm from my experienced that VB6 > is a stable development/runtime environment :) > > -- > Shamil > > From wdhindman at dejpolsystems.com Fri Mar 28 13:37:51 2008 From: wdhindman at dejpolsystems.com (William Hindman) Date: Fri, 28 Mar 2008 14:37:51 -0400 Subject: [AccessD] deduping qry results References: Message-ID: <00ab01c89102$d46e0000$fe786c4c@jisshowsbs.local> gustav ...no ...both gave the same results I've been getting :( William ----- Original Message ----- From: "Gustav Brock" To: Sent: Friday, March 28, 2008 1:23 PM Subject: Re: [AccessD] deduping qry results > Hi William > > Oh, missed that. > > Then how about: > > SELECT DISTINCT > tblExhibitorProducts.EPCID, > qryApr08Grid.CompanyID, > qryApr08Grid.CompanyName, > qryApr08Grid.AdClass, > qryApr08Grid.SGOn > FROM > tblExhibitorProducts, > qryApr08Grid > WHERE > (tblExhibitorProducts.CompanyID = qryApr08Grid.CompanyID) > AND > (tblExhibitorProducts.EPCID=11 > OR > qryApr08Grid.AdClass="A"); > > or: > > SELECT > tblExhibitorProducts.EPCID, > qryApr08Grid.* > FROM > tblExhibitorProducts, > qryApr08Grid > WHERE > tblExhibitorProducts.CompanyID = qryApr08Grid.CompanyID; > > Feed this to: > > SELECT DISTINCT > EPCID, > CompanyID, > CompanyName, > AdClass, > SGOn > FROM > qryTemp > WHERE > EPCID=11 > OR > AdClass="A"; > > /gustav > > >>>> wdhindman at dejpolsystems.com 28-03-2008 18:01:53 >>> > ...but the OR'd records have different EPCIDs and would thus be > eliminated. > > William > > ----- Original Message ----- > From: "Gustav Brock" > To: > Sent: Friday, March 28, 2008 12:52 PM > Subject: Re: [AccessD] deduping qry results > > >> Hi William >> >> And so? >> Just specify the parameter in the top query as well. >> >> /gustav >> >>>>> wdhindman at dejpolsystems.com 28-03-2008 17:06:38 >>> >> ...love to but EPCID is a parameter supplied by the user. >> >> William >> >> ----- Original Message ----- >> From: "Gustav Brock" >> To: >> Sent: Friday, March 28, 2008 11:57 AM >> Subject: Re: [AccessD] deduping qry results >> >> >>> Hi William >>> >>> Couldn't you just remove DISTINCTROW and then use this query as source >>> in >>> another query where you use DISTINCT? >>> >>> /gustav >>> >>>>>> wdhindman at dejpolsystems.com 28-03-2008 16:43:06 >>> >>> ...senior moment ...posted on another thread by mistake :( >>> >>> ...given the following query: >>> >>> SELECT DISTINCTROW tblExhibitorProducts.EPCID, qryApr08Grid.CompanyID, >>> qryApr08Grid.CompanyName, qryApr08Grid.AdClass, qryApr08Grid.SGOn >>> FROM tblExhibitorProducts INNER JOIN qryApr08Grid ON >>> tblExhibitorProducts.CompanyID = qryApr08Grid.CompanyID WHERE >>> (((tblExhibitorProducts.EPCID)=11)) OR (((qryApr08Grid.AdClass)="A")); >>> >>> ...how can I avoid duplicates in the OR results? >>> ...I've tried totals and uniuqe values/records but nothing produces >>> consistent results ...help! >>> >>> William >> >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From DWUTKA at Marlow.com Fri Mar 28 13:41:13 2008 From: DWUTKA at Marlow.com (Drew Wutka) Date: Fri, 28 Mar 2008 13:41:13 -0500 Subject: [AccessD] DB Design Question In-Reply-To: <035201c890f1$f33df0a0$036fa8c0@lcmdv8000> Message-ID: Make those field types, and in the Field table, add an 'extrainfo' field. If a field is set to radio buttons, have the extra info field be a delimited list of radio button labels, or the name of a lookup list (same with a combo box field type). A lookup system could look like this: tblLookupLists ListID <---AutoNumber ListName tblLookupData ListID ListData Then, in the field table's extra info, either put the name or ID of the lookup list. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lawrence Mrazek Sent: Friday, March 28, 2008 11:37 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] DB Design Question Hi All: (I'm just beginning to tackle this today, thanks to all who have responded (Susan H. & Robert S.) I think Drew's approach probably fits this problem the best ... This way I'm not constraining the client, and it will allow them to better manage the data on their own. The only other issue that I face is customizing the data input experience for each specific field ... Basically, what if I need to have a radio group or dropdown list? Larry Mrazek LCM Research, Inc. www.lcm-res.com lmrazek at lcm-res.com ph. 314-432-5886 mobile: 314-496-1645 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Friday, March 28, 2008 11:09 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] DB Design Question I would recommend designing the 'service groups' as a table design in and of itself. The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From Patricia.O'Connor at otda.state.ny.us Fri Mar 28 13:38:40 2008 From: Patricia.O'Connor at otda.state.ny.us (O'Connor, Patricia (OTDA)) Date: Fri, 28 Mar 2008 14:38:40 -0400 Subject: [AccessD] VBE Experience anyone? In-Reply-To: References: <004901c890ea$6afc0f30$fe786c4c@jisshowsbs.local><01DBAB52E30A9A4AB3D94EF8029EDBE8021BB2EB@EXCNYSM0A1AI.nysemail.nyenet><007f01c890f3$ff25d020$fe786c4c@jisshowsbs.local> <01DBAB52E30A9A4AB3D94EF8029EDBE8021BB2EC@EXCNYSM0A1AI.nysemail.nyenet> Message-ID: <01DBAB52E30A9A4AB3D94EF8029EDBE8021BB2EE@EXCNYSM0A1AI.nysemail.nyenet> Take a look at these http://www.carlprothman.net/Default.aspx?tabid=81 http://www.astahost.com/info.php/vba-oracle_t10766.html ************************************************** * Patricia O'Connor * Information Technology Specialist 3 (Programming) * 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 > Mark A Matte > Sent: Friday, March 28, 2008 01:53 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] VBE Experience anyone? > > > Hello All, > > I am using the code below to loop through the Modules and > find stuff. It always points to the current db. Is there > any way to point this to a different database...if so anyone > know the syntax? > > Thanks Again, > > Mark A. Matte > > *************** > For Each vbComp In VBE.VBProjects(1).VBComponents > With vbComp > StartLine = 1 > StartColumn = 1 > EndLine = vbComp.CodeModule.CountOfLines > EndColumn = 60 > strCode = .CodeModule.Lines(1, .CodeModule.CountOfLines) > > ************* > _________________________________________________________________ > Test your Star IQ > http://club.live.com/red_carpet_reveal.aspx?icid=redcarpet_HMTAGMAR > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From rockysmolin at bchacc.com Fri Mar 28 13:50:33 2008 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Fri, 28 Mar 2008 11:50:33 -0700 Subject: [AccessD] Automating Acrobat In-Reply-To: <006d01c890f0$9e278500$fe786c4c@jisshowsbs.local> References: <004e01c89027$03950040$0301a8c0@HAL9005><0JYF0013J2RAZU91@vms046.mailsrvcs.net><00c101c89087$ec6780d0$0301a8c0@HAL9005><003901c890e9$fa1bba40$fe786c4c@jisshowsbs.local><001a01c890ed$f43aeb10$0301a8c0@HAL9005> <006d01c890f0$9e278500$fe786c4c@jisshowsbs.local> Message-ID: <000001c89104$9a8fa120$0301a8c0@HAL9005> In the second query can you include all the fields EXCEPT EPCOD and use unique values? Do you need the EPCID in whatever is calling that query? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Friday, March 28, 2008 9:27 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Automating Acrobat ...that would be the normal approach but EPCID is a parameter and isn't known until the user supplies it ...thus I can't dedupe before hand since the data caught by the OR almost certainly has differing EPCIDs ..I'm thinking about using a UNION but those always make my head hurt :( William ----- Original Message ----- From: "Rocky Smolin at Beach Access Software" To: "'Access Developers discussion and problem solving'" Sent: Friday, March 28, 2008 12:08 PM Subject: Re: [AccessD] Automating Acrobat > Two queries - one to set up the records with dups and a second one using > the > first one but properties Unique Values - Yes? > > Rocky > > > > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman > Sent: Friday, March 28, 2008 8:40 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Automating Acrobat > > ...given the following query: > > SELECT DISTINCTROW tblExhibitorProducts.EPCID, qryApr08Grid.CompanyID, > qryApr08Grid.CompanyName, qryApr08Grid.AdClass, qryApr08Grid.SGOn FROM > tblExhibitorProducts INNER JOIN qryApr08Grid ON > tblExhibitorProducts.CompanyID = qryApr08Grid.CompanyID WHERE > (((tblExhibitorProducts.EPCID)=11)) OR (((qryApr08Grid.AdClass)="A")); > > ...how can I avoid duplicates in the OR results? > ...I've tried totals and uniuqe values/records but nothing produces > consistent results ...help! > > William > > > > -- > 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. > Version: 7.5.519 / Virus Database: 269.22.1/1347 - Release Date: 3/27/2008 > 7:15 PM > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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. Version: 7.5.519 / Virus Database: 269.22.1/1347 - Release Date: 3/27/2008 7:15 PM From Gustav at cactus.dk Fri Mar 28 14:06:30 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 28 Mar 2008 20:06:30 +0100 Subject: [AccessD] deduping qry results Message-ID: Hi William Can't be(!?). Indeed the second suggestion seems foolproof to me. Could you rephrase your criteria please? Did you _miss_ records? What happens if you remove DISTINCT from the second query: SELECT EPCID, CompanyID, CompanyName, AdClass, SGOn FROM qryTemp WHERE EPCID=11 OR AdClass="A"; /gustav >>> wdhindman at dejpolsystems.com 28-03-2008 19:37:51 >>> gustav ...no ...both gave the same results I've been getting :( William ----- Original Message ----- From: "Gustav Brock" To: Sent: Friday, March 28, 2008 1:23 PM Subject: Re: [AccessD] deduping qry results > Hi William > > Oh, missed that. > > Then how about: > > SELECT DISTINCT > tblExhibitorProducts.EPCID, > qryApr08Grid.CompanyID, > qryApr08Grid.CompanyName, > qryApr08Grid.AdClass, > qryApr08Grid.SGOn > FROM > tblExhibitorProducts, > qryApr08Grid > WHERE > (tblExhibitorProducts.CompanyID = qryApr08Grid.CompanyID) > AND > (tblExhibitorProducts.EPCID=11 > OR > qryApr08Grid.AdClass="A"); > > or: > > SELECT > tblExhibitorProducts.EPCID, > qryApr08Grid.* > FROM > tblExhibitorProducts, > qryApr08Grid > WHERE > tblExhibitorProducts.CompanyID = qryApr08Grid.CompanyID; > > Feed this to: > > SELECT DISTINCT > EPCID, > CompanyID, > CompanyName, > AdClass, > SGOn > FROM > qryTemp > WHERE > EPCID=11 > OR > AdClass="A"; > > /gustav > > >>>> wdhindman at dejpolsystems.com 28-03-2008 18:01:53 >>> > ...but the OR'd records have different EPCIDs and would thus be > eliminated. > > William > > ----- Original Message ----- > From: "Gustav Brock" > To: > Sent: Friday, March 28, 2008 12:52 PM > Subject: Re: [AccessD] deduping qry results > > >> Hi William >> >> And so? >> Just specify the parameter in the top query as well. >> >> /gustav >> >>>>> wdhindman at dejpolsystems.com 28-03-2008 17:06:38 >>> >> ...love to but EPCID is a parameter supplied by the user. >> >> William >> >> ----- Original Message ----- >> From: "Gustav Brock" >> To: >> Sent: Friday, March 28, 2008 11:57 AM >> Subject: Re: [AccessD] deduping qry results >> >> >>> Hi William >>> >>> Couldn't you just remove DISTINCTROW and then use this query as source >>> in >>> another query where you use DISTINCT? >>> >>> /gustav >>> >>>>>> wdhindman at dejpolsystems.com 28-03-2008 16:43:06 >>> >>> ...senior moment ...posted on another thread by mistake :( >>> >>> ...given the following query: >>> >>> SELECT DISTINCTROW tblExhibitorProducts.EPCID, qryApr08Grid.CompanyID, >>> qryApr08Grid.CompanyName, qryApr08Grid.AdClass, qryApr08Grid.SGOn >>> FROM tblExhibitorProducts INNER JOIN qryApr08Grid ON >>> tblExhibitorProducts.CompanyID = qryApr08Grid.CompanyID WHERE >>> (((tblExhibitorProducts.EPCID)=11)) OR (((qryApr08Grid.AdClass)="A")); >>> >>> ...how can I avoid duplicates in the OR results? >>> ...I've tried totals and uniuqe values/records but nothing produces >>> consistent results ...help! >>> >>> William From wdhindman at dejpolsystems.com Fri Mar 28 14:22:20 2008 From: wdhindman at dejpolsystems.com (William Hindman) Date: Fri, 28 Mar 2008 15:22:20 -0400 Subject: [AccessD] Automating Acrobat References: <004e01c89027$03950040$0301a8c0@HAL9005><0JYF0013J2RAZU91@vms046.mailsrvcs.net><00c101c89087$ec6780d0$0301a8c0@HAL9005><003901c890e9$fa1bba40$fe786c4c@jisshowsbs.local><001a01c890ed$f43aeb10$0301a8c0@HAL9005><006d01c890f0$9e278500$fe786c4c@jisshowsbs.local> <000001c89104$9a8fa120$0301a8c0@HAL9005> Message-ID: <00d401c89109$0bbe4050$fe786c4c@jisshowsbs.local> ...the EPCID is used to call other actions specific to it ...but I'll take a look at trying that if Patricia's code doesn't work first. William ----- Original Message ----- From: "Rocky Smolin at Beach Access Software" To: "'Access Developers discussion and problem solving'" Sent: Friday, March 28, 2008 2:50 PM Subject: Re: [AccessD] Automating Acrobat > In the second query can you include all the fields EXCEPT EPCOD and use > unique values? Do you need the EPCID in whatever is calling that query? > > Rocky > > > > > > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman > Sent: Friday, March 28, 2008 9:27 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Automating Acrobat > > ...that would be the normal approach but EPCID is a parameter and isn't > known until the user supplies it ...thus I can't dedupe before hand since > the data caught by the OR almost certainly has differing EPCIDs ..I'm > thinking about using a UNION but those always make my head hurt :( > > William > > ----- Original Message ----- > From: "Rocky Smolin at Beach Access Software" > To: "'Access Developers discussion and problem solving'" > > Sent: Friday, March 28, 2008 12:08 PM > Subject: Re: [AccessD] Automating Acrobat > > >> Two queries - one to set up the records with dups and a second one using >> the >> first one but properties Unique Values - Yes? >> >> Rocky >> >> >> >> >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William >> Hindman >> Sent: Friday, March 28, 2008 8:40 AM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] Automating Acrobat >> >> ...given the following query: >> >> SELECT DISTINCTROW tblExhibitorProducts.EPCID, qryApr08Grid.CompanyID, >> qryApr08Grid.CompanyName, qryApr08Grid.AdClass, qryApr08Grid.SGOn FROM >> tblExhibitorProducts INNER JOIN qryApr08Grid ON >> tblExhibitorProducts.CompanyID = qryApr08Grid.CompanyID WHERE >> (((tblExhibitorProducts.EPCID)=11)) OR (((qryApr08Grid.AdClass)="A")); >> >> ...how can I avoid duplicates in the OR results? >> ...I've tried totals and uniuqe values/records but nothing produces >> consistent results ...help! >> >> William >> >> >> >> -- >> 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. >> Version: 7.5.519 / Virus Database: 269.22.1/1347 - Release Date: >> 3/27/2008 >> 7:15 PM >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/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. > Version: 7.5.519 / Virus Database: 269.22.1/1347 - Release Date: 3/27/2008 > 7:15 PM > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From shamil at users.mns.ru Fri Mar 28 14:22:02 2008 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Fri, 28 Mar 2008 22:22:02 +0300 Subject: [AccessD] VBE Experience anyone? In-Reply-To: Message-ID: <003101c89109$001c5890$6401a8c0@nant> Hi Mark, Do you meant other projects *referenced* by current MS Access application database? Set reference to "Microsoft Visual Basic for Application Extensibility 3.5" (VBIDE - usually located at C:\Program Files\Common Files\Microsoft Shared\VBA\VBA6\VBE6EXT.OLB) And then this code will list all the referenced ms access projects Dim prj As VBProject For Each prj In VBE.VBProjects Debug.Print prj.Name Next prj and for each project you can use your code: For Each prj In VBE.VBProjects For Each vbComp In prj.VBE.VBProjects(1).VBComponents .... If you wanted to list/process modules in any (not only referenced) ms access database this way (i.e. using VBIDE) then there are at least two ways to do that: - write COM add-in; - start another MS Access instance from your main MS Access instance, open external mdb in it (prevent AutoExec macro to run or start-up forms to open) and use Automation + VBIDE... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Friday, March 28, 2008 8:53 PM To: Access Developers discussion and problem solving Subject: [AccessD] VBE Experience anyone? Hello All, I am using the code below to loop through the Modules and find stuff. It always points to the current db. Is there any way to point this to a different database...if so anyone know the syntax? Thanks Again, Mark A. Matte *************** For Each vbComp In VBE.VBProjects(1).VBComponents With vbComp StartLine = 1 StartColumn = 1 EndLine = vbComp.CodeModule.CountOfLines EndColumn = 60 strCode = .CodeModule.Lines(1, .CodeModule.CountOfLines) ************* _________________________________________________________________ Test your Star IQ http://club.live.com/red_carpet_reveal.aspx?icid=redcarpet_HMTAGMAR -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From lmrazek at lcm-res.com Fri Mar 28 15:04:29 2008 From: lmrazek at lcm-res.com (Lawrence Mrazek) Date: Fri, 28 Mar 2008 15:04:29 -0500 Subject: [AccessD] DB Design Question In-Reply-To: References: <035201c890f1$f33df0a0$036fa8c0@lcmdv8000> Message-ID: <03c101c8910e$ef6ee110$036fa8c0@lcmdv8000> Thanks Drew: That makes sense; I really appreciate the help. Larry Mrazek LCM Research, Inc. www.lcm-res.com lmrazek at lcm-res.com ph. 314-432-5886 mobile: 314-496-1645 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Friday, March 28, 2008 1:41 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] DB Design Question Make those field types, and in the Field table, add an 'extrainfo' field. If a field is set to radio buttons, have the extra info field be a delimited list of radio button labels, or the name of a lookup list (same with a combo box field type). A lookup system could look like this: tblLookupLists ListID <---AutoNumber ListName tblLookupData ListID ListData Then, in the field table's extra info, either put the name or ID of the lookup list. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lawrence Mrazek Sent: Friday, March 28, 2008 11:37 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] DB Design Question Hi All: (I'm just beginning to tackle this today, thanks to all who have responded (Susan H. & Robert S.) I think Drew's approach probably fits this problem the best ... This way I'm not constraining the client, and it will allow them to better manage the data on their own. The only other issue that I face is customizing the data input experience for each specific field ... Basically, what if I need to have a radio group or dropdown list? Larry Mrazek LCM Research, Inc. www.lcm-res.com lmrazek at lcm-res.com ph. 314-432-5886 mobile: 314-496-1645 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Friday, March 28, 2008 11:09 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] DB Design Question I would recommend designing the 'service groups' as a table design in and of itself. The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at Marlow.com Fri Mar 28 15:13:33 2008 From: DWUTKA at Marlow.com (Drew Wutka) Date: Fri, 28 Mar 2008 15:13:33 -0500 Subject: [AccessD] DB Design Question In-Reply-To: <03c101c8910e$ef6ee110$036fa8c0@lcmdv8000> Message-ID: No problem. I have several systems that use this sort of setup. Works pretty well, but I must admit, none of them have an Access Front End, they all use a web front end. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lawrence Mrazek Sent: Friday, March 28, 2008 3:04 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] DB Design Question Thanks Drew: That makes sense; I really appreciate the help. Larry Mrazek LCM Research, Inc. www.lcm-res.com lmrazek at lcm-res.com ph. 314-432-5886 mobile: 314-496-1645 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Friday, March 28, 2008 1:41 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] DB Design Question Make those field types, and in the Field table, add an 'extrainfo' field. If a field is set to radio buttons, have the extra info field be a delimited list of radio button labels, or the name of a lookup list (same with a combo box field type). A lookup system could look like this: tblLookupLists ListID <---AutoNumber ListName tblLookupData ListID ListData Then, in the field table's extra info, either put the name or ID of the lookup list. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lawrence Mrazek Sent: Friday, March 28, 2008 11:37 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] DB Design Question Hi All: (I'm just beginning to tackle this today, thanks to all who have responded (Susan H. & Robert S.) I think Drew's approach probably fits this problem the best ... This way I'm not constraining the client, and it will allow them to better manage the data on their own. The only other issue that I face is customizing the data input experience for each specific field ... Basically, what if I need to have a radio group or dropdown list? Larry Mrazek LCM Research, Inc. www.lcm-res.com lmrazek at lcm-res.com ph. 314-432-5886 mobile: 314-496-1645 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Friday, March 28, 2008 11:09 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] DB Design Question I would recommend designing the 'service groups' as a table design in and of itself. The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From markamatte at hotmail.com Fri Mar 28 15:29:49 2008 From: markamatte at hotmail.com (Mark A Matte) Date: Fri, 28 Mar 2008 20:29:49 +0000 Subject: [AccessD] VBE Experience anyone? In-Reply-To: <003101c89109$001c5890$6401a8c0@nant> References: <003101c89109$001c5890$6401a8c0@nant> Message-ID: Thanks Shamil and Jack, I found the solution you sent Jack...it actually opens each db/form/module...as for the VBE...I think I'm a little over my head for a Friday. I found this snippet...but too late in the week to try and get it to work today...will try again tomorrow. I cut all the extra stuff out... Shamil...How difficult is the code below to point to a different mdb...or can you point me a tutorial or articles? I'm looking to get the text of the form modules. Thanks Again, Mark A. Matte ****************************** Sub AddDAO() Dim oVBE As Object Dim mdl As Object Dim blnFound As Boolean Dim StartLine As Long Dim StartColumn As Long Dim EndLine As Long Dim EndColumn As Long 'To make life easier and lines shorter. Set oVBE = VBE.ActiveVBProject.VBComponents 'Check each module ... For Each mdl In oVBE 'for the required procedure ... Debug.Print oVBE(mdl.Name).CodeModule Next End Sub ****************************** > From: shamil at users.mns.ru > To: accessd at databaseadvisors.com > Date: Fri, 28 Mar 2008 22:22:02 +0300 > Subject: Re: [AccessD] VBE Experience anyone? > > Hi Mark, > > Do you meant other projects *referenced* by current MS Access application > database? > > Set reference to "Microsoft Visual Basic for Application Extensibility 3.5" > (VBIDE - usually located at C:\Program Files\Common Files\Microsoft > Shared\VBA\VBA6\VBE6EXT.OLB) > > And then this code will list all the referenced ms access projects > > Dim prj As VBProject > For Each prj In VBE.VBProjects > Debug.Print prj.Name > Next prj > > and for each project you can use your code: > > For Each prj In VBE.VBProjects > For Each vbComp In prj.VBE.VBProjects(1).VBComponents > .... > > If you wanted to list/process modules in any (not only referenced) ms access > database this way (i.e. using VBIDE) then there are at least two ways to do > that: > > - write COM add-in; > - start another MS Access instance from your main MS Access instance, open > external mdb in it (prevent AutoExec macro to run or start-up forms to open) > and use Automation + VBIDE... > > -- > Shamil > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte > Sent: Friday, March 28, 2008 8:53 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] VBE Experience anyone? > > > Hello All, > > I am using the code below to loop through the Modules and find stuff. It > always points to the current db. Is there any way to point this to a > different database...if so anyone know the syntax? > > Thanks Again, > > Mark A. Matte > > *************** > For Each vbComp In VBE.VBProjects(1).VBComponents With vbComp > StartLine = 1 StartColumn = 1 EndLine = > vbComp.CodeModule.CountOfLines EndColumn = 60 > strCode = .CodeModule.Lines(1, .CodeModule.CountOfLines) > ************* > _________________________________________________________________ > Test your Star IQ > http://club.live.com/red_carpet_reveal.aspx?icid=redcarpet_HMTAGMAR > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com _________________________________________________________________ In a rush? Get real-time answers with Windows Live Messenger. http://www.windowslive.com/messenger/overview.html?ocid=TXT_TAGLM_WL_Refresh_realtime_042008 From lmrazek at lcm-res.com Fri Mar 28 15:32:57 2008 From: lmrazek at lcm-res.com (Lawrence Mrazek) Date: Fri, 28 Mar 2008 15:32:57 -0500 Subject: [AccessD] DB Design Question In-Reply-To: References: <03c101c8910e$ef6ee110$036fa8c0@lcmdv8000> Message-ID: <03c501c89112$e8e72380$036fa8c0@lcmdv8000> Which is how this will be used as well! Larry Mrazek LCM Research, Inc. www.lcm-res.com lmrazek at lcm-res.com ph. 314-432-5886 mobile: 314-496-1645 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Friday, March 28, 2008 3:14 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] DB Design Question No problem. I have several systems that use this sort of setup. Works pretty well, but I must admit, none of them have an Access Front End, they all use a web front end. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lawrence Mrazek Sent: Friday, March 28, 2008 3:04 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] DB Design Question Thanks Drew: That makes sense; I really appreciate the help. Larry Mrazek LCM Research, Inc. www.lcm-res.com lmrazek at lcm-res.com ph. 314-432-5886 mobile: 314-496-1645 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Friday, March 28, 2008 1:41 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] DB Design Question Make those field types, and in the Field table, add an 'extrainfo' field. If a field is set to radio buttons, have the extra info field be a delimited list of radio button labels, or the name of a lookup list (same with a combo box field type). A lookup system could look like this: tblLookupLists ListID <---AutoNumber ListName tblLookupData ListID ListData Then, in the field table's extra info, either put the name or ID of the lookup list. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lawrence Mrazek Sent: Friday, March 28, 2008 11:37 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] DB Design Question Hi All: (I'm just beginning to tackle this today, thanks to all who have responded (Susan H. & Robert S.) I think Drew's approach probably fits this problem the best ... This way I'm not constraining the client, and it will allow them to better manage the data on their own. The only other issue that I face is customizing the data input experience for each specific field ... Basically, what if I need to have a radio group or dropdown list? Larry Mrazek LCM Research, Inc. www.lcm-res.com lmrazek at lcm-res.com ph. 314-432-5886 mobile: 314-496-1645 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Friday, March 28, 2008 11:09 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] DB Design Question I would recommend designing the 'service groups' as a table design in and of itself. The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From shamil at users.mns.ru Fri Mar 28 16:11:18 2008 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Sat, 29 Mar 2008 00:11:18 +0300 Subject: [AccessD] VBE Experience anyone? In-Reply-To: Message-ID: <000701c89118$43e01260$6401a8c0@nant> Hi Mark, Here is how you can use Automation to process modules in other mdb: Public Function ProcessExtModules() Dim mdb As String mdb = "C:\Temp\test.mdb" Dim acc As Access.Application Set acc = New Access.Application acc.OpenCurrentDatabase (mdb) ProcessModules acc acc.CloseCurrentDatabase acc.Quit acQuitSaveNone Set acc = Nothing End Function Public Function ProcessModules( _ ByRef rapp As Access.Application) Dim oVBE As Object Dim mdl As Object Dim blnFound As Boolean Dim StartLine As Long Dim StartColumn As Long Dim EndLine As Long Dim EndColumn As Long 'To make life easier and lines shorter. Set oVBE = rapp.VBE.ActiveVBProject.VBComponents Dim s As String s = "" 'Check each module ... For Each mdl In oVBE If Len(s) > 0 Then s = s + vbCrLf 'for the required procedure ... 'Debug.Print oVBE(mdl.Name).CodeModule s = s + oVBE(mdl.Name).CodeModule Next Debug.Print s MsgBox s End Function I do not know about tutorials. They could exist but I never used them - all the above info is from MS Access/VBA online help and own R&D.... Beware: to master working with Automation (if you are only starting to do that) can take a lot of time... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Friday, March 28, 2008 11:30 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] VBE Experience anyone? Thanks Shamil and Jack, I found the solution you sent Jack...it actually opens each db/form/module...as for the VBE...I think I'm a little over my head for a Friday. I found this snippet...but too late in the week to try and get it to work today...will try again tomorrow. I cut all the extra stuff out... Shamil...How difficult is the code below to point to a different mdb...or can you point me a tutorial or articles? I'm looking to get the text of the form modules. Thanks Again, Mark A. Matte ****************************** Sub AddDAO() Dim oVBE As Object Dim mdl As Object Dim blnFound As Boolean Dim StartLine As Long Dim StartColumn As Long Dim EndLine As Long Dim EndColumn As Long 'To make life easier and lines shorter. Set oVBE = VBE.ActiveVBProject.VBComponents 'Check each module ... For Each mdl In oVBE 'for the required procedure ... Debug.Print oVBE(mdl.Name).CodeModule Next End Sub ****************************** > From: shamil at users.mns.ru > To: accessd at databaseadvisors.com > Date: Fri, 28 Mar 2008 22:22:02 +0300 > Subject: Re: [AccessD] VBE Experience anyone? > > Hi Mark, > > Do you meant other projects *referenced* by current MS Access application > database? > > Set reference to "Microsoft Visual Basic for Application Extensibility 3.5" > (VBIDE - usually located at C:\Program Files\Common Files\Microsoft > Shared\VBA\VBA6\VBE6EXT.OLB) > > And then this code will list all the referenced ms access projects > > Dim prj As VBProject > For Each prj In VBE.VBProjects > Debug.Print prj.Name > Next prj > > and for each project you can use your code: > > For Each prj In VBE.VBProjects > For Each vbComp In prj.VBE.VBProjects(1).VBComponents > .... > > If you wanted to list/process modules in any (not only referenced) ms access > database this way (i.e. using VBIDE) then there are at least two ways to do > that: > > - write COM add-in; > - start another MS Access instance from your main MS Access instance, open > external mdb in it (prevent AutoExec macro to run or start-up forms to open) > and use Automation + VBIDE... > > -- > Shamil > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte > Sent: Friday, March 28, 2008 8:53 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] VBE Experience anyone? > > > Hello All, > > I am using the code below to loop through the Modules and find stuff. It > always points to the current db. Is there any way to point this to a > different database...if so anyone know the syntax? > > Thanks Again, > > Mark A. Matte > > *************** > For Each vbComp In VBE.VBProjects(1).VBComponents With vbComp > StartLine = 1 StartColumn = 1 EndLine = > vbComp.CodeModule.CountOfLines EndColumn = 60 > strCode = .CodeModule.Lines(1, .CodeModule.CountOfLines) > ************* > _________________________________________________________________ > Test your Star IQ > http://club.live.com/red_carpet_reveal.aspx?icid=redcarpet_HMTAGMAR > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com _________________________________________________________________ In a rush? Get real-time answers with Windows Live Messenger. http://www.windowslive.com/messenger/overview.html?ocid=TXT_TAGLM_WL_Refresh _realtime_042008 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From iggy at nanaimo.ark.com Fri Mar 28 17:47:35 2008 From: iggy at nanaimo.ark.com (Tony Septav) Date: Fri, 28 Mar 2008 14:47:35 -0800 Subject: [AccessD] Compare Text and Memo fields In-Reply-To: <47D68043.7050404@nanaimo.ark.com> References: <47D68043.7050404@nanaimo.ark.com> Message-ID: <47ED7587.3050409@nanaimo.ark.com> Hey All I have done it and it works perfectly. > Hey All > I have an application that imports ongoing data from EXCEL (each time > its imported it gets put in a temp table). > Before I attempt to do this. > Is there a function available that allows one to compare memo and text > fields (between the temp table and the access table) and pull out the > difference in the text? > I want to be able to indicate to a user if the information has been > changed or updated, and then show them in a form where within the > text, the change has occurred. > > Thanks > From rockysmolin at bchacc.com Fri Mar 28 18:27:53 2008 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Fri, 28 Mar 2008 16:27:53 -0700 Subject: [AccessD] Automating Acrobat In-Reply-To: <00d401c89109$0bbe4050$fe786c4c@jisshowsbs.local> References: <004e01c89027$03950040$0301a8c0@HAL9005><0JYF0013J2RAZU91@vms046.mailsrvcs.net><00c101c89087$ec6780d0$0301a8c0@HAL9005><003901c890e9$fa1bba40$fe786c4c@jisshowsbs.local><001a01c890ed$f43aeb10$0301a8c0@HAL9005><006d01c890f0$9e278500$fe786c4c@jisshowsbs.local><000001c89104$9a8fa120$0301a8c0@HAL9005> <00d401c89109$0bbe4050$fe786c4c@jisshowsbs.local> Message-ID: <005401c8912b$590db170$0301a8c0@HAL9005> You know, this is the point at which I usually turn to code - a couple of DAO recordsets, a few loops and walla - you've got the data you need in a temp table in less time than it takes to figure out how to make queries jump through that hoop. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Friday, March 28, 2008 12:22 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Automating Acrobat ...the EPCID is used to call other actions specific to it ...but I'll take a look at trying that if Patricia's code doesn't work first. William ----- Original Message ----- From: "Rocky Smolin at Beach Access Software" To: "'Access Developers discussion and problem solving'" Sent: Friday, March 28, 2008 2:50 PM Subject: Re: [AccessD] Automating Acrobat > In the second query can you include all the fields EXCEPT EPCOD and use > unique values? Do you need the EPCID in whatever is calling that query? > > Rocky > > > > > > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman > Sent: Friday, March 28, 2008 9:27 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Automating Acrobat > > ...that would be the normal approach but EPCID is a parameter and isn't > known until the user supplies it ...thus I can't dedupe before hand since > the data caught by the OR almost certainly has differing EPCIDs ..I'm > thinking about using a UNION but those always make my head hurt :( > > William > > ----- Original Message ----- > From: "Rocky Smolin at Beach Access Software" > To: "'Access Developers discussion and problem solving'" > > Sent: Friday, March 28, 2008 12:08 PM > Subject: Re: [AccessD] Automating Acrobat > > >> Two queries - one to set up the records with dups and a second one using >> the >> first one but properties Unique Values - Yes? >> >> Rocky >> >> >> >> >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William >> Hindman >> Sent: Friday, March 28, 2008 8:40 AM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] Automating Acrobat >> >> ...given the following query: >> >> SELECT DISTINCTROW tblExhibitorProducts.EPCID, qryApr08Grid.CompanyID, >> qryApr08Grid.CompanyName, qryApr08Grid.AdClass, qryApr08Grid.SGOn FROM >> tblExhibitorProducts INNER JOIN qryApr08Grid ON >> tblExhibitorProducts.CompanyID = qryApr08Grid.CompanyID WHERE >> (((tblExhibitorProducts.EPCID)=11)) OR (((qryApr08Grid.AdClass)="A")); >> >> ...how can I avoid duplicates in the OR results? >> ...I've tried totals and uniuqe values/records but nothing produces >> consistent results ...help! >> >> William >> >> >> >> -- >> 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. >> Version: 7.5.519 / Virus Database: 269.22.1/1347 - Release Date: >> 3/27/2008 >> 7:15 PM >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/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. > Version: 7.5.519 / Virus Database: 269.22.1/1347 - Release Date: 3/27/2008 > 7:15 PM > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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. Version: 7.5.519 / Virus Database: 269.22.1/1347 - Release Date: 3/27/2008 7:15 PM From dbdoug at gmail.com Fri Mar 28 22:39:56 2008 From: dbdoug at gmail.com (Doug Steele) Date: Fri, 28 Mar 2008 20:39:56 -0700 Subject: [AccessD] VM for different versions of Access In-Reply-To: <000301c890d0$b2724650$0300a8c0@danwaters> References: <47EBC348.4000101@torchlake.com> <4dd71a0c0803271638x3d17edc6j2e778ddbcc35432f@mail.gmail.com> <000901c89070$c2b11060$fe786c4c@jisshowsbs.local> <000301c890d0$b2724650$0300a8c0@danwaters> Message-ID: <4dd71a0c0803282039nd0dafffsc49593843ebfffe2@mail.gmail.com> Google is our friend: http://www.microsoft.com/downloads/details.aspx?FamilyId=21EABB90-958F-4B64-B5F1-73D0A413C8EF&displaylang=en Doug Steele On Fri, Mar 28, 2008 at 5:38 AM, Dan Waters wrote: > William - could you post a link for this? > > Thanks! > Dan > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman > Sent: Thursday, March 27, 2008 8:12 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] VM for different versions of Access > > ...Microsoft is offering a free WinXpSP2 install on a vhd ...you have to > renew every few months but it is no cost ...its intended for web > developers > running multiple versions of IE on one system but you don't have to do > anything other than download it ...I have two copies installed on my vpc, > one with IE6, and one with IE8 ...works a trick and a damn sight easier > than > > keeping multiple pcs running. > > William > > ----- Original Message ----- > From: "Doug Steele" > To: "Access Developers discussion and problem solving" > > Sent: Thursday, March 27, 2008 7:38 PM > Subject: Re: [AccessD] VM for different versions of Access > > > >I use VMWare, and I have an 8gb USB stick with a full Windows XP install > >and > > Office 2003. Works very well, as long as you've got at least 2gb RAM! > > You > > can also set up the VM to be copyable (with VMWare Workstation, anyway), > > copy it to another machine running VMWare Player, and run it there. > > > > I use VMs for keeping various development environments separate > > (specifically, different versions of Office) and it's great. > > > > It would be so cool to set up a VM on a client's computer so you could > > have > > total control over the environment that your database was running in. > The > > VMs are a bit large for shooting back & forth, though, and I haven't yet > > got > > up the nerve to ask any client to purchase an extra set of Windows > > installs > > for every computer running my database! > > > > Doug Steele > > > > > > On Thu, Mar 27, 2008 at 8:54 AM, Tina Norris Fields < > > tinanfields at torchlake.com> wrote: > > > >> Hi All, > >> > >> Double-posting, since this is a technical virtual machine question but > >> involves Access. > >> > >> The database I wrote about that got corrupted has been mostly repaired. > >> That is to say the tables are intact, all the data are there, and the > >> table relationships are good. However, there are bits and pieces that > >> definitely are out of whack. I am going to remodel the database, to > use > >> only the features the client actually uses and wants, to restore the > >> switchboard interface the client likes, and then split the sucker into > a > >> proper BE and FE. Client agrees. Here is the puzzle: client uses > >> Access97. My machine is WinXP Pro with Office 2003. > >> > >> I would like to install a virtual machine and run Office 97 in that > >> machine (yes, I still have a licensed copy on the shelf - > >> unbelievable!). I would like that machine to reside on my USB external > >> drive. Is this do-able? What are the gotchas I need to watch out for? > >> > >> I have Microsoft's VirtualPC installed as well as VMWare's Server. The > >> MS VirtualPC seems the better candidate for making a virtual machine to > >> run another version of Office. > >> > >> Suggestions? Ideas? Watch-out fors? > >> > >> Thanks, > >> Tina > >> -- > >> AccessD mailing list > >> AccessD at databaseadvisors.com > >> http://databaseadvisors.com/mailman/listinfo/accessd > >> Website: http://www.databaseadvisors.com > >> > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Fri Mar 28 23:02:27 2008 From: wdhindman at dejpolsystems.com (William Hindman) Date: Sat, 29 Mar 2008 00:02:27 -0400 Subject: [AccessD] VM for different versions of Access References: <47EBC348.4000101@torchlake.com><4dd71a0c0803271638x3d17edc6j2e778ddbcc35432f@mail.gmail.com><000901c89070$c2b11060$fe786c4c@jisshowsbs.local><000301c890d0$b2724650$0300a8c0@danwaters> <4dd71a0c0803282039nd0dafffsc49593843ebfffe2@mail.gmail.com> Message-ID: <010301c89151$b40fc510$fe786c4c@jisshowsbs.local> ...thanks Doug ...I missed Dan's msg. William ----- Original Message ----- From: "Doug Steele" To: "Access Developers discussion and problem solving" Sent: Friday, March 28, 2008 11:39 PM Subject: Re: [AccessD] VM for different versions of Access > Google is our friend: > > http://www.microsoft.com/downloads/details.aspx?FamilyId=21EABB90-958F-4B64-B5F1-73D0A413C8EF&displaylang=en > > Doug Steele > > On Fri, Mar 28, 2008 at 5:38 AM, Dan Waters > wrote: > >> William - could you post a link for this? >> >> Thanks! >> Dan >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William >> Hindman >> Sent: Thursday, March 27, 2008 8:12 PM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] VM for different versions of Access >> >> ...Microsoft is offering a free WinXpSP2 install on a vhd ...you have to >> renew every few months but it is no cost ...its intended for web >> developers >> running multiple versions of IE on one system but you don't have to do >> anything other than download it ...I have two copies installed on my vpc, >> one with IE6, and one with IE8 ...works a trick and a damn sight easier >> than >> >> keeping multiple pcs running. >> >> William >> >> ----- Original Message ----- >> From: "Doug Steele" >> To: "Access Developers discussion and problem solving" >> >> Sent: Thursday, March 27, 2008 7:38 PM >> Subject: Re: [AccessD] VM for different versions of Access >> >> >> >I use VMWare, and I have an 8gb USB stick with a full Windows XP install >> >and >> > Office 2003. Works very well, as long as you've got at least 2gb RAM! >> > You >> > can also set up the VM to be copyable (with VMWare Workstation, >> > anyway), >> > copy it to another machine running VMWare Player, and run it there. >> > >> > I use VMs for keeping various development environments separate >> > (specifically, different versions of Office) and it's great. >> > >> > It would be so cool to set up a VM on a client's computer so you could >> > have >> > total control over the environment that your database was running in. >> The >> > VMs are a bit large for shooting back & forth, though, and I haven't >> > yet >> > got >> > up the nerve to ask any client to purchase an extra set of Windows >> > installs >> > for every computer running my database! >> > >> > Doug Steele >> > >> > >> > On Thu, Mar 27, 2008 at 8:54 AM, Tina Norris Fields < >> > tinanfields at torchlake.com> wrote: >> > >> >> Hi All, >> >> >> >> Double-posting, since this is a technical virtual machine question but >> >> involves Access. >> >> >> >> The database I wrote about that got corrupted has been mostly >> >> repaired. >> >> That is to say the tables are intact, all the data are there, and the >> >> table relationships are good. However, there are bits and pieces that >> >> definitely are out of whack. I am going to remodel the database, to >> use >> >> only the features the client actually uses and wants, to restore the >> >> switchboard interface the client likes, and then split the sucker into >> a >> >> proper BE and FE. Client agrees. Here is the puzzle: client uses >> >> Access97. My machine is WinXP Pro with Office 2003. >> >> >> >> I would like to install a virtual machine and run Office 97 in that >> >> machine (yes, I still have a licensed copy on the shelf - >> >> unbelievable!). I would like that machine to reside on my USB >> >> external >> >> drive. Is this do-able? What are the gotchas I need to watch out >> >> for? >> >> >> >> I have Microsoft's VirtualPC installed as well as VMWare's Server. >> >> The >> >> MS VirtualPC seems the better candidate for making a virtual machine >> >> to >> >> run another version of Office. >> >> >> >> Suggestions? Ideas? Watch-out fors? >> >> >> >> Thanks, >> >> Tina >> >> -- >> >> AccessD mailing list >> >> AccessD at databaseadvisors.com >> >> http://databaseadvisors.com/mailman/listinfo/accessd >> >> Website: http://www.databaseadvisors.com >> >> >> > -- >> > AccessD mailing list >> > AccessD at databaseadvisors.com >> > http://databaseadvisors.com/mailman/listinfo/accessd >> > Website: http://www.databaseadvisors.com >> > >> >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> 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 Mar 28 23:20:46 2008 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 29 Mar 2008 00:20:46 -0400 Subject: [AccessD] VM for different versions of Access In-Reply-To: <010301c89151$b40fc510$fe786c4c@jisshowsbs.local> References: <47EBC348.4000101@torchlake.com><4dd71a0c0803271638x3d17edc6j2e778ddbcc35432f@mail.gmail.com><000901c89070$c2b11060$fe786c4c@jisshowsbs.local><000301c890d0$b2724650$0300a8c0@danwaters><4dd71a0c0803282039nd0dafffsc49593843ebfffe2@mail.gmail.com> <010301c89151$b40fc510$fe786c4c@jisshowsbs.local> Message-ID: <002601c89154$4399ea60$0201a8c0@M90> What does renewing consist of? Redownload? Click a button somewhere? 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: Saturday, March 29, 2008 12:02 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] VM for different versions of Access ...thanks Doug ...I missed Dan's msg. William ----- Original Message ----- From: "Doug Steele" To: "Access Developers discussion and problem solving" Sent: Friday, March 28, 2008 11:39 PM Subject: Re: [AccessD] VM for different versions of Access > Google is our friend: > > http://www.microsoft.com/downloads/details.aspx?FamilyId=21EABB90-958F-4B64- B5F1-73D0A413C8EF&displaylang=en > > Doug Steele > > On Fri, Mar 28, 2008 at 5:38 AM, Dan Waters > wrote: > >> William - could you post a link for this? >> >> Thanks! >> Dan >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William >> Hindman >> Sent: Thursday, March 27, 2008 8:12 PM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] VM for different versions of Access >> >> ...Microsoft is offering a free WinXpSP2 install on a vhd ...you have to >> renew every few months but it is no cost ...its intended for web >> developers >> running multiple versions of IE on one system but you don't have to do >> anything other than download it ...I have two copies installed on my vpc, >> one with IE6, and one with IE8 ...works a trick and a damn sight easier >> than >> >> keeping multiple pcs running. >> >> William >> >> ----- Original Message ----- >> From: "Doug Steele" >> To: "Access Developers discussion and problem solving" >> >> Sent: Thursday, March 27, 2008 7:38 PM >> Subject: Re: [AccessD] VM for different versions of Access >> >> >> >I use VMWare, and I have an 8gb USB stick with a full Windows XP install >> >and >> > Office 2003. Works very well, as long as you've got at least 2gb RAM! >> > You >> > can also set up the VM to be copyable (with VMWare Workstation, >> > anyway), >> > copy it to another machine running VMWare Player, and run it there. >> > >> > I use VMs for keeping various development environments separate >> > (specifically, different versions of Office) and it's great. >> > >> > It would be so cool to set up a VM on a client's computer so you could >> > have >> > total control over the environment that your database was running in. >> The >> > VMs are a bit large for shooting back & forth, though, and I haven't >> > yet >> > got >> > up the nerve to ask any client to purchase an extra set of Windows >> > installs >> > for every computer running my database! >> > >> > Doug Steele >> > >> > >> > On Thu, Mar 27, 2008 at 8:54 AM, Tina Norris Fields < >> > tinanfields at torchlake.com> wrote: >> > >> >> Hi All, >> >> >> >> Double-posting, since this is a technical virtual machine question but >> >> involves Access. >> >> >> >> The database I wrote about that got corrupted has been mostly >> >> repaired. >> >> That is to say the tables are intact, all the data are there, and the >> >> table relationships are good. However, there are bits and pieces that >> >> definitely are out of whack. I am going to remodel the database, to >> use >> >> only the features the client actually uses and wants, to restore the >> >> switchboard interface the client likes, and then split the sucker into >> a >> >> proper BE and FE. Client agrees. Here is the puzzle: client uses >> >> Access97. My machine is WinXP Pro with Office 2003. >> >> >> >> I would like to install a virtual machine and run Office 97 in that >> >> machine (yes, I still have a licensed copy on the shelf - >> >> unbelievable!). I would like that machine to reside on my USB >> >> external >> >> drive. Is this do-able? What are the gotchas I need to watch out >> >> for? >> >> >> >> I have Microsoft's VirtualPC installed as well as VMWare's Server. >> >> The >> >> MS VirtualPC seems the better candidate for making a virtual machine >> >> to >> >> run another version of Office. >> >> >> >> Suggestions? Ideas? Watch-out fors? >> >> >> >> Thanks, >> >> Tina >> >> -- >> >> AccessD mailing list >> >> AccessD at databaseadvisors.com >> >> http://databaseadvisors.com/mailman/listinfo/accessd >> >> Website: http://www.databaseadvisors.com >> >> >> > -- >> > AccessD mailing list >> > AccessD at databaseadvisors.com >> > http://databaseadvisors.com/mailman/listinfo/accessd >> > Website: http://www.databaseadvisors.com >> > >> >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Sat Mar 29 00:03:35 2008 From: wdhindman at dejpolsystems.com (William Hindman) Date: Sat, 29 Mar 2008 01:03:35 -0400 Subject: [AccessD] VM for different versions of Access References: <47EBC348.4000101@torchlake.com><4dd71a0c0803271638x3d17edc6j2e778ddbcc35432f@mail.gmail.com><000901c89070$c2b11060$fe786c4c@jisshowsbs.local><000301c890d0$b2724650$0300a8c0@danwaters><4dd71a0c0803282039nd0dafffsc49593843ebfffe2@mail.gmail.com><010301c89151$b40fc510$fe786c4c@jisshowsbs.local> <002601c89154$4399ea60$0201a8c0@M90> Message-ID: <013f01c8915a$3e8be9a0$fe786c4c@jisshowsbs.local> ...afaik redownload the vhd ...backup all your other stuff ...reinstall ...restore ...since the vhd is preloaded its pretty quick and painless ...there was an article that led me to it originally that described the process but damed if I can fnd it now ...I was so interested in finding a solution to the eternal need for different pc os installs that I just followed the same link that Doug posted ...got to say, its one of the better things I've done in years ...once the vpc was in and the vhd connected, it loads quickly and there are so many ways to use it that I've only touched the surface ...its the cat's meow for client visits ...I used to lug a laptop set up to meet each client's needs ...now its all on a usb stick ...install the vpc once ...point it to the vhd on the stick and voila, there's MY desktop and all MY goodies on their pc without all the inconvenience of laptops, networks, etc, etc ...takes about 5 minutes to install and configure the vpc the first time ...from then on I just plug in my stick and load the vpc ...its actually quicker than a reboot ...and you can switch back and forth to the client's environment with just a mouse click ...and watch their discomfort as you demo that their environment changes are the problem, not your app :))) William ----- Original Message ----- From: "jwcolby" To: "'Access Developers discussion and problem solving'" Sent: Saturday, March 29, 2008 12:20 AM Subject: Re: [AccessD] VM for different versions of Access > What does renewing consist of? Redownload? Click a button somewhere? > > > 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: Saturday, March 29, 2008 12:02 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] VM for different versions of Access > > ...thanks Doug ...I missed Dan's msg. > > William > > ----- Original Message ----- > From: "Doug Steele" > To: "Access Developers discussion and problem solving" > > Sent: Friday, March 28, 2008 11:39 PM > Subject: Re: [AccessD] VM for different versions of Access > > >> Google is our friend: >> >> > http://www.microsoft.com/downloads/details.aspx?FamilyId=21EABB90-958F-4B64- > B5F1-73D0A413C8EF&displaylang=en >> >> Doug Steele >> >> On Fri, Mar 28, 2008 at 5:38 AM, Dan Waters >> wrote: >> >>> William - could you post a link for this? >>> >>> Thanks! >>> Dan >>> >>> -----Original Message----- >>> From: accessd-bounces at databaseadvisors.com >>> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William >>> Hindman >>> Sent: Thursday, March 27, 2008 8:12 PM >>> To: Access Developers discussion and problem solving >>> Subject: Re: [AccessD] VM for different versions of Access >>> >>> ...Microsoft is offering a free WinXpSP2 install on a vhd ...you have to >>> renew every few months but it is no cost ...its intended for web >>> developers >>> running multiple versions of IE on one system but you don't have to do >>> anything other than download it ...I have two copies installed on my >>> vpc, >>> one with IE6, and one with IE8 ...works a trick and a damn sight easier >>> than >>> >>> keeping multiple pcs running. >>> >>> William >>> >>> ----- Original Message ----- >>> From: "Doug Steele" >>> To: "Access Developers discussion and problem solving" >>> >>> Sent: Thursday, March 27, 2008 7:38 PM >>> Subject: Re: [AccessD] VM for different versions of Access >>> >>> >>> >I use VMWare, and I have an 8gb USB stick with a full Windows XP >>> >install >>> >and >>> > Office 2003. Works very well, as long as you've got at least 2gb RAM! >>> > You >>> > can also set up the VM to be copyable (with VMWare Workstation, >>> > anyway), >>> > copy it to another machine running VMWare Player, and run it there. >>> > >>> > I use VMs for keeping various development environments separate >>> > (specifically, different versions of Office) and it's great. >>> > >>> > It would be so cool to set up a VM on a client's computer so you could >>> > have >>> > total control over the environment that your database was running in. >>> The >>> > VMs are a bit large for shooting back & forth, though, and I haven't >>> > yet >>> > got >>> > up the nerve to ask any client to purchase an extra set of Windows >>> > installs >>> > for every computer running my database! >>> > >>> > Doug Steele >>> > >>> > >>> > On Thu, Mar 27, 2008 at 8:54 AM, Tina Norris Fields < >>> > tinanfields at torchlake.com> wrote: >>> > >>> >> Hi All, >>> >> >>> >> Double-posting, since this is a technical virtual machine question >>> >> but >>> >> involves Access. >>> >> >>> >> The database I wrote about that got corrupted has been mostly >>> >> repaired. >>> >> That is to say the tables are intact, all the data are there, and the >>> >> table relationships are good. However, there are bits and pieces >>> >> that >>> >> definitely are out of whack. I am going to remodel the database, to >>> use >>> >> only the features the client actually uses and wants, to restore the >>> >> switchboard interface the client likes, and then split the sucker >>> >> into >>> a >>> >> proper BE and FE. Client agrees. Here is the puzzle: client uses >>> >> Access97. My machine is WinXP Pro with Office 2003. >>> >> >>> >> I would like to install a virtual machine and run Office 97 in that >>> >> machine (yes, I still have a licensed copy on the shelf - >>> >> unbelievable!). I would like that machine to reside on my USB >>> >> external >>> >> drive. Is this do-able? What are the gotchas I need to watch out >>> >> for? >>> >> >>> >> I have Microsoft's VirtualPC installed as well as VMWare's Server. >>> >> The >>> >> MS VirtualPC seems the better candidate for making a virtual machine >>> >> to >>> >> run another version of Office. >>> >> >>> >> Suggestions? Ideas? Watch-out fors? >>> >> >>> >> Thanks, >>> >> Tina >>> >> -- >>> >> AccessD mailing list >>> >> AccessD at databaseadvisors.com >>> >> http://databaseadvisors.com/mailman/listinfo/accessd >>> >> Website: http://www.databaseadvisors.com >>> >> >>> > -- >>> > AccessD mailing list >>> > AccessD at databaseadvisors.com >>> > http://databaseadvisors.com/mailman/listinfo/accessd >>> > Website: http://www.databaseadvisors.com >>> > >>> >>> >>> >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >>> >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >>> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Sat Mar 29 00:10:13 2008 From: wdhindman at dejpolsystems.com (William Hindman) Date: Sat, 29 Mar 2008 01:10:13 -0400 Subject: [AccessD] Automating Acrobat References: <004e01c89027$03950040$0301a8c0@HAL9005><0JYF0013J2RAZU91@vms046.mailsrvcs.net><00c101c89087$ec6780d0$0301a8c0@HAL9005><003901c890e9$fa1bba40$fe786c4c@jisshowsbs.local><001a01c890ed$f43aeb10$0301a8c0@HAL9005><006d01c890f0$9e278500$fe786c4c@jisshowsbs.local><000001c89104$9a8fa120$0301a8c0@HAL9005><00d401c89109$0bbe4050$fe786c4c@jisshowsbs.local> <005401c8912b$590db170$0301a8c0@HAL9005> Message-ID: <014901c8915b$2bcf5a80$fe786c4c@jisshowsbs.local> ...would that I could but this is an asp.net2 app using an mdb be ...so vba is out of the question ...I may have to resort to vb.net but I thought I'd give it a shot here first :) William ----- Original Message ----- From: "Rocky Smolin at Beach Access Software" To: "'Access Developers discussion and problem solving'" Sent: Friday, March 28, 2008 7:27 PM Subject: Re: [AccessD] Automating Acrobat > You know, this is the point at which I usually turn to code - a couple of > DAO recordsets, a few loops and walla - you've got the data you need in a > temp table in less time than it takes to figure out how to make queries > jump > through that hoop. > > Rocky > > > > > > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman > Sent: Friday, March 28, 2008 12:22 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Automating Acrobat > > ...the EPCID is used to call other actions specific to it ...but I'll take > a > look at trying that if Patricia's code doesn't work first. > > William > > ----- Original Message ----- > From: "Rocky Smolin at Beach Access Software" > To: "'Access Developers discussion and problem solving'" > > Sent: Friday, March 28, 2008 2:50 PM > Subject: Re: [AccessD] Automating Acrobat > > >> In the second query can you include all the fields EXCEPT EPCOD and use >> unique values? Do you need the EPCID in whatever is calling that query? >> >> Rocky >> >> >> >> >> >> >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William >> Hindman >> Sent: Friday, March 28, 2008 9:27 AM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] Automating Acrobat >> >> ...that would be the normal approach but EPCID is a parameter and isn't >> known until the user supplies it ...thus I can't dedupe before hand since >> the data caught by the OR almost certainly has differing EPCIDs ..I'm >> thinking about using a UNION but those always make my head hurt :( >> >> William >> >> ----- Original Message ----- >> From: "Rocky Smolin at Beach Access Software" >> To: "'Access Developers discussion and problem solving'" >> >> Sent: Friday, March 28, 2008 12:08 PM >> Subject: Re: [AccessD] Automating Acrobat >> >> >>> Two queries - one to set up the records with dups and a second one using >>> the >>> first one but properties Unique Values - Yes? >>> >>> Rocky >>> >>> >>> >>> >>> >>> >>> -----Original Message----- >>> From: accessd-bounces at databaseadvisors.com >>> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William >>> Hindman >>> Sent: Friday, March 28, 2008 8:40 AM >>> To: Access Developers discussion and problem solving >>> Subject: Re: [AccessD] Automating Acrobat >>> >>> ...given the following query: >>> >>> SELECT DISTINCTROW tblExhibitorProducts.EPCID, qryApr08Grid.CompanyID, >>> qryApr08Grid.CompanyName, qryApr08Grid.AdClass, qryApr08Grid.SGOn FROM >>> tblExhibitorProducts INNER JOIN qryApr08Grid ON >>> tblExhibitorProducts.CompanyID = qryApr08Grid.CompanyID WHERE >>> (((tblExhibitorProducts.EPCID)=11)) OR (((qryApr08Grid.AdClass)="A")); >>> >>> ...how can I avoid duplicates in the OR results? >>> ...I've tried totals and uniuqe values/records but nothing produces >>> consistent results ...help! >>> >>> William >>> >>> >>> >>> -- >>> 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. >>> Version: 7.5.519 / Virus Database: 269.22.1/1347 - Release Date: >>> 3/27/2008 >>> 7:15 PM >>> >>> >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/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. >> Version: 7.5.519 / Virus Database: 269.22.1/1347 - Release Date: >> 3/27/2008 >> 7:15 PM >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/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. > Version: 7.5.519 / Virus Database: 269.22.1/1347 - Release Date: 3/27/2008 > 7:15 PM > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From tinanfields at torchlake.com Sat Mar 29 07:23:52 2008 From: tinanfields at torchlake.com (Tina Norris Fields) Date: Sat, 29 Mar 2008 08:23:52 -0400 Subject: [AccessD] VM for different versions of Access In-Reply-To: <001301c89054$4c8471a0$fe786c4c@jisshowsbs.local> References: <47EBC348.4000101@torchlake.com> <001301c89054$4c8471a0$fe786c4c@jisshowsbs.local> Message-ID: <47EE34D8.3030300@torchlake.com> William, Thank you for that thought. No, it hadn't occurred to me, and I'm not quite sure how to go about that. I need to learn that part. I certainly much prefer working in A2K3. Tina William Hindman wrote: > Tina > > ...I use a usb stick as the vhd location but afaik the virtual machine has > to be on the system itself ...since I can run the vpc install from the same > usb stick that the vhd resides on, it makes it very portable to move from > client to client. > > ...as for Access97, have you considered replacing it on the client systems > with an A2k3 runtime? With proper design, a runtime is a lot more stable, > subject to less user caused crashes, and can easily provide everything they > need short of code development itself ...and as you know, the A2k3 platform > itself has numerousadvantages over A97. ...plus it doesn't cost your client > anything to upgrade that way. > > William > ----- Original Message ----- > From: "Tina Norris Fields" > To: ; > Sent: Thursday, March 27, 2008 11:54 AM > Subject: [AccessD] VM for different versions of Access > > > >> Hi All, >> >> Double-posting, since this is a technical virtual machine question but >> involves Access. >> >> The database I wrote about that got corrupted has been mostly repaired. >> That is to say the tables are intact, all the data are there, and the >> table relationships are good. However, there are bits and pieces that >> definitely are out of whack. I am going to remodel the database, to use >> only the features the client actually uses and wants, to restore the >> switchboard interface the client likes, and then split the sucker into a >> proper BE and FE. Client agrees. Here is the puzzle: client uses >> Access97. My machine is WinXP Pro with Office 2003. >> >> I would like to install a virtual machine and run Office 97 in that >> machine (yes, I still have a licensed copy on the shelf - >> unbelievable!). I would like that machine to reside on my USB external >> drive. Is this do-able? What are the gotchas I need to watch out for? >> >> I have Microsoft's VirtualPC installed as well as VMWare's Server. The >> MS VirtualPC seems the better candidate for making a virtual machine to >> run another version of Office. >> >> Suggestions? Ideas? Watch-out fors? >> >> Thanks, >> Tina >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> > > > > From tinanfields at torchlake.com Sat Mar 29 07:25:49 2008 From: tinanfields at torchlake.com (Tina Norris Fields) Date: Sat, 29 Mar 2008 08:25:49 -0400 Subject: [AccessD] VM for different versions of Access In-Reply-To: <49DFE57FB126044B8A8B934E7AEA09ED09FD70D4@WPEXCH05.colesmyer.ad.cmltd.net.au> References: <49DFE57FB126044B8A8B934E7AEA09ED09FD70D4@WPEXCH05.colesmyer.ad.cmltd.net.au> Message-ID: <47EE354D.4030706@torchlake.com> Darryl, Thank you for that link. As I learn more about VMs I like them more. I'm somewhat leery of the dual-boot scenario, not least of all because I am so inexperienced with it. Tina Darryl Collins wrote: > Tina, > > I read this only this morning... I may be of some use to you? > > http://www.windowssecrets.com/2008/03/27/01-XP-virtual-computing-avoids-dual-boot-complexity > > regards > Darryl. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Tina Norris > Fields > Sent: Friday, 28 March 2008 2:55 AM > To: dba-tech at databaseadvisors.com; accessd at databaseadvisors.com > Subject: [AccessD] VM for different versions of Access > > > Hi All, > > Double-posting, since this is a technical virtual machine question but > involves Access. > > The database I wrote about that got corrupted has been mostly repaired. > That is to say the tables are intact, all the data are there, and the > table relationships are good. However, there are bits and pieces that > definitely are out of whack. I am going to remodel the database, to use > only the features the client actually uses and wants, to restore the > switchboard interface the client likes, and then split the sucker into a > proper BE and FE. Client agrees. Here is the puzzle: client uses > Access97. My machine is WinXP Pro with Office 2003. > > I would like to install a virtual machine and run Office 97 in that > machine (yes, I still have a licensed copy on the shelf - > unbelievable!). I would like that machine to reside on my USB external > drive. Is this do-able? What are the gotchas I need to watch out for? > > I have Microsoft's VirtualPC installed as well as VMWare's Server. The > MS VirtualPC seems the better candidate for making a virtual machine to > run another version of Office. > > Suggestions? Ideas? Watch-out fors? > > Thanks, > Tina > From tinanfields at torchlake.com Sat Mar 29 07:28:55 2008 From: tinanfields at torchlake.com (Tina Norris Fields) Date: Sat, 29 Mar 2008 08:28:55 -0400 Subject: [AccessD] VM for different versions of Access In-Reply-To: <4dd71a0c0803271638x3d17edc6j2e778ddbcc35432f@mail.gmail.com> References: <47EBC348.4000101@torchlake.com> <4dd71a0c0803271638x3d17edc6j2e778ddbcc35432f@mail.gmail.com> Message-ID: <47EE3607.4070303@torchlake.com> Doug, Thanks. This VM technique is looking better and better all the time. Would a site license cover the Windows installations running on VM? Tina Doug Steele wrote: > I use VMWare, and I have an 8gb USB stick with a full Windows XP install and > Office 2003. Works very well, as long as you've got at least 2gb RAM! You > can also set up the VM to be copyable (with VMWare Workstation, anyway), > copy it to another machine running VMWare Player, and run it there. > > I use VMs for keeping various development environments separate > (specifically, different versions of Office) and it's great. > > It would be so cool to set up a VM on a client's computer so you could have > total control over the environment that your database was running in. The > VMs are a bit large for shooting back & forth, though, and I haven't yet got > up the nerve to ask any client to purchase an extra set of Windows installs > for every computer running my database! > > Doug Steele > > > On Thu, Mar 27, 2008 at 8:54 AM, Tina Norris Fields < > tinanfields at torchlake.com> wrote: > > >> Hi All, >> >> Double-posting, since this is a technical virtual machine question but >> involves Access. >> >> The database I wrote about that got corrupted has been mostly repaired. >> That is to say the tables are intact, all the data are there, and the >> table relationships are good. However, there are bits and pieces that >> definitely are out of whack. I am going to remodel the database, to use >> only the features the client actually uses and wants, to restore the >> switchboard interface the client likes, and then split the sucker into a >> proper BE and FE. Client agrees. Here is the puzzle: client uses >> Access97. My machine is WinXP Pro with Office 2003. >> >> I would like to install a virtual machine and run Office 97 in that >> machine (yes, I still have a licensed copy on the shelf - >> unbelievable!). I would like that machine to reside on my USB external >> drive. Is this do-able? What are the gotchas I need to watch out for? >> >> I have Microsoft's VirtualPC installed as well as VMWare's Server. The >> MS VirtualPC seems the better candidate for making a virtual machine to >> run another version of Office. >> >> Suggestions? Ideas? Watch-out fors? >> >> Thanks, >> Tina >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> From fuller.artful at gmail.com Sat Mar 29 07:37:45 2008 From: fuller.artful at gmail.com (Arthur Fuller) Date: Sat, 29 Mar 2008 08:37:45 -0400 Subject: [AccessD] How to get rid of procedures not used in a project In-Reply-To: <34C8A2AB1EF3564CB0D64DB6AFFDD5C211DF66AD@XLIVMBX35bkup.aig.com> References: <34C8A2AB1EF3564CB0D64DB6AFFDD5C211DF66AD@XLIVMBX35bkup.aig.com> Message-ID: <29f585dd0803290537s5f1c42el9c03e03184cf6da1@mail.gmail.com> I want to second that (e)motion. Do not program Access or .NET for that matter without MZ-Tools. It is a godsend. It makes me look much more professional and brain-alive than I actually am. A. On 3/28/08, Heenan, Lambert wrote: > > Well of course. But it's Friday and my typing neurons are worn out! :-) > > Thanks for the correction. > > > Lambert > From tinanfields at torchlake.com Sat Mar 29 08:36:12 2008 From: tinanfields at torchlake.com (Tina Norris Fields) Date: Sat, 29 Mar 2008 09:36:12 -0400 Subject: [AccessD] VM for different versions of Access In-Reply-To: <4dd71a0c0803282039nd0dafffsc49593843ebfffe2@mail.gmail.com> References: <47EBC348.4000101@torchlake.com> <4dd71a0c0803271638x3d17edc6j2e778ddbcc35432f@mail.gmail.com> <000901c89070$c2b11060$fe786c4c@jisshowsbs.local> <000301c890d0$b2724650$0300a8c0@danwaters> <4dd71a0c0803282039nd0dafffsc49593843ebfffe2@mail.gmail.com> Message-ID: <47EE45CC.3030105@torchlake.com> Doug, William, et al, How does one decide which of the files to download? I'm using IE7, so that eliminates two of the files, but what would determine my choice among IE7_VPC.EXE, IE7_VIS1.exe, IE7_VIS2.rar, and IE7_VIS3.rar? My guess is IE7_VPC.EXE, simply because I see "vpc" in this name, and I have no idea what "vis1," "vis2," and "vis3" are. Have I guessed correctly? Okay, if I'm just dumb, I'm just dumb - but it would be nice to really know what I'm looking at and what I'm choosing when I download something. My past week's experience starting to learn about Linux has me very sensitive to the several "Swiss Cheese holes" in my knowledge. I am going to gamble on my guess and go download IE7_VPC.EXE. Thanks, Tina Doug Steele wrote: > Google is our friend: > > http://www.microsoft.com/downloads/details.aspx?FamilyId=21EABB90-958F-4B64-B5F1-73D0A413C8EF&displaylang=en > > Doug Steele > > On Fri, Mar 28, 2008 at 5:38 AM, Dan Waters wrote: > > >> William - could you post a link for this? >> >> Thanks! >> Dan >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman >> Sent: Thursday, March 27, 2008 8:12 PM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] VM for different versions of Access >> >> ...Microsoft is offering a free WinXpSP2 install on a vhd ...you have to >> renew every few months but it is no cost ...its intended for web >> developers >> running multiple versions of IE on one system but you don't have to do >> anything other than download it ...I have two copies installed on my vpc, >> one with IE6, and one with IE8 ...works a trick and a damn sight easier >> than >> >> keeping multiple pcs running. >> >> William >> >> ----- Original Message ----- >> From: "Doug Steele" >> To: "Access Developers discussion and problem solving" >> >> Sent: Thursday, March 27, 2008 7:38 PM >> Subject: Re: [AccessD] VM for different versions of Access >> >> >> >>> I use VMWare, and I have an 8gb USB stick with a full Windows XP install >>> and >>> Office 2003. Works very well, as long as you've got at least 2gb RAM! >>> You >>> can also set up the VM to be copyable (with VMWare Workstation, anyway), >>> copy it to another machine running VMWare Player, and run it there. >>> >>> I use VMs for keeping various development environments separate >>> (specifically, different versions of Office) and it's great. >>> >>> It would be so cool to set up a VM on a client's computer so you could >>> have >>> total control over the environment that your database was running in. >>> >> The >> >>> VMs are a bit large for shooting back & forth, though, and I haven't yet >>> got >>> up the nerve to ask any client to purchase an extra set of Windows >>> installs >>> for every computer running my database! >>> >>> Doug Steele >>> >>> >>> On Thu, Mar 27, 2008 at 8:54 AM, Tina Norris Fields < >>> tinanfields at torchlake.com> wrote: >>> >>> >>>> Hi All, >>>> >>>> Double-posting, since this is a technical virtual machine question but >>>> involves Access. >>>> >>>> The database I wrote about that got corrupted has been mostly repaired. >>>> That is to say the tables are intact, all the data are there, and the >>>> table relationships are good. However, there are bits and pieces that >>>> definitely are out of whack. I am going to remodel the database, to >>>> >> use >> >>>> only the features the client actually uses and wants, to restore the >>>> switchboard interface the client likes, and then split the sucker into >>>> >> a >> >>>> proper BE and FE. Client agrees. Here is the puzzle: client uses >>>> Access97. My machine is WinXP Pro with Office 2003. >>>> >>>> I would like to install a virtual machine and run Office 97 in that >>>> machine (yes, I still have a licensed copy on the shelf - >>>> unbelievable!). I would like that machine to reside on my USB external >>>> drive. Is this do-able? What are the gotchas I need to watch out for? >>>> >>>> I have Microsoft's VirtualPC installed as well as VMWare's Server. The >>>> MS VirtualPC seems the better candidate for making a virtual machine to >>>> run another version of Office. >>>> >>>> Suggestions? Ideas? Watch-out fors? >>>> >>>> Thanks, >>>> Tina >>>> -- >>>> AccessD mailing list >>>> AccessD at databaseadvisors.com >>>> http://databaseadvisors.com/mailman/listinfo/accessd >>>> Website: http://www.databaseadvisors.com >>>> >>>> >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >>> >>> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> From rockysmolin at bchacc.com Sat Mar 29 09:58:37 2008 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Sat, 29 Mar 2008 07:58:37 -0700 Subject: [AccessD] Computer programming pioneer Joseph Weizenbaum dead at 85, advanced artificial intelligence Message-ID: <001301c891ad$5e669510$0301a8c0@HAL9005> Joseph Weizenbaum invented ELIZA - an artificial intelligence program I used back in the Radio Shack Model II days. It was the model of simplicity, yet, it was so effective that when researchers were testing it the test subjects would ask the researchers to leave the room while they were using it as the information they were sharing was so personal. I read another study which said that the therapeutic results of ELIZA were reported by users to rival that of live therapists. Rocky http://www.signonsandiego.com/news/tech/20080313-1336-obit-weizenbaum.html BERLIN - Joseph Weizenbaum, a computer programmer who helped advance artificial intelligence only to become a critic of the technology later in his life, has died. He was 85. Weizenbaum died March 5 of complications from stomach cancer at a daughter's home in Groeben, just outside the German capital, Miriam Weizenbaum, one of his four daughters, said Thursday. Weizenbaum was a professor at the Massachusetts Institute of Technology in the mid-1960s when he developed ELIZA - named for Eliza Doolittle, the heroine of "My Fair Lady" - which became his best-known contribution to computer programming. The program allowed a person to "converse" with a computer, using what the person said to create the computer's reply. "Weizenbaum was shocked to discover that many users were taking his program seriously and were opening their hearts to it. The experience prompted him to think philosophically about the implications of artificial intelligence, and, later, to become a critic of it," the MIT newsletter Tech Talk said Wednesday. In his 1976 book "Computer Power and Human Reason: From Judgment to Calculation," Weizenbaum suggested it could be both dangerous and immoral to assume computers could eventually take over any human role. "No other organism, and certainly no computer, can be made to confront genuine human problems in human terms," he wrote. Weizenbaum was born Jan. 8, 1923, in Berlin and fled to the United States in 1936 with his Jewish family to escape Nazi persecution, according to a short 2003 biography published by Magdeburg's Leibniz-Institut fuer Neurobiologie. He began studying math at what was then Wayne University in Detroit in 1941, but broke off a year later to join the U.S. Army Air Corps where he served as a meteorologist. He joined a General Electric Co. team in 1955 that designed and built the first computer system dedicated to banking operations. Besides his work at MIT, he held academic appointments at Harvard, Stanford and the University of Bremen, among others. He was the Scientific Council chairman of Berlin's Institute of Electronic Business at the time of his death. Weizenbaum was buried at a small family service in the Jewish Cemetery in Berlin. A public memorial is scheduled for March 18 in Berlin. Besides his four daughters, Weizenbaum is survived by a son from a previous marriage and five grandchildren. From jwcolby at colbyconsulting.com Sat Mar 29 10:31:15 2008 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 29 Mar 2008 11:31:15 -0400 Subject: [AccessD] Automating Acrobat In-Reply-To: <014901c8915b$2bcf5a80$fe786c4c@jisshowsbs.local> References: <004e01c89027$03950040$0301a8c0@HAL9005><0JYF0013J2RAZU91@vms046.mailsrvcs.net><00c101c89087$ec6780d0$0301a8c0@HAL9005><003901c890e9$fa1bba40$fe786c4c@jisshowsbs.local><001a01c890ed$f43aeb10$0301a8c0@HAL9005><006d01c890f0$9e278500$fe786c4c@jisshowsbs.local><000001c89104$9a8fa120$0301a8c0@HAL9005><00d401c89109$0bbe4050$fe786c4c@jisshowsbs.local><005401c8912b$590db170$0301a8c0@HAL9005> <014901c8915b$2bcf5a80$fe786c4c@jisshowsbs.local> Message-ID: <000101c891b1$ede5d300$0201a8c0@M90> >I may have to resort to vb.net but 8~0 Tell me you didn't say that. I thought you were a C# kinda guy! 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: Saturday, March 29, 2008 1:10 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Automating Acrobat ...would that I could but this is an asp.net2 app using an mdb be ...so vba is out of the question ...I may have to resort to vb.net but I thought I'd give it a shot here first :) William From jwcolby at colbyconsulting.com Sat Mar 29 10:31:25 2008 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 29 Mar 2008 11:31:25 -0400 Subject: [AccessD] VM for different versions of Access In-Reply-To: <47EE45CC.3030105@torchlake.com> References: <47EBC348.4000101@torchlake.com> <4dd71a0c0803271638x3d17edc6j2e778ddbcc35432f@mail.gmail.com> <000901c89070$c2b11060$fe786c4c@jisshowsbs.local> <000301c890d0$b2724650$0300a8c0@danwaters><4dd71a0c0803282039nd0dafffsc49593843ebfffe2@mail.gmail.com> <47EE45CC.3030105@torchlake.com> Message-ID: <000201c891b1$f385cbd0$0201a8c0@M90> >My past week's experience starting to learn about Linux has me very sensitive to the several "Swiss Cheese holes" in my knowledge. Get over it. ;-) NOBODY know everything and most of us know very little. Back in the 70s I read that at in the 1500s a "genius" could know everything understood about the world, all science, math, medicine etc. By 1970 a Genius could not even know everything known about a single branch of science - math, physics, chemistry etc. Man's knowledge of the world was (at that time) roughly doubling every 4 years. Today it would be impossible to know everything there is to know about programming languages or databases. That is why I laugh so hard when I see want adds with "must be experienced in Windows, Office, SQL Server, C#, Java, HTML, etc etc let's throw in every technical term we know..." "Experienced in" and "useful" are two entirely different things. I strive to know one or two things very well and I can then look like an expert somewhere in the world. I haven't gotten there yet but I still strive. 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 Tina Norris Fields Sent: Saturday, March 29, 2008 9:36 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] VM for different versions of Access Doug, William, et al, How does one decide which of the files to download? I'm using IE7, so that eliminates two of the files, but what would determine my choice among IE7_VPC.EXE, IE7_VIS1.exe, IE7_VIS2.rar, and IE7_VIS3.rar? My guess is IE7_VPC.EXE, simply because I see "vpc" in this name, and I have no idea what "vis1," "vis2," and "vis3" are. Have I guessed correctly? Okay, if I'm just dumb, I'm just dumb - but it would be nice to really know what I'm looking at and what I'm choosing when I download something. My past week's experience starting to learn about Linux has me very sensitive to the several "Swiss Cheese holes" in my knowledge. I am going to gamble on my guess and go download IE7_VPC.EXE. Thanks, Tina From Gustav at cactus.dk Sat Mar 29 11:40:53 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Sat, 29 Mar 2008 17:40:53 +0100 Subject: [AccessD] VM for different versions of Access Message-ID: Hi Tina They seem to have forgotten the instructions as found similar here for VS TS 2008: http://www.microsoft.com/downloads/details.aspx?FamilyID=c7a809d8-8c9f-439f-8147-948bc6957812&DisplayLang=en#Instructions > The first part is a self-extracting EXE and will prompt for the other parts. .. So it is the exe for a start. /gustav >>> tinanfields at torchlake.com 29-03-2008 14:36 >>> Doug, William, et al, How does one decide which of the files to download? I'm using IE7, so that eliminates two of the files, but what would determine my choice among IE7_VPC.EXE, IE7_VIS1.exe, IE7_VIS2.rar, and IE7_VIS3.rar? My guess is IE7_VPC.EXE, simply because I see "vpc" in this name, and I have no idea what "vis1," "vis2," and "vis3" are. Have I guessed correctly? Okay, if I'm just dumb, I'm just dumb - but it would be nice to really know what I'm looking at and what I'm choosing when I download something. My past week's experience starting to learn about Linux has me very sensitive to the several "Swiss Cheese holes" in my knowledge. I am going to gamble on my guess and go download IE7_VPC.EXE. Thanks, Tina Doug Steele wrote: > Google is our friend: > > http://www.microsoft.com/downloads/details.aspx?FamilyId=21EABB90-958F-4B64-B5F1-73D0A413C8EF&displaylang=en > > Doug Steele > > On Fri, Mar 28, 2008 at 5:38 AM, Dan Waters wrote: > > >> William - could you post a link for this? >> >> Thanks! >> Dan From dwaters at usinternet.com Sat Mar 29 11:57:09 2008 From: dwaters at usinternet.com (Dan Waters) Date: Sat, 29 Mar 2008 11:57:09 -0500 Subject: [AccessD] How to get rid of procedures not used in a project In-Reply-To: <29f585dd0803290537s5f1c42el9c03e03184cf6da1@mail.gmail.com> References: <34C8A2AB1EF3564CB0D64DB6AFFDD5C211DF66AD@XLIVMBX35bkup.aig.com> <29f585dd0803290537s5f1c42el9c03e03184cf6da1@mail.gmail.com> Message-ID: <004e01c891bd$ed904280$0300a8c0@danwaters> I used MZ-Tools for a year - then I PAID for it (it's shareware). It's a great help. For example - you can add/remove line numbers with a single click. Then you can add your own custom error trapping to each procedure with a single click - and the error trapping can record the line the error occurred on using the Erl() function. And MANY other features! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Saturday, March 29, 2008 7:38 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] How to get rid of procedures not used in a project I want to second that (e)motion. Do not program Access or .NET for that matter without MZ-Tools. It is a godsend. It makes me look much more professional and brain-alive than I actually am. A. On 3/28/08, Heenan, Lambert wrote: > > Well of course. But it's Friday and my typing neurons are worn out! :-) > > Thanks for the correction. > > > Lambert > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dbdoug at gmail.com Sat Mar 29 11:58:34 2008 From: dbdoug at gmail.com (Doug Steele) Date: Sat, 29 Mar 2008 09:58:34 -0700 Subject: [AccessD] Strange behaviour Message-ID: <4dd71a0c0803290958i72264e04pee3473700cb6ac12@mail.gmail.com> Not me, Access. I just had a client report an error in a database. When I investigated, I discovered that the Unload event of a form was trying to update fields in a record after the record had been deleted from the underlying table (in code). Fine, easily fixed. The strange thing is that the delete option is used regularly, nobody has ever encountered an error (including me while testing), BUT the deletion and unload code has been unchanged for at least a year. Any comments? Doug Steele From joe at anamericanjoe.us Sat Mar 29 12:00:27 2008 From: joe at anamericanjoe.us (Joe Hecht) Date: Sat, 29 Mar 2008 10:00:27 -0700 Subject: [AccessD] How to get rid of procedures not used in a project In-Reply-To: <20080328142859.DTB33860@dommail.onthenet.com.au> References: <20080328142859.DTB33860@dommail.onthenet.com.au> Message-ID: <000c01c891be$646abe30$6401a8c0@ACER2G> FMS Inc has something. I think it is the analyzer program. Not sure. Joe Hecht Joe at anamericanjoe.us -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of pcs at azizaz.com Sent: Thursday, March 27, 2008 9:29 PM To: Access Developers discussion and problemsolving Subject: [AccessD] How to get rid of procedures not used in a project Hello, Is there a utility in existence that will identify all procedure (subs and functions) that are not used (referenced) in a Project, i.e. they are not called by any other sub or function or event on a Form ?? I am trying to do a spring clean of a major project where a lot of modules have been copied in to just use a few procedures from here, a few from there and so on ... pretty messy I know ... regards borge -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From tinanfields at torchlake.com Sat Mar 29 12:42:45 2008 From: tinanfields at torchlake.com (Tina Norris Fields) Date: Sat, 29 Mar 2008 13:42:45 -0400 Subject: [AccessD] VM for different versions of Access In-Reply-To: <000201c891b1$f385cbd0$0201a8c0@M90> References: <47EBC348.4000101@torchlake.com> <4dd71a0c0803271638x3d17edc6j2e778ddbcc35432f@mail.gmail.com> <000901c89070$c2b11060$fe786c4c@jisshowsbs.local> <000301c890d0$b2724650$0300a8c0@danwaters><4dd71a0c0803282039nd0dafffsc49593843ebfffe2@mail.gmail.com><47EE45CC.3030105@torchl ake.com> <000201c891b1$f385cbd0$0201a8c0@M90> Message-ID: <47EE7F95.2090206@torchlake.com> John, What a great friend you are! I was raised in a family where perfection was touted as the standard. As an adult I've learned to recognize the absurdity of that, but some of the emotional garbage lingers, lurking in the back alleys and shadows, waiting to jump out at me when I run into something I don't know. Around here, I'm expected to be the expert - the "alpha geek" of all things computer. Well, you and I both know no one can know everything about computer "stuff." For a few years I kept current on the office productivity suites of Microsoft, WordPerfect-Novel-Corel, and Lotus - sheeeeeeesh!!!! I was always chasing my tail during that era! Now, I realize I will know some things and not some others - so I turn to this group. Someone in this group always knows what I need to learn. Others have said it well, but I add my statement of profound gratitude to the members of this list, people from everywhere at every level of technical expertise, and in just about everything. What a blessing this team has been to me - and continues to be! I read the same information you did, back in the 70s. It's just amazing! You definitely made my day, Tina jwcolby wrote: >> My past week's experience starting to learn about Linux has me very >> > sensitive to the several "Swiss Cheese holes" in my knowledge. > > Get over it. ;-) NOBODY know everything and most of us know very little. > > Back in the 70s I read that at in the 1500s a "genius" could know everything > understood about the world, all science, math, medicine etc. By 1970 a > Genius could not even know everything known about a single branch of science > - math, physics, chemistry etc. Man's knowledge of the world was (at that > time) roughly doubling every 4 years. > > Today it would be impossible to know everything there is to know about > programming languages or databases. That is why I laugh so hard when I see > want adds with "must be experienced in Windows, Office, SQL Server, C#, > Java, HTML, etc etc let's throw in every technical term we know..." > > "Experienced in" and "useful" are two entirely different things. > > I strive to know one or two things very well and I can then look like an > expert somewhere in the world. I haven't gotten there yet but I still > strive. > > 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 Tina Norris > Fields > Sent: Saturday, March 29, 2008 9:36 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] VM for different versions of Access > > Doug, William, et al, > > How does one decide which of the files to download? I'm using IE7, so that > eliminates two of the files, but what would determine my choice among > IE7_VPC.EXE, IE7_VIS1.exe, IE7_VIS2.rar, and IE7_VIS3.rar? > > My guess is IE7_VPC.EXE, simply because I see "vpc" in this name, and I have > no idea what "vis1," "vis2," and "vis3" are. Have I guessed correctly? > > Okay, if I'm just dumb, I'm just dumb - but it would be nice to really know > what I'm looking at and what I'm choosing when I download something. My > past week's experience starting to learn about Linux has me very sensitive > to the several "Swiss Cheese holes" in my knowledge. > I am going to gamble on my guess and go download IE7_VPC.EXE. > > Thanks, > Tina > > From tinanfields at torchlake.com Sat Mar 29 12:47:00 2008 From: tinanfields at torchlake.com (Tina Norris Fields) Date: Sat, 29 Mar 2008 13:47:00 -0400 Subject: [AccessD] VM for different versions of Access In-Reply-To: References: Message-ID: <47EE8094.9090802@torchlake.com> Gustav, Thanks so much. I did download the EXE with VPC in its name. I'll see what it instructs me to do when I run it. As you can see, I was having a moment of insecurity - gee, I always wanted to grow up to know everything - but JC and I have already had the discussion about that impossibility. Best regards, Tina Gustav Brock wrote: > Hi Tina > > They seem to have forgotten the instructions as found similar here for VS TS 2008: > http://www.microsoft.com/downloads/details.aspx?FamilyID=c7a809d8-8c9f-439f-8147-948bc6957812&DisplayLang=en#Instructions > > >> The first part is a self-extracting EXE and will prompt for the other parts. .. >> > > So it is the exe for a start. > > /gustav > > >>>> tinanfields at torchlake.com 29-03-2008 14:36 >>> >>>> > Doug, William, et al, > > How does one decide which of the files to download? I'm using IE7, so > that eliminates two of the files, but what would determine my choice > among IE7_VPC.EXE, IE7_VIS1.exe, IE7_VIS2.rar, and IE7_VIS3.rar? > > My guess is IE7_VPC.EXE, simply because I see "vpc" in this name, and I > have no idea what "vis1," "vis2," and "vis3" are. Have I guessed correctly? > > Okay, if I'm just dumb, I'm just dumb - but it would be nice to really > know what I'm looking at and what I'm choosing when I download > something. My past week's experience starting to learn about Linux has > me very sensitive to the several "Swiss Cheese holes" in my knowledge. > I am going to gamble on my guess and go download IE7_VPC.EXE. > > Thanks, > Tina > > Doug Steele wrote: > >> Google is our friend: >> >> http://www.microsoft.com/downloads/details.aspx?FamilyId=21EABB90-958F-4B64-B5F1-73D0A413C8EF&displaylang=en >> >> Doug Steele >> >> On Fri, Mar 28, 2008 at 5:38 AM, Dan Waters wrote: >> >> >> >>> William - could you post a link for this? >>> >>> Thanks! >>> Dan >>> > > > > From tinanfields at torchlake.com Sat Mar 29 12:50:23 2008 From: tinanfields at torchlake.com (Tina Norris Fields) Date: Sat, 29 Mar 2008 13:50:23 -0400 Subject: [AccessD] Computer programming pioneer Joseph Weizenbaum dead at 85, advanced artificial intelligence In-Reply-To: <001301c891ad$5e669510$0301a8c0@HAL9005> References: <001301c891ad$5e669510$0301a8c0@HAL9005> Message-ID: <47EE815F.1030603@torchlake.com> Rocky, That's a real loss to the world. Thanks for letting us know. Tina Rocky Smolin at Beach Access Software wrote: > Joseph Weizenbaum invented ELIZA - an artificial intelligence program I used > back in the Radio Shack Model II days. It was the model of simplicity, yet, > it was so effective that when researchers were testing it the test subjects > would ask the researchers to leave the room while they were using it as the > information they were sharing was so personal. > > I read another study which said that the therapeutic results of ELIZA were > reported by users to rival that of live therapists. > > > Rocky > > > http://www.signonsandiego.com/news/tech/20080313-1336-obit-weizenbaum.html > > > BERLIN - Joseph Weizenbaum, a computer programmer who helped advance > artificial intelligence only to become a critic of the technology later in > his life, has died. He was 85. > > Weizenbaum died March 5 of complications from stomach cancer at a daughter's > home in Groeben, just outside the German capital, Miriam Weizenbaum, one of > his four daughters, said Thursday. > > Weizenbaum was a professor at the Massachusetts Institute of Technology in > the mid-1960s when he developed ELIZA - named for Eliza Doolittle, the > heroine of "My Fair Lady" - which became his best-known contribution to > computer programming. > > The program allowed a person to "converse" with a computer, using what the > person said to create the computer's reply. > > "Weizenbaum was shocked to discover that many users were taking his program > seriously and were opening their hearts to it. The experience prompted him > to think philosophically about the implications of artificial intelligence, > and, later, to become a critic of it," the MIT newsletter Tech Talk said > Wednesday. > > In his 1976 book "Computer Power and Human Reason: From Judgment to > Calculation," Weizenbaum suggested it could be both dangerous and immoral to > assume computers could eventually take over any human role. > > "No other organism, and certainly no computer, can be made to confront > genuine human problems in human terms," he wrote. > > Weizenbaum was born Jan. 8, 1923, in Berlin and fled to the United States in > 1936 with his Jewish family to escape Nazi persecution, according to a short > 2003 biography published by Magdeburg's Leibniz-Institut fuer Neurobiologie. > > > He began studying math at what was then Wayne University in Detroit in 1941, > but broke off a year later to join the U.S. Army Air Corps where he served > as a meteorologist. > > He joined a General Electric Co. team in 1955 that designed and built the > first computer system dedicated to banking operations. > > Besides his work at MIT, he held academic appointments at Harvard, Stanford > and the University of Bremen, among others. He was the Scientific Council > chairman of Berlin's Institute of Electronic Business at the time of his > death. > > Weizenbaum was buried at a small family service in the Jewish Cemetery in > Berlin. A public memorial is scheduled for March 18 in Berlin. > > Besides his four daughters, Weizenbaum is survived by a son from a previous > marriage and five grandchildren. > > From jwcolby at colbyconsulting.com Sat Mar 29 14:36:01 2008 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 29 Mar 2008 15:36:01 -0400 Subject: [AccessD] Strange behaviour In-Reply-To: <4dd71a0c0803290958i72264e04pee3473700cb6ac12@mail.gmail.com> References: <4dd71a0c0803290958i72264e04pee3473700cb6ac12@mail.gmail.com> Message-ID: <000f01c891d4$1f2100d0$0201a8c0@M90> Maybe they have a new developer looking at your code. 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 Doug Steele Sent: Saturday, March 29, 2008 12:59 PM To: accessd at databaseadvisors.com Subject: [AccessD] Strange behaviour Not me, Access. I just had a client report an error in a database. When I investigated, I discovered that the Unload event of a form was trying to update fields in a record after the record had been deleted from the underlying table (in code). Fine, easily fixed. The strange thing is that the delete option is used regularly, nobody has ever encountered an error (including me while testing), BUT the deletion and unload code has been unchanged for at least a year. Any comments? Doug Steele -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From markamatte at hotmail.com Sat Mar 29 18:43:34 2008 From: markamatte at hotmail.com (Mark A Matte) Date: Sat, 29 Mar 2008 23:43:34 +0000 Subject: [AccessD] VBE Experience anyone? In-Reply-To: <000701c89118$43e01260$6401a8c0@nant> References: <000701c89118$43e01260$6401a8c0@nant> Message-ID: Shamil, Thank you very much. I will try this on Monday. This seems to be the 'Icing on the cake' for my current project. Thanks agin to all that contributed. Mark A. Matte > From: shamil at users.mns.ru > To: accessd at databaseadvisors.com > Date: Sat, 29 Mar 2008 00:11:18 +0300 > Subject: Re: [AccessD] VBE Experience anyone? > > Hi Mark, > > Here is how you can use Automation to process modules in other mdb: > > Public Function ProcessExtModules() > Dim mdb As String > mdb = "C:\Temp\test.mdb" > Dim acc As Access.Application > > Set acc = New Access.Application > acc.OpenCurrentDatabase (mdb) > > ProcessModules acc > > acc.CloseCurrentDatabase > > acc.Quit acQuitSaveNone > > Set acc = Nothing > > End Function > > Public Function ProcessModules( _ > ByRef rapp As Access.Application) > > Dim oVBE As Object > Dim mdl As Object > Dim blnFound As Boolean > Dim StartLine As Long > Dim StartColumn As Long > Dim EndLine As Long > Dim EndColumn As Long > > 'To make life easier and lines shorter. > Set oVBE = rapp.VBE.ActiveVBProject.VBComponents > > Dim s As String > s = "" > > 'Check each module ... > For Each mdl In oVBE > If Len(s)> 0 Then s = s + vbCrLf > 'for the required procedure ... > 'Debug.Print oVBE(mdl.Name).CodeModule > s = s + oVBE(mdl.Name).CodeModule > Next > > Debug.Print s > MsgBox s > End Function > > I do not know about tutorials. They could exist but I never used them - all > the above info is from MS Access/VBA online help and own R&D.... > > Beware: to master working with Automation (if you are only starting to do > that) can take a lot of time... > > -- > Shamil > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte > Sent: Friday, March 28, 2008 11:30 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] VBE Experience anyone? > > > Thanks Shamil and Jack, > > > I found the solution you sent Jack...it actually opens each > db/form/module...as for the VBE...I think I'm a little over my head for a > Friday. > > I found this snippet...but too late in the week to try and get it to work > today...will try again tomorrow. I cut all the extra stuff out... > > Shamil...How difficult is the code below to point to a different mdb...or > can you point me a tutorial or articles? I'm looking to get the text of the > form modules. > > Thanks Again, > > Mark A. Matte > > ****************************** > Sub AddDAO() > Dim oVBE As Object > Dim mdl As Object > Dim blnFound As Boolean > Dim StartLine As Long > Dim StartColumn As Long > Dim EndLine As Long > Dim EndColumn As Long > > 'To make life easier and lines shorter. > Set oVBE = VBE.ActiveVBProject.VBComponents > > 'Check each module ... > For Each mdl In oVBE > 'for the required procedure ... > Debug.Print oVBE(mdl.Name).CodeModule > Next > End Sub > ****************************** > >> From: shamil at users.mns.ru >> To: accessd at databaseadvisors.com >> Date: Fri, 28 Mar 2008 22:22:02 +0300 >> Subject: Re: [AccessD] VBE Experience anyone? >> >> Hi Mark, >> >> Do you meant other projects *referenced* by current MS Access application >> database? >> >> Set reference to "Microsoft Visual Basic for Application Extensibility > 3.5" >> (VBIDE - usually located at C:\Program Files\Common Files\Microsoft >> Shared\VBA\VBA6\VBE6EXT.OLB) >> >> And then this code will list all the referenced ms access projects >> >> Dim prj As VBProject >> For Each prj In VBE.VBProjects >> Debug.Print prj.Name >> Next prj >> >> and for each project you can use your code: >> >> For Each prj In VBE.VBProjects >> For Each vbComp In prj.VBE.VBProjects(1).VBComponents >> .... >> >> If you wanted to list/process modules in any (not only referenced) ms > access >> database this way (i.e. using VBIDE) then there are at least two ways to > do >> that: >> >> - write COM add-in; >> - start another MS Access instance from your main MS Access instance, open >> external mdb in it (prevent AutoExec macro to run or start-up forms to > open) >> and use Automation + VBIDE... >> >> -- >> Shamil >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte >> Sent: Friday, March 28, 2008 8:53 PM >> To: Access Developers discussion and problem solving >> Subject: [AccessD] VBE Experience anyone? >> >> >> Hello All, >> >> I am using the code below to loop through the Modules and find stuff. It >> always points to the current db. Is there any way to point this to a >> different database...if so anyone know the syntax? >> >> Thanks Again, >> >> Mark A. Matte >> >> *************** >> For Each vbComp In VBE.VBProjects(1).VBComponents With vbComp >> StartLine = 1 StartColumn = 1 EndLine = >> vbComp.CodeModule.CountOfLines EndColumn = 60 >> strCode = .CodeModule.Lines(1, .CodeModule.CountOfLines) >> ************* >> _________________________________________________________________ >> Test your Star IQ >> http://club.live.com/red_carpet_reveal.aspx?icid=redcarpet_HMTAGMAR >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com > > _________________________________________________________________ > In a rush? Get real-time answers with Windows Live Messenger. > http://www.windowslive.com/messenger/overview.html?ocid=TXT_TAGLM_WL_Refresh > _realtime_042008 > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com _________________________________________________________________ Test your Star IQ http://club.live.com/red_carpet_reveal.aspx?icid=redcarpet_HMTAGMAR From markamatte at hotmail.com Sat Mar 29 19:58:58 2008 From: markamatte at hotmail.com (Mark A Matte) Date: Sun, 30 Mar 2008 00:58:58 +0000 Subject: [AccessD] Compare Text and Memo fields In-Reply-To: <47ED7587.3050409@nanaimo.ark.com> References: <47D68043.7050404@nanaimo.ark.com> <47ED7587.3050409@nanaimo.ark.com> Message-ID: Tony, How does it show in a form the differences? Different font in a text box?? Thanks, Mark A. Matte > Date: Fri, 28 Mar 2008 14:47:35 -0800 > From: iggy at nanaimo.ark.com > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] Compare Text and Memo fields > > Hey All > I have done it and it works perfectly. > >> Hey All >> I have an application that imports ongoing data from EXCEL (each time >> its imported it gets put in a temp table). >> Before I attempt to do this. >> Is there a function available that allows one to compare memo and text >> fields (between the temp table and the access table) and pull out the >> difference in the text? >> I want to be able to indicate to a user if the information has been >> changed or updated, and then show them in a form where within the >> text, the change has occurred. >> >> Thanks >> > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com _________________________________________________________________ How well do you know your celebrity gossip? http://originals.msn.com/thebigdebate?ocid=T002MSN03N0707A From wdhindman at dejpolsystems.com Sat Mar 29 23:54:19 2008 From: wdhindman at dejpolsystems.com (William Hindman) Date: Sun, 30 Mar 2008 00:54:19 -0400 Subject: [AccessD] Automating Acrobat References: <004e01c89027$03950040$0301a8c0@HAL9005><0JYF0013J2RAZU91@vms046.mailsrvcs.net><00c101c89087$ec6780d0$0301a8c0@HAL9005><003901c890e9$fa1bba40$fe786c4c@jisshowsbs.local><001a01c890ed$f43aeb10$0301a8c0@HAL9005><006d01c890f0$9e278500$fe786c4c@jisshowsbs.local><000001c89104$9a8fa120$0301a8c0@HAL9005><00d401c89109$0bbe4050$fe786c4c@jisshowsbs.local><005401c8912b$590db170$0301a8c0@HAL9005><014901c8915b$2bcf5a80$fe786c4c@jisshowsbs.local> <000101c891b1$ede5d300$0201a8c0@M90> Message-ID: <012701c89222$1db4f140$fe786c4c@jisshowsbs.local> ...not when I'm using an Access be :) William ----- Original Message ----- From: "jwcolby" To: "'Access Developers discussion and problem solving'" Sent: Saturday, March 29, 2008 11:31 AM Subject: Re: [AccessD] Automating Acrobat > >>I may have to resort to vb.net but > > 8~0 > > Tell me you didn't say that. I thought you were a C# kinda guy! > > 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: Saturday, March 29, 2008 1:10 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Automating Acrobat > > ...would that I could but this is an asp.net2 app using an mdb be ...so > vba > is out of the question ...I may have to resort to vb.net but I thought I'd > give it a shot here first :) > > William > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From wdhindman at dejpolsystems.com Sat Mar 29 23:59:40 2008 From: wdhindman at dejpolsystems.com (William Hindman) Date: Sun, 30 Mar 2008 00:59:40 -0400 Subject: [AccessD] Strange behaviour References: <4dd71a0c0803290958i72264e04pee3473700cb6ac12@mail.gmail.com> Message-ID: <013b01c89222$dcfd99d0$fe786c4c@jisshowsbs.local> ...microsoft updates ...happens all too frequently lately ...they don't appear to be testing them as well as they used to :( William ----- Original Message ----- From: "Doug Steele" To: Sent: Saturday, March 29, 2008 12:58 PM Subject: [AccessD] Strange behaviour > Not me, Access. > > I just had a client report an error in a database. When I investigated, I > discovered that the Unload event of a form was trying to update fields in > a > record after the record had been deleted from the underlying table (in > code). Fine, easily fixed. > > The strange thing is that the delete option is used regularly, nobody has > ever encountered an error (including me while testing), BUT the deletion > and > unload code has been unchanged for at least a year. > > Any comments? > > Doug Steele > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From wdhindman at dejpolsystems.com Sun Mar 30 00:07:37 2008 From: wdhindman at dejpolsystems.com (William Hindman) Date: Sun, 30 Mar 2008 01:07:37 -0400 Subject: [AccessD] VM for different versions of Access References: <47EBC348.4000101@torchlake.com> <4dd71a0c0803271638x3d17edc6j2e778ddbcc35432f@mail.gmail.com><000901c89070$c2b11060$fe786c4c@jisshowsbs.local><000301c890d0$b2724650$0300a8c0@danwaters><4dd71a0c0803282039nd0dafffsc49593843ebfffe2@mail.gmail.com><47EE45CC.3030105@torchlake.com> <000201c891b1$f385cbd0$0201a8c0@M90> <47EE7F95.2090206@torchlake.com> Message-ID: <013f01c89223$f989afc0$fe786c4c@jisshowsbs.local> Tina ...I've been compelled to wander my way into the world of asp.net, vb.net, and yes ...C#.net (hangs head) ...and I've yet to find any source anywhere that compares to AccessD ...and I can't begin to count the hours wasted looking for such. ...this is truly a unique place ...and its the people here that make it that way ...its going on 10 years now since its rebirth from the original ...and while people come and go, the place still feels and acts like a family rather than just another geek resource. William ----- Original Message ----- From: "Tina Norris Fields" To: "Access Developers discussion and problem solving" Sent: Saturday, March 29, 2008 1:42 PM Subject: Re: [AccessD] VM for different versions of Access > John, > > What a great friend you are! I was raised in a family where perfection > was touted as the standard. As an adult I've learned to recognize the > absurdity of that, but some of the emotional garbage lingers, lurking in > the back alleys and shadows, waiting to jump out at me when I run into > something I don't know. > > Around here, I'm expected to be the expert - the "alpha geek" of all > things computer. Well, you and I both know no one can know everything > about computer "stuff." For a few years I kept current on the office > productivity suites of Microsoft, WordPerfect-Novel-Corel, and Lotus - > sheeeeeeesh!!!! I was always chasing my tail during that era! > > Now, I realize I will know some things and not some others - so I turn > to this group. Someone in this group always knows what I need to > learn. Others have said it well, but I add my statement of profound > gratitude to the members of this list, people from everywhere at every > level of technical expertise, and in just about everything. What a > blessing this team has been to me - and continues to be! > > I read the same information you did, back in the 70s. It's just amazing! > > You definitely made my day, > Tina > > jwcolby wrote: >>> My past week's experience starting to learn about Linux has me very >>> >> sensitive to the several "Swiss Cheese holes" in my knowledge. >> >> Get over it. ;-) NOBODY know everything and most of us know very little. >> >> Back in the 70s I read that at in the 1500s a "genius" could know >> everything >> understood about the world, all science, math, medicine etc. By 1970 a >> Genius could not even know everything known about a single branch of >> science >> - math, physics, chemistry etc. Man's knowledge of the world was (at >> that >> time) roughly doubling every 4 years. >> >> Today it would be impossible to know everything there is to know about >> programming languages or databases. That is why I laugh so hard when I >> see >> want adds with "must be experienced in Windows, Office, SQL Server, C#, >> Java, HTML, etc etc let's throw in every technical term we know..." >> >> "Experienced in" and "useful" are two entirely different things. >> >> I strive to know one or two things very well and I can then look like an >> expert somewhere in the world. I haven't gotten there yet but I still >> strive. >> >> 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 Tina Norris >> Fields >> Sent: Saturday, March 29, 2008 9:36 AM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] VM for different versions of Access >> >> Doug, William, et al, >> >> How does one decide which of the files to download? I'm using IE7, so >> that >> eliminates two of the files, but what would determine my choice among >> IE7_VPC.EXE, IE7_VIS1.exe, IE7_VIS2.rar, and IE7_VIS3.rar? >> >> My guess is IE7_VPC.EXE, simply because I see "vpc" in this name, and I >> have >> no idea what "vis1," "vis2," and "vis3" are. Have I guessed correctly? >> >> Okay, if I'm just dumb, I'm just dumb - but it would be nice to really >> know >> what I'm looking at and what I'm choosing when I download something. My >> past week's experience starting to learn about Linux has me very >> sensitive >> to the several "Swiss Cheese holes" in my knowledge. >> I am going to gamble on my guess and go download IE7_VPC.EXE. >> >> Thanks, >> Tina >> >> > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From max.wanadoo at gmail.com Sun Mar 30 04:07:48 2008 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Sun, 30 Mar 2008 10:07:48 +0100 Subject: [AccessD] VM for different versions of Access In-Reply-To: References: Message-ID: <000301c89245$87608eb0$8119fea9@LTVM> Does anybody know if there is any essential difference between Virtual PC (which I believe is MS offering) and VMWare (which I believe is not MS)? Thanks Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Saturday, March 29, 2008 4:41 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] VM for different versions of Access Hi Tina They seem to have forgotten the instructions as found similar here for VS TS 2008: http://www.microsoft.com/downloads/details.aspx?FamilyID=c7a809d8-8c9f-439f- 8147-948bc6957812&DisplayLang=en#Instructions > The first part is a self-extracting EXE and will prompt for the other parts. .. So it is the exe for a start. /gustav >>> tinanfields at torchlake.com 29-03-2008 14:36 >>> Doug, William, et al, How does one decide which of the files to download? I'm using IE7, so that eliminates two of the files, but what would determine my choice among IE7_VPC.EXE, IE7_VIS1.exe, IE7_VIS2.rar, and IE7_VIS3.rar? My guess is IE7_VPC.EXE, simply because I see "vpc" in this name, and I have no idea what "vis1," "vis2," and "vis3" are. Have I guessed correctly? Okay, if I'm just dumb, I'm just dumb - but it would be nice to really know what I'm looking at and what I'm choosing when I download something. My past week's experience starting to learn about Linux has me very sensitive to the several "Swiss Cheese holes" in my knowledge. I am going to gamble on my guess and go download IE7_VPC.EXE. Thanks, Tina Doug Steele wrote: > Google is our friend: > > http://www.microsoft.com/downloads/details.aspx?FamilyId=21EABB90-958F > -4B64-B5F1-73D0A413C8EF&displaylang=en > > Doug Steele > > On Fri, Mar 28, 2008 at 5:38 AM, Dan Waters wrote: > > >> William - could you post a link for this? >> >> Thanks! >> Dan -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Darryl.Collins at coles.com.au Sun Mar 30 05:14:19 2008 From: Darryl.Collins at coles.com.au (Darryl Collins) Date: Sun, 30 Mar 2008 21:14:19 +1100 Subject: [AccessD] Some Advice on Web Front end and ? backend Message-ID: <49DFE57FB126044B8A8B934E7AEA09ED0B270237@WPEXCH05.colesmyer.ad.cmltd.net.au> Hi folks, My partner runs a business and wants me to whip up a database for her client data etc. (heh -dead easy right!). I originally put one together in Excel several years back which did the job, but hey, it's Excel and now the business is growing it really need to move to a better platform. I did a rebuild in Access late last year to see how it would all work, but I really am not sure Access is the way to go given her requirements - I just didn't know any better at the time, and I wanted to learn more about Access as well. Given she has 3 locations (clinic 1, clinic 2 and home) plus a numerous staff who work in a similar way I was thinking that using her website would be a good place to put the backend so it would easily accessable to all authorised people. I guess ideally she needs a server and WAN, but that isn't going to be happening soon. I was thinking something like a secure area via her URL that the staff can log into online and then access the forms, update the data etc would be pretty darn handy for her. Would SQL Express (or similar) at the back (and housed on the server) and maybe ASP.Net at the front for all the forms and GUI stuff be the best/correct approach though? I did build her current website, but I used frontpage (urrrgh) & HTML and it is all very 1994 in style and functionality!! (that said, both her and her clients like it as it is simple and easy to get around - go figure). My skills ASP.net and SQL Server almost zero at present - although the MS site provides some great training resources which I have skimmed over. If I take this path it is going to be a fun learning exercise I suspect. I have downloaded both ASP.net and SQL Express from MSoft, but haven't really had time to play around too much (oh - did i mention I have a 6 month old kid??!! hmmm...). Anyway, If you guys and gals have any suggestions, war stories, gotachas or general advice I would love to hear from you before I get too far down any one path. Definately open to ideas on this one. her current website is http://www.sprouttherapyservices.com.au/ for those who want a trip back in style time! ;) Many thanks Darryl. This email and any attachments may contain privileged and confidential information and are intended for the named addressee only. If you have received this e-mail in error, please notify the sender and delete this e-mail immediately. Any confidentiality, privilege or copyright is not waived or lost because this e-mail has been sent to you in error. It is your responsibility to check this e-mail and any attachments for viruses. No warranty is made that this material is free from computer virus or any other defect or error. Any loss/damage incurred by using this material is not the sender's responsibility. The sender's entire liability will be limited to resupplying the material. From Darryl.Collins at coles.com.au Sun Mar 30 05:18:02 2008 From: Darryl.Collins at coles.com.au (Darryl Collins) Date: Sun, 30 Mar 2008 21:18:02 +1100 Subject: [AccessD] VM for different versions of Access Message-ID: <49DFE57FB126044B8A8B934E7AEA09ED09FD70E5@WPEXCH05.colesmyer.ad.cmltd.net.au> Max, there are probably numerous others, but this is one I have read about recently. "Microsoft's Virtual PC does not support access to USB devices from within the VM. VMware Player does not have this problem." hth Darryl. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Max Wanadoo Sent: Sunday, 30 March 2008 8:08 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] VM for different versions of Access Does anybody know if there is any essential difference between Virtual PC (which I believe is MS offering) and VMWare (which I believe is not MS)? Thanks Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Saturday, March 29, 2008 4:41 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] VM for different versions of Access Hi Tina They seem to have forgotten the instructions as found similar here for VS TS 2008: http://www.microsoft.com/downloads/details.aspx?FamilyID=c7a809d8-8c9f-439f- 8147-948bc6957812&DisplayLang=en#Instructions > The first part is a self-extracting EXE and will prompt for the other parts. .. So it is the exe for a start. /gustav >>> tinanfields at torchlake.com 29-03-2008 14:36 >>> Doug, William, et al, How does one decide which of the files to download? I'm using IE7, so that eliminates two of the files, but what would determine my choice among IE7_VPC.EXE, IE7_VIS1.exe, IE7_VIS2.rar, and IE7_VIS3.rar? My guess is IE7_VPC.EXE, simply because I see "vpc" in this name, and I have no idea what "vis1," "vis2," and "vis3" are. Have I guessed correctly? Okay, if I'm just dumb, I'm just dumb - but it would be nice to really know what I'm looking at and what I'm choosing when I download something. My past week's experience starting to learn about Linux has me very sensitive to the several "Swiss Cheese holes" in my knowledge. I am going to gamble on my guess and go download IE7_VPC.EXE. Thanks, Tina Doug Steele wrote: > Google is our friend: > > http://www.microsoft.com/downloads/details.aspx?FamilyId=21EABB90-958F > -4B64-B5F1-73D0A413C8EF&displaylang=en > > Doug Steele > > On Fri, Mar 28, 2008 at 5:38 AM, Dan Waters wrote: > > >> William - could you post a link for this? >> >> Thanks! >> Dan -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This email and any attachments may contain privileged and confidential information and are intended for the named addressee only. If you have received this e-mail in error, please notify the sender and delete this e-mail immediately. Any confidentiality, privilege or copyright is not waived or lost because this e-mail has been sent to you in error. It is your responsibility to check this e-mail and any attachments for viruses. No warranty is made that this material is free from computer virus or any other defect or error. Any loss/damage incurred by using this material is not the sender's responsibility. The sender's entire liability will be limited to resupplying the material. From max.wanadoo at gmail.com Sun Mar 30 05:43:45 2008 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Sun, 30 Mar 2008 11:43:45 +0100 Subject: [AccessD] VM for different versions of Access In-Reply-To: <49DFE57FB126044B8A8B934E7AEA09ED09FD70E5@WPEXCH05.colesmyer.ad.cmltd.net.au> References: <49DFE57FB126044B8A8B934E7AEA09ED09FD70E5@WPEXCH05.colesmyer.ad.cmltd.net.au> Message-ID: <000401c89252$ee741e20$8119fea9@LTVM> Aha! That's important. Thanks Darryl Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darryl Collins Sent: Sunday, March 30, 2008 11:18 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] VM for different versions of Access Max, there are probably numerous others, but this is one I have read about recently. "Microsoft's Virtual PC does not support access to USB devices from within the VM. VMware Player does not have this problem." hth Darryl. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Max Wanadoo Sent: Sunday, 30 March 2008 8:08 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] VM for different versions of Access Does anybody know if there is any essential difference between Virtual PC (which I believe is MS offering) and VMWare (which I believe is not MS)? Thanks Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Saturday, March 29, 2008 4:41 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] VM for different versions of Access Hi Tina They seem to have forgotten the instructions as found similar here for VS TS 2008: http://www.microsoft.com/downloads/details.aspx?FamilyID=c7a809d8-8c9f-439f- 8147-948bc6957812&DisplayLang=en#Instructions > The first part is a self-extracting EXE and will prompt for the other parts. .. So it is the exe for a start. /gustav >>> tinanfields at torchlake.com 29-03-2008 14:36 >>> Doug, William, et al, How does one decide which of the files to download? I'm using IE7, so that eliminates two of the files, but what would determine my choice among IE7_VPC.EXE, IE7_VIS1.exe, IE7_VIS2.rar, and IE7_VIS3.rar? My guess is IE7_VPC.EXE, simply because I see "vpc" in this name, and I have no idea what "vis1," "vis2," and "vis3" are. Have I guessed correctly? Okay, if I'm just dumb, I'm just dumb - but it would be nice to really know what I'm looking at and what I'm choosing when I download something. My past week's experience starting to learn about Linux has me very sensitive to the several "Swiss Cheese holes" in my knowledge. I am going to gamble on my guess and go download IE7_VPC.EXE. Thanks, Tina Doug Steele wrote: > Google is our friend: > > http://www.microsoft.com/downloads/details.aspx?FamilyId=21EABB90-958F > -4B64-B5F1-73D0A413C8EF&displaylang=en > > Doug Steele > > On Fri, Mar 28, 2008 at 5:38 AM, Dan Waters wrote: > > >> William - could you post a link for this? >> >> Thanks! >> Dan -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This email and any attachments may contain privileged and confidential information and are intended for the named addressee only. If you have received this e-mail in error, please notify the sender and delete this e-mail immediately. Any confidentiality, privilege or copyright is not waived or lost because this e-mail has been sent to you in error. It is your responsibility to check this e-mail and any attachments for viruses. No warranty is made that this material is free from computer virus or any other defect or error. Any loss/damage incurred by using this material is not the sender's responsibility. The sender's entire liability will be limited to resupplying the material. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From tinanfields at torchlake.com Sun Mar 30 07:10:50 2008 From: tinanfields at torchlake.com (Tina Norris Fields) Date: Sun, 30 Mar 2008 08:10:50 -0400 Subject: [AccessD] VM for different versions of Access In-Reply-To: <013f01c89223$f989afc0$fe786c4c@jisshowsbs.local> References: <47EBC348.4000101@torchlake.com> <4dd71a0c0803271638x3d17edc6j2e778ddbcc35432f@mail.gmail.com><000901c89070$c2b11060$fe786c4c@jisshowsbs.local><000301c890d0$b2724650$0300a8c0@danwaters><4dd71a0c0803282039nd0dafffsc49593843ebfffe2@mail.gmail.com><47EE45CC.3030105@torchlake.com> <000201c891b1$f385cbd0$0201a8c0@M90> <47EE7F95.2090206@torchlake.com> <013f01c89223$f989afc0$fe786c4c@jisshowsbs.local> Message-ID: <47EF834A.6030108@torchlake.com> Amen William Hindman wrote: > Tina > > ...I've been compelled to wander my way into the world of asp.net, vb.net, > and yes ...C#.net (hangs head) ...and I've yet to find any source anywhere > that compares to AccessD ...and I can't begin to count the hours wasted > looking for such. > > ...this is truly a unique place ...and its the people here that make it that > way ...its going on 10 years now since its rebirth from the original ...and > while people come and go, the place still feels and acts like a family > rather than just another geek resource. > > William > > ----- Original Message ----- > From: "Tina Norris Fields" > To: "Access Developers discussion and problem solving" > > Sent: Saturday, March 29, 2008 1:42 PM > Subject: Re: [AccessD] VM for different versions of Access > > > >> John, >> >> What a great friend you are! I was raised in a family where perfection >> was touted as the standard. As an adult I've learned to recognize the >> absurdity of that, but some of the emotional garbage lingers, lurking in >> the back alleys and shadows, waiting to jump out at me when I run into >> something I don't know. >> >> Around here, I'm expected to be the expert - the "alpha geek" of all >> things computer. Well, you and I both know no one can know everything >> about computer "stuff." For a few years I kept current on the office >> productivity suites of Microsoft, WordPerfect-Novel-Corel, and Lotus - >> sheeeeeeesh!!!! I was always chasing my tail during that era! >> >> Now, I realize I will know some things and not some others - so I turn >> to this group. Someone in this group always knows what I need to >> learn. Others have said it well, but I add my statement of profound >> gratitude to the members of this list, people from everywhere at every >> level of technical expertise, and in just about everything. What a >> blessing this team has been to me - and continues to be! >> >> I read the same information you did, back in the 70s. It's just amazing! >> >> You definitely made my day, >> Tina >> >> jwcolby wrote: >> >>>> My past week's experience starting to learn about Linux has me very >>>> >>>> >>> sensitive to the several "Swiss Cheese holes" in my knowledge. >>> >>> Get over it. ;-) NOBODY know everything and most of us know very little. >>> >>> Back in the 70s I read that at in the 1500s a "genius" could know >>> everything >>> understood about the world, all science, math, medicine etc. By 1970 a >>> Genius could not even know everything known about a single branch of >>> science >>> - math, physics, chemistry etc. Man's knowledge of the world was (at >>> that >>> time) roughly doubling every 4 years. >>> >>> Today it would be impossible to know everything there is to know about >>> programming languages or databases. That is why I laugh so hard when I >>> see >>> want adds with "must be experienced in Windows, Office, SQL Server, C#, >>> Java, HTML, etc etc let's throw in every technical term we know..." >>> >>> "Experienced in" and "useful" are two entirely different things. >>> >>> I strive to know one or two things very well and I can then look like an >>> expert somewhere in the world. I haven't gotten there yet but I still >>> strive. >>> >>> 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 Tina Norris >>> Fields >>> Sent: Saturday, March 29, 2008 9:36 AM >>> To: Access Developers discussion and problem solving >>> Subject: Re: [AccessD] VM for different versions of Access >>> >>> Doug, William, et al, >>> >>> How does one decide which of the files to download? I'm using IE7, so >>> that >>> eliminates two of the files, but what would determine my choice among >>> IE7_VPC.EXE, IE7_VIS1.exe, IE7_VIS2.rar, and IE7_VIS3.rar? >>> >>> My guess is IE7_VPC.EXE, simply because I see "vpc" in this name, and I >>> have >>> no idea what "vis1," "vis2," and "vis3" are. Have I guessed correctly? >>> >>> Okay, if I'm just dumb, I'm just dumb - but it would be nice to really >>> know >>> what I'm looking at and what I'm choosing when I download something. My >>> past week's experience starting to learn about Linux has me very >>> sensitive >>> to the several "Swiss Cheese holes" in my knowledge. >>> I am going to gamble on my guess and go download IE7_VPC.EXE. >>> >>> Thanks, >>> Tina >>> >>> >>> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> > > > > From iggy at nanaimo.ark.com Sun Mar 30 07:41:15 2008 From: iggy at nanaimo.ark.com (Tony Septav) Date: Sun, 30 Mar 2008 04:41:15 -0800 Subject: [AccessD] Compare Text and Memo fields In-Reply-To: References: <47D68043.7050404@nanaimo.ark.com> <47ED7587.3050409@nanaimo.ark.com> Message-ID: <47EF8A6B.6040505@nanaimo.ark.com> Hey Mark For simple text or single paragraphs, it highlights the new or updated text. For memo fields with many paragraphs it highlights new or changed paragraphs. For multiple changes (due to limitations with SelectText) I have a button that states the number of changes and each time the user clicks. it loops and highlights the next update or addtion. Two text boxes on the form, one with the new data and one with the old data, the program highlights changes on either side. >Tony, > >How does it show in a form the differences? Different font in a text box?? > >Thanks, > >Mark A. Matte > > > > >>Date: Fri, 28 Mar 2008 14:47:35 -0800 >>From: iggy at nanaimo.ark.com >>To: accessd at databaseadvisors.com >>Subject: Re: [AccessD] Compare Text and Memo fields >> >>Hey All >>I have done it and it works perfectly. >> >> >> >>>Hey All >>>I have an application that imports ongoing data from EXCEL (each time >>>its imported it gets put in a temp table). >>>Before I attempt to do this. >>>Is there a function available that allows one to compare memo and text >>>fields (between the temp table and the access table) and pull out the >>>difference in the text? >>>I want to be able to indicate to a user if the information has been >>>changed or updated, and then show them in a form where within the >>>text, the change has occurred. >>> >>>Thanks >>> >>> >>> >>-- >>AccessD mailing list >>AccessD at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/accessd >>Website: http://www.databaseadvisors.com >> >> > >_________________________________________________________________ >How well do you know your celebrity gossip? >http://originals.msn.com/thebigdebate?ocid=T002MSN03N0707A > > From jwcolby at colbyconsulting.com Sun Mar 30 07:55:35 2008 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sun, 30 Mar 2008 08:55:35 -0400 Subject: [AccessD] VM for different versions of Access In-Reply-To: <000401c89252$ee741e20$8119fea9@LTVM> References: <49DFE57FB126044B8A8B934E7AEA09ED09FD70E5@WPEXCH05.colesmyer.ad.cmltd.net.au> <000401c89252$ee741e20$8119fea9@LTVM> Message-ID: <000f01c89265$593c37d0$0201a8c0@M90> Another issue is that the max size of the virtual drives that you can assign to Microsoft's VM is 128 Gigs. Not a restriction for many but it is for me. VMWare also emulates IDE and SCSI drives and for VMWare, the SCSI drives are noticeably faster. In general though, it is six of one, half dozen of the other. 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 Max Wanadoo Sent: Sunday, March 30, 2008 6:44 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] VM for different versions of Access Aha! That's important. Thanks Darryl Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darryl Collins Sent: Sunday, March 30, 2008 11:18 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] VM for different versions of Access Max, there are probably numerous others, but this is one I have read about recently. "Microsoft's Virtual PC does not support access to USB devices from within the VM. VMware Player does not have this problem." hth Darryl. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Max Wanadoo Sent: Sunday, 30 March 2008 8:08 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] VM for different versions of Access Does anybody know if there is any essential difference between Virtual PC (which I believe is MS offering) and VMWare (which I believe is not MS)? Thanks Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Saturday, March 29, 2008 4:41 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] VM for different versions of Access Hi Tina They seem to have forgotten the instructions as found similar here for VS TS 2008: http://www.microsoft.com/downloads/details.aspx?FamilyID=c7a809d8-8c9f-439f- 8147-948bc6957812&DisplayLang=en#Instructions > The first part is a self-extracting EXE and will prompt for the other parts. .. So it is the exe for a start. /gustav >>> tinanfields at torchlake.com 29-03-2008 14:36 >>> Doug, William, et al, How does one decide which of the files to download? I'm using IE7, so that eliminates two of the files, but what would determine my choice among IE7_VPC.EXE, IE7_VIS1.exe, IE7_VIS2.rar, and IE7_VIS3.rar? My guess is IE7_VPC.EXE, simply because I see "vpc" in this name, and I have no idea what "vis1," "vis2," and "vis3" are. Have I guessed correctly? Okay, if I'm just dumb, I'm just dumb - but it would be nice to really know what I'm looking at and what I'm choosing when I download something. My past week's experience starting to learn about Linux has me very sensitive to the several "Swiss Cheese holes" in my knowledge. I am going to gamble on my guess and go download IE7_VPC.EXE. Thanks, Tina Doug Steele wrote: > Google is our friend: > > http://www.microsoft.com/downloads/details.aspx?FamilyId=21EABB90-958F > -4B64-B5F1-73D0A413C8EF&displaylang=en > > Doug Steele > > On Fri, Mar 28, 2008 at 5:38 AM, Dan Waters wrote: > > >> William - could you post a link for this? >> >> Thanks! >> Dan -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This email and any attachments may contain privileged and confidential information and are intended for the named addressee only. If you have received this e-mail in error, please notify the sender and delete this e-mail immediately. Any confidentiality, privilege or copyright is not waived or lost because this e-mail has been sent to you in error. It is your responsibility to check this e-mail and any attachments for viruses. No warranty is made that this material is free from computer virus or any other defect or error. Any loss/damage incurred by using this material is not the sender's responsibility. The sender's entire liability will be limited to resupplying the material. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Mar 30 09:30:06 2008 From: wdhindman at dejpolsystems.com (William Hindman) Date: Sun, 30 Mar 2008 10:30:06 -0400 Subject: [AccessD] VM for different versions of Access References: <49DFE57FB126044B8A8B934E7AEA09ED09FD70E5@WPEXCH05.colesmyer.ad.cmltd.net.au> Message-ID: <005401c89272$8d2a3620$fe786c4c@jisshowsbs.local> ...Microsoft Virtual PC running in the host operating system does recognize USB, so it will function whether the virtual hard disks are on an internal drive or your external USB drive. ...inside the VPC, Windows will not recognize any USB devices except mice, hard disks, and keyboards. ...its a difference but not a killer by any means ...and the difference for me is the pre-registered, free MS Windows vhd which will not, afaik, run under vmware William ----- Original Message ----- From: "Darryl Collins" To: "Access Developers discussion and problem solving" Sent: Sunday, March 30, 2008 6:18 AM Subject: Re: [AccessD] VM for different versions of Access > > Max, > > there are probably numerous others, but this is one I have read about > recently. > > "Microsoft's Virtual PC does not support access to USB devices from within > the VM. VMware Player does not have this problem." > > hth > > Darryl. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Max Wanadoo > Sent: Sunday, 30 March 2008 8:08 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] VM for different versions of Access > > > Does anybody know if there is any essential difference between Virtual PC > (which I believe is MS offering) and VMWare (which I believe is not MS)? > Thanks > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock > Sent: Saturday, March 29, 2008 4:41 PM > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] VM for different versions of Access > > Hi Tina > > They seem to have forgotten the instructions as found similar here for VS > TS > 2008: > http://www.microsoft.com/downloads/details.aspx?FamilyID=c7a809d8-8c9f-439f- > 8147-948bc6957812&DisplayLang=en#Instructions > >> The first part is a self-extracting EXE and will prompt for the other > parts. .. > > So it is the exe for a start. > > /gustav > >>>> tinanfields at torchlake.com 29-03-2008 14:36 >>> > Doug, William, et al, > > How does one decide which of the files to download? I'm using IE7, so > that > eliminates two of the files, but what would determine my choice among > IE7_VPC.EXE, IE7_VIS1.exe, IE7_VIS2.rar, and IE7_VIS3.rar? > > My guess is IE7_VPC.EXE, simply because I see "vpc" in this name, and I > have > no idea what "vis1," "vis2," and "vis3" are. Have I guessed correctly? > > Okay, if I'm just dumb, I'm just dumb - but it would be nice to really > know > what I'm looking at and what I'm choosing when I download something. My > past week's experience starting to learn about Linux has me very sensitive > to the several "Swiss Cheese holes" in my knowledge. > I am going to gamble on my guess and go download IE7_VPC.EXE. > > Thanks, > Tina > > Doug Steele wrote: >> Google is our friend: >> >> http://www.microsoft.com/downloads/details.aspx?FamilyId=21EABB90-958F >> -4B64-B5F1-73D0A413C8EF&displaylang=en >> >> Doug Steele >> >> On Fri, Mar 28, 2008 at 5:38 AM, Dan Waters > wrote: >> >> >>> William - could you post a link for this? >>> >>> Thanks! >>> Dan > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > This email and any attachments may contain privileged and confidential > information and are intended for the named addressee only. If you have > received this e-mail in error, please notify the sender and delete this > e-mail immediately. Any confidentiality, privilege or copyright is not > waived or lost because this e-mail has been sent to you in error. It is > your responsibility to check this e-mail and any attachments for viruses. > No warranty is made that this material is free from computer virus or any > other defect or error. Any loss/damage incurred by using this material is > not the sender's responsibility. The sender's entire liability will be > limited to resupplying the material. > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From wdhindman at dejpolsystems.com Sun Mar 30 09:44:10 2008 From: wdhindman at dejpolsystems.com (William Hindman) Date: Sun, 30 Mar 2008 10:44:10 -0400 Subject: [AccessD] Some Advice on Web Front end and ? backend References: <49DFE57FB126044B8A8B934E7AEA09ED0B270237@WPEXCH05.colesmyer.ad.cmltd.net.au> Message-ID: <005801c89274$8416af80$fe786c4c@jisshowsbs.local> ...you can use an Access be on a hosted web server with Asp.Net2 as your fe ...if you are not comfortable with SQL Server but are with Access, that would be the way I'd go ...if you go with SQL Express, AccessD members Susan Harkins/Martin Reid wrote an Access to SQL Server book a while back that I used successfully to convert. ...despite all the Access disparagement you find on the web, my experience is that it is very serviceable, reliable, and fast for as many as 2000+ hits a day ...and probably more ..Drew claims higher numbers ...in more than a year of using an mdb as a web site be, I've not had a single problem with it. ...as for Asp.Net2 ...MS offers Visual Studio Web Developer Express 8 for free and there is terrific support ...I've not run into anything I need that it can't support as yet except compiling dlls ...and I really don't need that ...there are a LOT of free training videos that will walk you through the ide and get you familiar with the terminology and environment ...I've had little problem moving an Access fe to the web in that manner. ...in fact VSWDE has quickly become my preferred development environment ...hth. William ----- Original Message ----- From: "Darryl Collins" To: "Access Developers discussion and problem solving" Sent: Sunday, March 30, 2008 6:14 AM Subject: [AccessD] Some Advice on Web Front end and ? backend > > Hi folks, > > My partner runs a business and wants me to whip up a database for her > client data etc. (heh -dead easy right!). > > I originally put one together in Excel several years back which did the > job, but hey, it's Excel and now the business is growing it really need to > move to a better platform. I did a rebuild in Access late last year to > see how it would all work, but I really am not sure Access is the way to > go given her requirements - I just didn't know any better at the time, and > I wanted to learn more about Access as well. > > Given she has 3 locations (clinic 1, clinic 2 and home) plus a numerous > staff who work in a similar way I was thinking that using her website > would be a good place to put the backend so it would easily accessable to > all authorised people. I guess ideally she needs a server and WAN, but > that isn't going to be happening soon. > > I was thinking something like a secure area via her URL that the staff can > log into online and then access the forms, update the data etc would be > pretty darn handy for her. > > Would SQL Express (or similar) at the back (and housed on the server) and > maybe ASP.Net at the front for all the forms and GUI stuff be the > best/correct approach though? > > I did build her current website, but I used frontpage (urrrgh) & HTML and > it is all very 1994 in style and functionality!! (that said, both her and > her clients like it as it is simple and easy to get around - go figure). > > My skills ASP.net and SQL Server almost zero at present - although the MS > site provides some great training resources which I have skimmed over. If > I take this path it is going to be a fun learning exercise I suspect. I > have downloaded both ASP.net and SQL Express from MSoft, but haven't > really had time to play around too much (oh - did i mention I have a 6 > month old kid??!! hmmm...). > > Anyway, If you guys and gals have any suggestions, war stories, gotachas > or general advice I would love to hear from you before I get too far down > any one path. Definately open to ideas on this one. > > her current website is http://www.sprouttherapyservices.com.au/ for those > who want a trip back in style time! ;) > > Many thanks > > Darryl. > > > > > > > This email and any attachments may contain privileged and confidential > information and are intended for the named addressee only. If you have > received this e-mail in error, please notify the sender and delete this > e-mail immediately. Any confidentiality, privilege or copyright is not > waived or lost because this e-mail has been sent to you in error. It is > your responsibility to check this e-mail and any attachments for viruses. > No warranty is made that this material is free from computer virus or any > other defect or error. Any loss/damage incurred by using this material is > not the sender's responsibility. The sender's entire liability will be > limited to resupplying the material. > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From ebarro at verizon.net Sun Mar 30 11:31:20 2008 From: ebarro at verizon.net (Eric Barro) Date: Sun, 30 Mar 2008 09:31:20 -0700 Subject: [AccessD] Some Advice on Web Front end and ? backend In-Reply-To: <49DFE57FB126044B8A8B934E7AEA09ED0B270237@WPEXCH05.colesmyer.ad.cmltd.net.au> Message-ID: <0JYJ00BSPY210ET3@vms040.mailsrvcs.net> Darryl, Try a hosted Sharepoint environment. 1. It comes with a pretty standardized web application user interface so you don't need to design a UI. 2. The back end is SQL server and on hosted solutions it comes as part of the deal. Which means that you don't need to deal with maintaining the back-end database. 3. It has integrated security with Windows Server 2003/2008 and should also come as part of the hosting package. Which means you don't have to deal with the OS configuration and maintenance. 4. You can customize the UI with the built-in web controls using drag and drop functionality via IE (doesn't work well with FireFox or Netscape...it is after all a Microsoft product!). You can add calendaring, discussion groups, document libraries, links, and they can even publish their Excel spreadsheets to a Sharepoint list and update that list from within Excel or the Sharepoint UI and have it synch up. 5. With the document libraries they can upload their docs (any type) to the Sharepoint site and share them that way. Eric -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darryl Collins Sent: Sunday, March 30, 2008 3:14 AM To: Access Developers discussion and problem solving Subject: [AccessD] Some Advice on Web Front end and ? backend Hi folks, My partner runs a business and wants me to whip up a database for her client data etc. (heh -dead easy right!). I originally put one together in Excel several years back which did the job, but hey, it's Excel and now the business is growing it really need to move to a better platform. I did a rebuild in Access late last year to see how it would all work, but I really am not sure Access is the way to go given her requirements - I just didn't know any better at the time, and I wanted to learn more about Access as well. Given she has 3 locations (clinic 1, clinic 2 and home) plus a numerous staff who work in a similar way I was thinking that using her website would be a good place to put the backend so it would easily accessable to all authorised people. I guess ideally she needs a server and WAN, but that isn't going to be happening soon. I was thinking something like a secure area via her URL that the staff can log into online and then access the forms, update the data etc would be pretty darn handy for her. Would SQL Express (or similar) at the back (and housed on the server) and maybe ASP.Net at the front for all the forms and GUI stuff be the best/correct approach though? I did build her current website, but I used frontpage (urrrgh) & HTML and it is all very 1994 in style and functionality!! (that said, both her and her clients like it as it is simple and easy to get around - go figure). My skills ASP.net and SQL Server almost zero at present - although the MS site provides some great training resources which I have skimmed over. If I take this path it is going to be a fun learning exercise I suspect. I have downloaded both ASP.net and SQL Express from MSoft, but haven't really had time to play around too much (oh - did i mention I have a 6 month old kid??!! hmmm...). Anyway, If you guys and gals have any suggestions, war stories, gotachas or general advice I would love to hear from you before I get too far down any one path. Definately open to ideas on this one. her current website is http://www.sprouttherapyservices.com.au/ for those who want a trip back in style time! ;) Many thanks Darryl. This email and any attachments may contain privileged and confidential information and are intended for the named addressee only. If you have received this e-mail in error, please notify the sender and delete this e-mail immediately. Any confidentiality, privilege or copyright is not waived or lost because this e-mail has been sent to you in error. It is your responsibility to check this e-mail and any attachments for viruses. No warranty is made that this material is free from computer virus or any other defect or error. Any loss/damage incurred by using this material is not the sender's responsibility. The sender's entire liability will be limited to resupplying the material. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at gmail.com Sun Mar 30 14:12:57 2008 From: ssharkins at gmail.com (Susan Harkins) Date: Sun, 30 Mar 2008 15:12:57 -0400 Subject: [AccessD] Some Advice on Web Front end and ? backend References: <0JYJ00BSPY210ET3@vms040.mailsrvcs.net> Message-ID: <002501c8929a$14aa1990$4b3a8343@SusanOne> It's just my opinion, but SharePoint is a laborious process and not something a small or even a growing business might want to invest in. If SharePoint isn't right for your client, check out Office Live Small Business. I'm just looking into it myself. Susan H. > Darryl, > > Try a hosted Sharepoint environment. > Given she has 3 locations (clinic 1, clinic 2 and home) plus a numerous > staff who work in a similar way I was thinking that using her website > would > be a good place to put the backend so it would easily accessable to all > authorised people. I guess ideally she needs a server and WAN, but that > isn't going to be happening soon. From ebarro at verizon.net Sun Mar 30 14:24:32 2008 From: ebarro at verizon.net (Eric Barro) Date: Sun, 30 Mar 2008 12:24:32 -0700 Subject: [AccessD] Some Advice on Web Front end and ? backend In-Reply-To: <002501c8929a$14aa1990$4b3a8343@SusanOne> Message-ID: <0JYK00BXE62Q0IK4@vms040.mailsrvcs.net> That's why I recommended a hosted solution instead of a local deployment Susan. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Sunday, March 30, 2008 12:13 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Some Advice on Web Front end and ? backend It's just my opinion, but SharePoint is a laborious process and not something a small or even a growing business might want to invest in. If SharePoint isn't right for your client, check out Office Live Small Business. I'm just looking into it myself. Susan H. > Darryl, > > Try a hosted Sharepoint environment. > Given she has 3 locations (clinic 1, clinic 2 and home) plus a > numerous staff who work in a similar way I was thinking that using her > website would be a good place to put the backend so it would easily > accessable to all authorised people. I guess ideally she needs a > server and WAN, but that isn't going to be happening soon. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at gmail.com Sun Mar 30 14:31:10 2008 From: ssharkins at gmail.com (Susan Harkins) Date: Sun, 30 Mar 2008 15:31:10 -0400 Subject: [AccessD] Some Advice on Web Front end and ? backend References: <0JYK00BXE62Q0IK4@vms040.mailsrvcs.net> Message-ID: <007701c8929c$9deae6b0$4b3a8343@SusanOne> I understand -- I wasn't objecting to anything you recommended, just adding an "in addition to." I don't know enough about either SP or OL, so whether a SP hosted solution would be more efficient that Office Live, I couldn't say -- just putting it out there. If I sounded pushy, I apologize -- certainly didn't mean to. Susan H. > That's why I recommended a hosted solution instead of a local deployment > Susan. > > > It's just my opinion, but SharePoint is a laborious process and not > something a small or even a growing business might want to invest in. If > SharePoint isn't right for your client, check out Office Live Small > Business. I'm just looking into it myself. > From dwaters at usinternet.com Sun Mar 30 14:38:01 2008 From: dwaters at usinternet.com (Dan Waters) Date: Sun, 30 Mar 2008 14:38:01 -0500 Subject: [AccessD] Some Advice on Web Front end and ? backend In-Reply-To: <002501c8929a$14aa1990$4b3a8343@SusanOne> References: <0JYJ00BSPY210ET3@vms040.mailsrvcs.net> <002501c8929a$14aa1990$4b3a8343@SusanOne> Message-ID: <000d01c8929d$90bb64a0$0300a8c0@danwaters> Hi Susan, Office Live Small Business is built on MS Windows Sharepoint Services 3.0 technology. More here: http://msdn2.microsoft.com/en-us/library/bb862416.aspx Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Sunday, March 30, 2008 2:13 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Some Advice on Web Front end and ? backend It's just my opinion, but SharePoint is a laborious process and not something a small or even a growing business might want to invest in. If SharePoint isn't right for your client, check out Office Live Small Business. I'm just looking into it myself. Susan H. > Darryl, > > Try a hosted Sharepoint environment. > Given she has 3 locations (clinic 1, clinic 2 and home) plus a numerous > staff who work in a similar way I was thinking that using her website > would > be a good place to put the backend so it would easily accessable to all > authorised people. I guess ideally she needs a server and WAN, but that > isn't going to be happening soon. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at gmail.com Sun Mar 30 14:44:57 2008 From: ssharkins at gmail.com (Susan Harkins) Date: Sun, 30 Mar 2008 15:44:57 -0400 Subject: [AccessD] Some Advice on Web Front end and ? backend References: <0JYJ00BSPY210ET3@vms040.mailsrvcs.net><002501c8929a$14aa1990$4b3a8343@SusanOne> <000d01c8929d$90bb64a0$0300a8c0@danwaters> Message-ID: <008201c8929e$8a9afbc0$4b3a8343@SusanOne> Oh yes, I know that. Susan H. > Hi Susan, > > Office Live Small Business is built on MS Windows Sharepoint Services 3.0 > technology. > > More here: http://msdn2.microsoft.com/en-us/library/bb862416.aspx From shamil at users.mns.ru Sun Mar 30 15:15:38 2008 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Mon, 31 Mar 2008 00:15:38 +0400 Subject: [AccessD] Some Advice on Web Front end and ? backend In-Reply-To: <49DFE57FB126044B8A8B934E7AEA09ED0B270237@WPEXCH05.colesmyer.ad.cmltd.net.au> Message-ID: <000f01c892a2$d22f94b0$6401a8c0@nant> <<< Would SQL Express (or similar) at the back (and housed on the server) and maybe ASP.Net at the front for all the forms and GUI stuff be the best/correct approach though? >>> Hi Darryl, SQL Express + ASP.NET 2.0 or higher - definitely correct approach IMO. Here are some stats from real live ASP.NET 2.0 app with MS SQL 2005 BE: - 688986 page hits in 75 days; - average - 9000+ page hits per day; - max case was 9 page hits per second; - min 112 page hits/day - max 44460 page hits/day - count of qty of page hits within 75 days: Page Hits/s Qty 9 2 8 13 7 40 6 194 5 655 4 3865 3 16123 2 111020 1 398276 - count of qty of page hits within day with total of 44460 page hits: Page Hits/s Qty 9 2 8 13 7 40 6 186 5 569 4 2270 3 4865 2 17929 1 20790 Resume: - ASP.NET 2.0 + MS SQL 2005 (Express) is a good choice. NB: the subject application is rather "heavyweight" - multi-layer one with multiple classlib DLLs etc. As far as I got your application is planned to be not that heavyweight - go for ASP.Net 2.0 or higher and SQL Express or MS Access BE.... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darryl Collins Sent: Sunday, March 30, 2008 2:14 PM To: Access Developers discussion and problem solving Subject: [AccessD] Some Advice on Web Front end and ? backend Hi folks, My partner runs a business and wants me to whip up a database for her client data etc. (heh -dead easy right!). I originally put one together in Excel several years back which did the job, but hey, it's Excel and now the business is growing it really need to move to a better platform. I did a rebuild in Access late last year to see how it would all work, but I really am not sure Access is the way to go given her requirements - I just didn't know any better at the time, and I wanted to learn more about Access as well. Given she has 3 locations (clinic 1, clinic 2 and home) plus a numerous staff who work in a similar way I was thinking that using her website would be a good place to put the backend so it would easily accessable to all authorised people. I guess ideally she needs a server and WAN, but that isn't going to be happening soon. I was thinking something like a secure area via her URL that the staff can log into online and then access the forms, update the data etc would be pretty darn handy for her. Would SQL Express (or similar) at the back (and housed on the server) and maybe ASP.Net at the front for all the forms and GUI stuff be the best/correct approach though? I did build her current website, but I used frontpage (urrrgh) & HTML and it is all very 1994 in style and functionality!! (that said, both her and her clients like it as it is simple and easy to get around - go figure). My skills ASP.net and SQL Server almost zero at present - although the MS site provides some great training resources which I have skimmed over. If I take this path it is going to be a fun learning exercise I suspect. I have downloaded both ASP.net and SQL Express from MSoft, but haven't really had time to play around too much (oh - did i mention I have a 6 month old kid??!! hmmm...). Anyway, If you guys and gals have any suggestions, war stories, gotachas or general advice I would love to hear from you before I get too far down any one path. Definately open to ideas on this one. her current website is http://www.sprouttherapyservices.com.au/ for those who want a trip back in style time! ;) Many thanks Darryl. This email and any attachments may contain privileged and confidential information and are intended for the named addressee only. If you have received this e-mail in error, please notify the sender and delete this e-mail immediately. Any confidentiality, privilege or copyright is not waived or lost because this e-mail has been sent to you in error. It is your responsibility to check this e-mail and any attachments for viruses. No warranty is made that this material is free from computer virus or any other defect or error. Any loss/damage incurred by using this material is not the sender's responsibility. The sender's entire liability will be limited to resupplying the material. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ebarro at verizon.net Sun Mar 30 16:50:05 2008 From: ebarro at verizon.net (Eric Barro) Date: Sun, 30 Mar 2008 14:50:05 -0700 Subject: [AccessD] Some Advice on Web Front end and ? backend In-Reply-To: <007701c8929c$9deae6b0$4b3a8343@SusanOne> Message-ID: <0JYK00BN6CTA0D15@vms040.mailsrvcs.net> No problem, it's good that you did point out the fact that SP involves a laborious process because it does (it involves a thorough knowledge of Windows Server 2003, Active Directory, SQL server 2000/20005, ASP.NET and javascript) if you wanted to deploy it on your own system. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Sunday, March 30, 2008 12:31 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Some Advice on Web Front end and ? backend I understand -- I wasn't objecting to anything you recommended, just adding an "in addition to." I don't know enough about either SP or OL, so whether a SP hosted solution would be more efficient that Office Live, I couldn't say -- just putting it out there. If I sounded pushy, I apologize -- certainly didn't mean to. Susan H. > That's why I recommended a hosted solution instead of a local > deployment Susan. > > > It's just my opinion, but SharePoint is a laborious process and not > something a small or even a growing business might want to invest in. > If SharePoint isn't right for your client, check out Office Live Small > Business. I'm just looking into it myself. > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From markamatte at hotmail.com Mon Mar 31 15:44:00 2008 From: markamatte at hotmail.com (Mark A Matte) Date: Mon, 31 Mar 2008 20:44:00 +0000 Subject: [AccessD] OT: Test...Not seeing any emails today In-Reply-To: <47EF8A6B.6040505@nanaimo.ark.com> References: <47D68043.7050404@nanaimo.ark.com> <47ED7587.3050409@nanaimo.ark.com> <47EF8A6B.6040505@nanaimo.ark.com> Message-ID: Hello Anyone? Not seeing any traffic. Are we down today? If it is just me...can someone reply to markamatte at hotmail.com Thanks, Mark A. Matte _________________________________________________________________ Windows Live Hotmail is giving away Zunes. http://www.windowslive-hotmail.com/ZuneADay/?locale=en-US&ocid=TXT_TAGLM_Mobile_Zune_V3 From jwcolby at colbyconsulting.com Mon Mar 31 15:49:41 2008 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 31 Mar 2008 16:49:41 -0400 Subject: [AccessD] OT: Test...Not seeing any emails today In-Reply-To: References: <47D68043.7050404@nanaimo.ark.com><47ED7587.3050409@nanaimo.ark.com> <47EF8A6B.6040505@nanaimo.ark.com> Message-ID: <006701c89370$be916900$0201a8c0@M90> Naw, it's just quiet. 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, March 31, 2008 4:44 PM To: Access Developers discussion and problem solving Subject: [AccessD] OT: Test...Not seeing any emails today Hello Anyone? Not seeing any traffic. Are we down today? If it is just me...can someone reply to markamatte at hotmail.com Thanks, Mark A. Matte _________________________________________________________________ Windows Live Hotmail is giving away Zunes. http://www.windowslive-hotmail.com/ZuneADay/?locale=en-US&ocid=TXT_TAGLM_Mob ile_Zune_V3 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From wdhindman at dejpolsystems.com Mon Mar 31 15:52:51 2008 From: wdhindman at dejpolsystems.com (William Hindman) Date: Mon, 31 Mar 2008 16:52:51 -0400 Subject: [AccessD] OT: Test...Not seeing any emails today References: <47D68043.7050404@nanaimo.ark.com><47ED7587.3050409@nanaimo.ark.com> <47EF8A6B.6040505@nanaimo.ark.com> Message-ID: <004201c89371$2fe56750$fe786c4c@jisshowsbs.local> ...it ain't jest you'ns, eh :) William ----- Original Message ----- From: "Mark A Matte" To: "Access Developers discussion and problem solving" Sent: Monday, March 31, 2008 4:44 PM Subject: [AccessD] OT: Test...Not seeing any emails today > > Hello Anyone? > > Not seeing any traffic. > > Are we down today? > > If it is just me...can someone reply to markamatte at hotmail.com > > Thanks, > > Mark A. Matte > _________________________________________________________________ > Windows Live Hotmail is giving away Zunes. > http://www.windowslive-hotmail.com/ZuneADay/?locale=en-US&ocid=TXT_TAGLM_Mobile_Zune_V3 > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From markamatte at hotmail.com Mon Mar 31 15:58:40 2008 From: markamatte at hotmail.com (Mark A Matte) Date: Mon, 31 Mar 2008 20:58:40 +0000 Subject: [AccessD] OT: Test...Not seeing any emails today In-Reply-To: <004201c89371$2fe56750$fe786c4c@jisshowsbs.local> References: <47D68043.7050404@nanaimo.ark.com><47ED7587.3050409@nanaimo.ark.com> <47EF8A6B.6040505@nanaimo.ark.com> <004201c89371$2fe56750$fe786c4c@jisshowsbs.local> Message-ID: Ok...alls well in the universe. Thanks Everyone, Mark > From: wdhindman at dejpolsystems.com > To: accessd at databaseadvisors.com > Date: Mon, 31 Mar 2008 16:52:51 -0400 > Subject: Re: [AccessD] OT: Test...Not seeing any emails today > > ...it ain't jest you'ns, eh :) > > William > > ----- Original Message ----- > From: "Mark A Matte" > To: "Access Developers discussion and problem solving" > > Sent: Monday, March 31, 2008 4:44 PM > Subject: [AccessD] OT: Test...Not seeing any emails today > > >> >> Hello Anyone? >> >> Not seeing any traffic. >> >> Are we down today? >> >> If it is just me...can someone reply to markamatte at hotmail.com >> >> Thanks, >> >> Mark A. Matte >> _________________________________________________________________ >> Windows Live Hotmail is giving away Zunes. >> http://www.windowslive-hotmail.com/ZuneADay/?locale=en-US&ocid=TXT_TAGLM_Mobile_Zune_V3 >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com _________________________________________________________________ Test your Star IQ http://club.live.com/red_carpet_reveal.aspx?icid=redcarpet_HMTAGMAR