Recent content by Mod

  1. M

    runtime func name

    Thanks, I found it. Unfortunately for me, it's not the shortcut I was looking for (if i know the line number, i might as well just know the name of the function, heh). I did find the nice property Application.VBE.ActiveCodePane.CodeModule.Parent.Name which will return the name of the active...
  2. M

    runtime func name

    Ack, I can't find the library to reference for VBE (VBIDE) does anyone know what the filename is for this library? EDIT: PS Does anyone else find it difficult to browse the list of available references? Unless I know the full name of the library it can be challenging.
  3. M

    runtime func name

    Is it possible to find the name of the current executing function at runtime? Something like: sub ThisSubroutine MsgBox(This.RunTimeObjects.CurrentFunction.Name) End Sub Of course, the whole red part is just some kind of wierd object I made up. But if an object like that does exist, or...
  4. M

    Refresh Form

    errr, good question. I assumed VBA would have some sort of timer control, but I don't see it in my version. If you don't have it either, google for something like "timer ocx" and register it under "tools->active x".
  5. M

    Swithboard Problem

    The way that Access manages the event functions doesn't work 100% all the time, even though it's pretty smart. In the design view of the form, click the menu View->Code and look for the project explorer pane in the VB window that pops up. If you don't see that, press ctrl-R. From here you...
  6. M

    Refresh Form

    You could put a hidden timer on the form that requery's every 10 seconds or so... Thats the best I can think of.
  7. M

    Subform Won't Surrender Focus

    Well, the title says it all really. After I click into the subform and type something in a text box, the focus will not return to the parent form, via mouse or tab. I can't even switch the form back into design view, it appears to be totally locked. Has anyone run into this before?
  8. M

    Subform Tab Control Problem

    What you need is a field in tblIndividuals that shows if the record is person #1 or person #2. Then, when the household form is updated, change the recordsource for each of the subforms, like so: Form_Subform1.RecordSource = "SELECT * FROM tblIndividuals WHERE tblIndividuals.HouseholdID =...
  9. M

    Relational Databases: Enforce Referential Integrity?

    :o oops sorry, i really should have checked for other threads. :o
  10. M

    A tab control in a page of a tab control

    Can anyone do this? For some reason if I try to put another tab control onto a certain page of a main tab control, Access's VBA doesn't allow it. Other applications (Excel, Word) are ok with this. Does someone know how to make it work?
  11. M

    Relational Databases: Enforce Referential Integrity?

    I'm building a database with 23 tables (so far) and about 30 foreign keys, spread out amongst the tables. So far I haven't concerned my self with the "Enforce Referential Integrity" option in the database, I figure if the interface (read as: forms) is(are) designed right, the integrity of the...
  12. M

    Disabled New Record

    My initial reaction on reading your post was this: In the properties window of the form, data tab, there is a property called "Allow Additions". Having this property set to 'No' will create the behaviour you described. Reading your post all the way through, I saw that you tried putting...
  13. M

    Form - Autonumber generation

    What you're going to want to do is go into the design of the table, and change it from being an autonumber to just a regular number. Then you can write an event procedure to calculate the next one if you like. If you are determined to continue with the autonumber, here's what to do. backup...
  14. M

    Disabled New Record

    is it small enough to post?
  15. M

    Form - Autonumber generation

    I have bad news for you. The only way to get the Autonumber to reset is to make a new table. It is never a good idea to use the Autonumber data type if there could ever be a need to change or specify the next number generated. The only purpose of the Autonumber is to be unique, and it tries...
Back
Top Bottom