Search results

  1. A

    Multiple criteria (textbox and OptionGroup) on filter subform

    I'm guessing the listbox details are populated by a query? If that's the case, why not point the criteria for your two fields to the controls in the query. Simpler than writing VBA and easy to implement.
  2. A

    Multiple criteria matching

    The way I've gone about handling multiple search criteria without unnecessary VBA is use the query to limit the information based on controls in the form. Lets say you have a form with TextBox1, TextBox2, and TextBox3. You have a listbox on that form tied to the query qry_FilteredData. Your...
  3. A

    What's generally quicker?

    I've found that calculated fields within the report itself run slower than doing the calculation with a query then displaying the results within the report. Additionally, if you're developing several reports off the main query, you could append those results to a temp table and then run your...
  4. A

    Dave

    To get started, I'd suggest just browsing the sub-forums of what you're interested in learning about. There's lots of information to be had. Second, get a good reference book off Amazon. for VBA I use Access 2003 VBA Programmer's Reference by Cardoza, Hennnig, Seach, Stein.
  5. A

    VBA help - Sending report to contacts from a query/table

    Click on the command button, click on it's properties. goto Events, find the OnClick event and type in EmailFromQuery
  6. A

    VBA help - Sending report to contacts from a query/table

    Just noticed i forgot to throw the exit sub in front of the err handler. that would return a empty msg box every time it was run. I've modified the code above.
  7. A

    VBA help - Sending report to contacts from a query/table

    No problem. It worked for me when I tested it, but if you're still having problems let me know and I can dig into it further.
  8. A

    VBA help - Sending report to contacts from a query/table

    This should do what you need it to Sub EmailFromQuery() Dim rs As Recordset Dim strRecipients As String Dim strDocName As String strDocName = "rpt_Deferred_DTSR_List_By_Plant" On Error GoTo Err_Handler: 'open the query containing the email addresses as a recordset Set rs =...
  9. A

    VBA help - Sending report to contacts from a query/table

    I'm writing up a vbscript for you, for clarification, what is the field name that contains the email addresses you want to extract from the query?
  10. A

    A question of to run your daily procedures

    Thanks again, Bob. I don't doubt you or this individual whatsoever. However, to sign off on the proposal with my boss I still would like to see some detailed reasoning as to why and how code can cause issues with data. Time for some good ole fashioned research. I'll report back with anything...
  11. A

    A question of to run your daily procedures

    Thanks, Bob. Do you have any articles related to how the code can corrupt the data? I've not run across this but would like to know exactly what happens and why not to do it without making you write the article for me :)
  12. A

    A question of to run your daily procedures

    I'm curious as to where the best place to run your daily procedures, whether it be the front-end or back-end or separate 'Control' database, is. We have several databases deployed in several departments that track all manner of things. Each of these databases update differently and using...
  13. A

    Code to multiply a number

    Maybe it's just me, but I'm not very clear on what you're looking for. Could you go into further detail on what it is you're doing as well as how the information gets into the table, etc?
  14. A

    VBA code to sum highlighted

    Hi PhobiaBlu, Simplest way is to create a query. Since you didn't provide any table information on what you'll need to sum/count I'll create my own example. Assume you have a table (tbl_YourTable) with 2 fields: Account_Number, Account_Balance, To get a total count of the account numbers...
  15. A

    Dynamically search multiple fields (John Big Booty Super)

    You should look at the On DoubleClick event in the properties for your list box. In the VBA for that event, you can open the form you're wanting to go to, set the current bookmark to the original listbox value (me.listboxNameHere is one way to get it) and now have it displayed on teh second...
  16. A

    Unexpected Pause in VBA Execution, no errors or anything to suggest code error

    I've got a function (shown below) that is called on startup through an Autoexec macro. Occasionally it opens the code window, highlights the "set rs =..." line and pauses. It doesn't show an error or indicate a problem, it just pauses. I can hit the resume button (the play button) and it'll...
  17. A

    When to create modules

    So true....so true...
  18. A

    Unable to set variable as form

    Here's the adjusted function if you or anyone else is interested: Public Function ReqCheck(frm As Form) 'This function iterates through all combo boxes, text boxes, and list boxes on a form 'and compares their control name to the table "tbl_Required_Controls". After scanning the 'form it...
  19. A

    Unable to set variable as form

    Correct. In it's current state it's called from the form and fed the field/form names and returned whether that field on that form is required (true/false). I have to adjust it to work the way I mentioned above, but I first had to figure out why it wouldn't call properly.
  20. A

    Unable to set variable as form

    that actually worked.... but...why....:confused:
Back
Top Bottom