Search results

  1. G

    VBA Access - How to make Access wait.

    Thanks Ghudson.. just the job!
  2. G

    Datasheet Cols - Drag and Drop

    Hi Access 2007, .mdb I'm almost embarrased to ask this question but how does one drag and drop columns in a (subform)datasheet to change the order? I know about .ColumnOrder and acSaveYes/No to retain the changes... so I know how to manipulate in code but for the life of me I cannot drag...
  3. G

    Form Option Declarations

    Hi and thanks for the replies.... Curiously I have found the opposite to that which [I think] I expected... I have set Option Compare Text in my modules and Access has gone case-insensitive... so... IF "fred"="Fred" THEN .... is true...... Access... more red herrings then a Swedish...
  4. G

    SubForm Strategy - No Records

    Apologies, my error. I have just converted to ADODB recordsets and this architecture works in a slightly different way. In fact the reason my subform object was disappearing was my own fault ... I hadn't set the recordset up correctly. I think the situation I describe is still true for DAO...
  5. G

    SubForm Strategy - No Records

    Ok thanks... not used that before... and that's a good tip for other things too... I guess though it's only one half of the equation of this particular issue... let's say for example... I change the SELECT statement for the subform... it retrieves 0 records and unloads itself, I trap that...
  6. G

    SubForm Strategy - No Records

    Hi My main-form module has lots of references to its subforms. The subforms are populated by SQL Select Statements. These statements which include WHERE clauses are applied to the subforms via their ADODB RS.source params. When a SELECT WHERE statement retrieves 0 records the subforms...
  7. G

    SubForm Strategy - No Records

    Hi One thing that drives me to distraction is the opening of subforms and what strategy to employ when there are 0 records. I guess most of you have seen this... Subforms get opened before mainform, but the criteria on which they are loading at any given time might retrieve 0 records. If...
  8. G

    Form Option Declarations

    Hmmm... I'm getting confused now... so here's my experiemce. My modules came up with option compare database by default (or at least I didn't set it). When I wanted to check my Vars I changed it to Option Explicit. At this point it was discovering undeclared Vars but references to some...
  9. G

    Form Option Declarations

    Hi Actually, I have just done a compact and repair and the Option Explicit is now being enforced thanks. Odd that the Compare Text worked immediately but the Explicit didn't... Another mystery.. All is OK now, thanks for your assistance everyone.
  10. G

    Form Option Declarations

    Hi Sorry, yes, I should have said i want them explicity declared (as opposed to implicity declared when assigned). if possible, I prefer to switch case sensitivity off for everything... thnx
  11. G

    Form Option Declarations

    Hi Quick question please. I want to make sure my variables are all declared but I don't want case sensitivity... i.e. I want to turn case sensitivity off.... I tried this Option Explicit Option Compare Text This seems to turn off case sensitivity OK but it allows variables to be implicitly...
  12. G

    Reload of ADO Recordsets - Access Crashing

    Hi Thanks for the reply. I use a mix of SQL SELECTs and ADO filters... Some of my main_form requirements are quite complex so I use an initial SELECT to get them into the RS... but you are correct and, under the circumstances described above, I'm just going to carry out a set...
  13. G

    Reload of ADO Recordsets - Access Crashing

    Hi After many hours investigation I think I've fixed this. For anyone else out there who doesn't want to waste 3 weeks of their lives on trial and error :- When my main form "source-of-records" is re-built (I use that term to distinguish it from "RecordSource") I read that it was first...
  14. G

    Reload of ADO Recordsets - Access Crashing

    Hi WinXPPro - SP3 Access 2007 .mbd file Native Access Db on Local Machine Sorry to post again so soon but I've an issue with ADO RS's and I'm completely out of ideas. I started to implement these some weeks ago and wish I'd not bothered! I have main and 6 subforms. All are built as I've seen...
  15. G

    Form/SubForm Reloads

    This has been superceeded by another issue... please see http://www.access-programmers.co.uk/forums/showthread.php?p=1126865#post1126865 thanks HI Would appreciate advice on the following please. I have a Main form with several subforms (6 all told, each on its own tab). Once loaded...
  16. G

    Form Variable Scope

    HI Thanks for the reply... As you probably guessed from their names I use them for setting up the recordsets of my forms. At one time I assumed they had to be there for the life of the form.. and I killed them off in the form unload event... I later realised that wasn't necessary but I...
  17. G

    Form Variable Scope

    That's correct, I was having a problem... Access was actually crashing at the point they were being assigned.... and I began to wonder if these variables needed be re-dimmed somehow. They are sited on a subform and so are public in order that they can be managed from the mainform too. If I...
  18. G

    Form Variable Scope

    HI Quick question on variab;e scope within a form, If I declare a variable in the delararations section:- Option Compare Database Public Frm_RstADO As ADODB.Recordset Public Frm_CnnADO As ADODB.Connection Then set the variable:- Set Frm_CnnADO = CurrentProject.AccessConnection Set...
  19. G

    SubForm Crashes

    Think I may have solved this.... I changed the cursor type to 'adopenkeyset' and my connections to:- CurrentProject.AccessConnection I also set the Rs and CNx to Nothing after setting the form recordset....i.e. Set Me.Form.Recordset = Addrs_ABCD_rstADO Set Addrs_ABCD_rstADO = Nothing Set...
  20. G

    SubForm Crashes

    HI I'm having real horrors with my forms. I'm converting my forms to use ADODB RS's because I was plagued by problems with SQL Transactions in DAO (begintrans/commit etc). I have Access 2007, using local-machine native Access Db (but want to go FE/BE eventually). It is a .MDB project. All my...
Back
Top Bottom