Search results

  1. M

    Kill a Specific Worksheet

    I'm using "DoCmd.TransferSpreadsheet acExport" to export two queries to two existing worksheets in an Excel workbook (the exported queries are used to populate pivot tables on the other worksheets). The export works, but I've noticed that the export doesn't completely overwrite the exisiting...
  2. M

    Open Form and Filter Subform

    Thanks Galaxiom. I followed your instructions and the syntax seemed to be correct however, it would not filter by the control. I figured out another way - I made the filter field default to what I wanted to be filtered on open and I made the form open action the filter cmd.
  3. M

    Open Form and Filter Subform

    I have a command button that I want to open a form and filter a field on a subform. The main form is "frm_QuotingListAll" the subform is "frm_Quoting Datasheet subform" and the field is "Transfer Status". Could someone please help me with the subform control syntax? Private Sub...
  4. M

    Combining Mulitple Records with Same Pri Key

    I think this is a simple question, but I can't seem to find the answer. I have a table in which the key identifier of each record is a field called "PolicyID". The problem is the one policyID can have multiple record entries. I want to combine all the data into one record. Here's what I...
  5. M

    Multiple filters on Form Open

    Thanks very much David, that did the trick.
  6. M

    Multiple filters on Form Open

    I have a command button that opens a new form and filters that form for the ID of the previous form: Dim stDocName As String Dim stLinkCriteria As String stDocName = "frm_QAList" stLinkCriteria = "
  7. M

    Open Excel File - Path Syntax Problem?

    Thank you so much Trevor, this has been driving me crazy for two days now.
  8. M

    Open Excel File - Path Syntax Problem?

    I have a command button which when clicked, exports a query to an excel file using the following code: ------------------------------------------- Private Sub cmd_exportquoterpt_Click() On Error GoTo Macro_ExportQuoteRpt_Err DoCmd.RunSavedImportExport "QuoteExport1" Macro_ExportQuoteRpt_Exit...
  9. M

    Filter a Subform

    Brilliant! Thank you Bob.
  10. M

    Filter a Subform

    Thanks Bob. I cut down the code to just Me.YourSubformControlNameHere.Form.Filter = "" Me.YourSubformControlNameHere.Form.FilterOn = False It now clears the filter. I think I can't get the clear all controls code to work because I have non-filter text boxes in the header the identify the...
  11. M

    Filter a Subform

    Money as always, thank you Bob! One quick follow-up question. I can't figure out how to apply what you told me to the clear filter code. When I click the clear filter button I get the following error: "Run time error '3333'. Records in table 'tbl_Quoting Data' would have no record on the...
  12. M

    Filter a Subform

    I have some great VBA code that I used in the past to filter a form. Now I'm trying to apply this code to filter a subform but I have no idea how to modify it (I know pretty much nothing about VBA, I just relpicate what I can find on here and Google). My unbound filter fields/combo boxes are on...
  13. M

    Referencing other calculated fields

    Thanks for you help. I figured out my issue - the fields I was referencing in my query were not checked "Show:". I didn't know that you could not reference a field that wasn't displayed in the actual query. Thanks, Joe
  14. M

    Referencing other calculated fields

    I've been googling this for an hour to no avail. I am creating a simple query and have a field that is a calculation of another field (i.e. DWF: IIf([DWF?]=True,"DWF "," "). How would I reference this calculated field so I can use it in another formula i.e. Lines: [DWF] & [Auto]. When I run the...
  15. M

    Correspondence Log Design

    This template is perfect, thank you Boyd! Now I just need to dig in and replicate its design.
  16. M

    Correspondence Log Design

    I’ve designed a basic database that allows users to track progress and correspondence related to their accounts. The users enter their notes in a simple memo field which is attached to a button that adds a date stamp prior to their entries. I’ve read on various forums that there is a better way...
  17. M

    Cursor Jump

    Bob, thank you very much it works perfectly! I appreciate your help.
  18. M

    Cursor Jump

    I have a button labeled "Add Note." When a user clicks the button it creates a date stamp in a related memo field (Me.Text3720). Here is the code: Private Sub AddNote_Click() Me.Text3720 = Me.Text3720 & vbCrLf & vbCrLf & Date & "--" End Sub Is there a way to make the cursor jump to after...
Back
Top Bottom