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...
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
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?
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?
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...
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...
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
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??
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...
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...
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")...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.