User Profile
Collapse
-
That screaming you hear is me! That works perfectly and I think I now understand the concept! Thank you so much! -
Actually, I want a single button on the main form. When I click the button, I want to know all of those people with No Duty Station. This will mean that either A) there is a linked record but Duty Station Is Null OR B) there is NO linked record.Leave a comment:
-
This database contains 2 relevant tables. "tbl Master" contains all personal information (Person ID, Name, Branch, count, etc.) and a second table called "tbl Rank Rate Location" contains only Person ID, Rank, MOS Rating, and Duty Station. Person ID is common and links the two tables.
On the form I am working with, all of the information from "tbl Master" is displayed on the form "frm Master Tracker"....Leave a comment:
-
ChipR... Thanks for the response. When I run the script I get an "Enter Parameter Value" for both "Duty Station" and "Me!sub Rank Rate Location.Form!D uty Station"Leave a comment:
-
Apply Filter to Form & Subform
I have a Button on a form that filters on 2 fields using the following code:
This works fine. However, I also want to filter on a field in a Subform when no record exists (or Is Null)....Code:Private Sub cmd_NavyDue_Click() With Me .FilterOn = True DoCmd.ApplyFilter , "[Branch] = 'NAVY' And [Count]>1" Me.OrderBy = "[Person ID] DESC" Me.OrderByOn = True End With End Sub -
Thank you for the code.. it does work. However, I actually want the spreadsheet to remain open after it is created. I want to close any open spreadsheet before the 'DoCmd.OutputTo ...' is run and leave the resulting spreadsheet open until the code is run again.Leave a comment:
-
Close An Open Excel Spreadsheet from Access VBA
I have Access 2000 programmed to run a very simple code to run a query and OutputTo an Excel spreadsheet:
DoCmd.OutputTo acOutputQuery, "XLS Applicants", acFormatXLS, "C:\My RMBC Reports\Applica nts.xls", True
If, however, the user attempts to run the code a second time, without closing the Excel spreadsheet, they get a Runtime Error. I need to know how to close the spreadsheet (if it is opened)...
No activity results to display
Show More
Leave a comment: