Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. Dilettant

    Printing code

    Thank you for an elegant solution to an unnecessary problem. I used the routine to dump all code successfully. I find it hard to believe that a company like Microsoft with sophisticated and complex products like Access, containing a print utility with a "print to file" option prints to a...
  2. Dilettant

    Printing code

    I am using VBA under Access and trying to print code to file by checking "Print To File" checkbox. It seems to work but I can't open the file. What file type is it and what program can open it? Thanks
  3. Dilettant

    ACCESS VBA EVENTS

    Thanks, it sounds good, I will try it.
  4. Dilettant

    ACCESS VBA EVENTS

    I tried on delete, it doesn't work. delete from I understand that before and after deleteconfirmation don't happen if canceled. What do you mean by "or create your own form?
  5. Dilettant

    ACCESS VBA EVENTS

    It does function properly: on "yes" the record is deleted, on "no" it is retained. My problem is I need to run a procedure after clicking "no" and I need an event to start it. I thought the message "DoCmd action canceled" would provide it. Does it?
  6. Dilettant

    ACCESS VBA EVENTS

    1. I am deleting a record via DoCmd.DoMenuItem acFormBar, acEditMenu, acDelete, , acMenuVer70 2. A message is returned asking if I am sure I want to delete the record. 3. If I click "NO" I get another message: "DoCmd action canceled" with an "OK" button, waiting for a response. MY QUESTION: IS...
  7. Dilettant

    ACCESS VBA EVENTS

    1. I am deleting a record via DoCmd.DoMenuItem acFormBar, acEditMenu, acDelete, , acMenuVer70 2. A message is returned asking if I am sure I want to delete the record. 3. If I click "NO" I get another message: "DoCmd action canceled" with an "OK" button, waiting for a response. MY QUESTION: IS...
  8. Dilettant

    Run Time Error '7': Out Of Memory

    I get this error when trying to execute a line of code setting the Allow Additions property of a form to false in Access VBA. Can't believe I am running out of memory due to that. What can cause this error and where can I find a list of error message definitions? Thanks in advance
  9. Dilettant

    Event definitions

    Thanks, it really helped
  10. Dilettant

    Event definitions

    What event is triggered when a form changes to next or previous record via the navigation keys?
  11. Dilettant

    Open recordset in Access VBA

    Skip: I found the answer: Dim cnn As Connection Set cnn = CurrentProject.Connection and use cnn as the second argument
  12. Dilettant

    Open recordset in Access VBA

    Thanks again, but received Error 3001 message : Arguments wrong type, out of range or in conflict.
  13. Dilettant

    Open recordset in Access VBA

    Skip; Thanks ever so much for your response. Yes I want to work with the CurrentDB. The string "db1" is the name I gave the data source in step 6 of what I did. I thought that defines the connection. If not, what should I do??
  14. Dilettant

    Open recordset in Access VBA

    I need to open and manipulate a recordset with VBA code running in Access but can’t seem to do it. To find out why, I did the following on the basis of Paul McFedries’ Absolute Beginner’s Guide to VBA: 1. Created a blank Access file 2. Created a form with a single command button 3. Saved by...
  15. Dilettant

    Indexing through all controls on a form

    Can the tab index of controls on a form be used for indexing? For example copying the values of all controls into an array by using a for...next loop with a statement like varrArray(I)=me.controls(I) If not how can you move focus from one control to the next in order of the tab index? Thanks...
  16. Dilettant

    MailMerge automation from Access VBA headache

    Am using the following code. Actually it is more complex because it allows user's choice of both envelope size and address list, but I first want to make it work the simple way. Private Sub MergeIt() Dim objWord As Word.Document Set objWord = GetObject(CurrentFolder & "Envel#10.doc")...

Part and Inventory Search

Back
Top