Search results

  1. D

    Sum function on report not working

    The SCHDQTY field / text box is just a result from the query, a regular field with no calculations on it. Is that what you are asking?
  2. D

    Sum function on report not working

    I have a report created where the page uses a query as the back end, all works well. I need to add a text box with the summed up values; however, I keep getting the #error for the result of my sum function. I am trying to Sum up one field called SCHDQTY. On the textbox I am trying to put the...
  3. D

    How to automatically send an email based upon query results

    Awesome, thanks :) I generally just put a msgbox("test") and move it around my code to see where it breaks :) Everything is up and runnign smoothly. Thanks for your help!
  4. D

    How to automatically send an email based upon query results

    Ok, I ahve everything working perfectly so far. I'll start to play around with how to grab the order number variable, I'll have to look at the application a bit more. But, in the code posted I have a couple lines commented out. One quick question. Can I make the email HTML based anyhow? I...
  5. D

    How to automatically send an email based upon query results

    Ok, i got past the error, and initial testing returns no error, but no email either. I will see if the data I am using is bad and get back. To fix my error, I had to add this to the end of the query code: , dbOpenSnapshot, dbSeeChanges)
  6. D

    How to automatically send an email based upon query results

    The same error messages happen when I changed the code to what you suggested.
  7. D

    How to automatically send an email based upon query results

    Ok, having a few issues so far. Here is the entire code for the button: Private Sub CreateOrderFromTK850EditTable_OrderDetail_Click() On Error GoTo Err_CreateOrderFromTK850EditTable_OrderDetail_Click Dim stDocName As String 'stDocName = "CreateOrderFromTK850EditTable-OrderDetail"...
  8. D

    How to automatically send an email based upon query results

    Thanks a ton Trevor! From a quick scan of what you posted, that looks to be identical to what I need. I will work on this today and post back with any questions I may have.
  9. D

    How to automatically send an email based upon query results

    I know how to do it, I know the pseudocode, I do not know the vba syntax. That is what I need help with.
  10. D

    How to automatically send an email based upon query results

    I explained one portion incorrectly. For every line that is tagged as high alert, an email will need to go out containting informaiton about that line. A seperate email for each line. So, I think I need a programatic approach to run the results in a loop, and then send an email for each line...
  11. D

    How to automatically send an email based upon query results

    I need to send an email based upon query results via vba or macro. Here is the steps taken: 1) user clicks a button 2) I need a query ran with the following syntax: select HighAlert from Orders where (order = 123456) 3) I need to cycle through those results (seperate order lines) and if...
  12. D

    SQL Stored Procedure in a Query

    Its easy stuff, just running into an error using my .fmt file for the bulk insert...I'll get it figured out :)
  13. D

    SQL Stored Procedure in a Query

    Thanks for your help...the truncate helped. now, its time to tackle the import into sql with a fixed width .txt file
  14. D

    SQL Stored Procedure in a Query

    I definately think the truncate will help immensly...so, I have to make it a stored procedure in sql to run it in access then, correct? Access doesnt' recognzie that function, correct? If so, then i create the stored procedure, and then call it in my query using the info you just recently gave...
  15. D

    SQL Stored Procedure in a Query

    I will try the truncate in my stored procedure; however, I still haven't had my question answered on how to run as stored procedure from Access...be it in VB, macro itself, or a query. Big deal if I didn't know what truncate was, i probably did, I just never use it. Creating queries in and...
  16. D

    SQL Stored Procedure in a Query

    I'm not sure what a truncate is? I do know, however, that running the delete in query analyzer is extremely fast compared to the access query, so I am thinking the stored procedure would be fast also. I know it can be done as I have done it before, but I have absolutely no idea on what...
  17. D

    SQL Stored Procedure in a Query

    How do I run an sql stored procedure in a microsoft access query? I am looking to do this because I have a macro that deletes a table and then appends it; however, since I moved the table to sql, the delete takes a very, very long time, and I think running a stored procedure on the server side...
  18. D

    Help Displaying a Pop-Up Based upon data

    That works great, thanks!
  19. D

    Help Displaying a Pop-Up Based upon data

    I have a form that when a button is pressed, I wish to call a query, and, if there are any results in the query, then display the results either via pop-up or just open the query results itself (which may be easier). So, here is sort of what I need done: if this query has results: SELECT...
  20. D

    Print to Specific Printer

    that seems to have fixed my issue, thanks!
Back
Top Bottom