You don't understand what was explained.
Table A to match Table B
Table A has the following policy numbers:
1234
1234
1879
6766
1234
Table B also has the following duplicate policy numbers:
12340000
12340000
67660000
12340000
45900000
98000000
Get the unique/distinct policy numbers in...
I suspect that Shape_Sheet is not a normal worksheet so you will need to use the Sheets collection, not Worksheets:
SourceFile.Sheets(SlideNshapes!Shape_Sheet)
Replace the blue bits with the correct name of the field that uniquely identifies each record:
Private Sub Save_to_PDF_Click()
Dim myPath As String
Dim strBookmark As String
With Me
myPath = "Z:\(P) Maintenance\Hamilton Jet Planned Maintenance\Jobs\"
myPath...
Ok, I see the problem. There's a typo:
Public Function StripInvalidChars(TheString As String) As String
Dim varChars As Variant
Dim x As Integer
Const INVALID_NAME_CHARS As String = "\ / : * ? "" < > |"
varChars = Split(INVALID_NAME_CHARS, " ")
For x =...
You're printing to a pdf, hence the word "print". One doesn't only print to a printer.
Whether you print to a pdf or print to a printer, a report is best placed for this type of job. Have you tested the code I sent?
In the future, always mention all of the following:
* the full error message
* which line it highlights
* and where the code was placed.
Private Sub Save_to_PDF_Click()
Dim myPath As String
Dim myFormName As String
myPath = "Z:\(P) Maintenance\Hamilton Jet Planned...
I understand that. Can you see a pattern? Does it stop when an "Enabled" property is called? Or when a property of a particular type of control is called?
Going back to your code, it errors/stops at this line right:
Me.SubFrmDepositTransactions.Enabled = False
Comment out this line and the line after it, then re-run the code step-by-step by putting a breakpoint at the first line.
Similar structure or the same structure?
Here's another suggestion:
1. Create a new blank db
2. Use the Import/Export wizard to import all the objects from the problem db into the new db - don't copy and paste.
3. Debug > Compile... fix any reference issues
4. Save
5. Compact & Repair and re-test.
@Andy.T, You could also look into the Filter event as well. I don't remember which one comes first, the ApplyFilter event or the Filter event. But of course try all the suggestions above before looking into this.