Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: jhaganjr
  • Content: Threads
  • Order by date
  1. jhaganjr

    Excel PivotTable calculation

    Simple data setup ... each record is a sales lead. Each record includes a result column - sold or unsold. Simple example might look like ... Lead Result 6/1/10 Open 6/2/10 Sold 6/3/10 Sold 6/4/10 Unsold I would like a "report" result like this ... CountOfLead...
  2. jhaganjr

    Short SQL to duplicate record?

    I want to duplicate a record in the same table - all the data except the key field, of course. The append query is easy enough. For example, here I am duplicating record #2 in my test table called zzTblJunk: INSERT INTO zzTblJunk ( Field1, Field2, Field3 ) SELECT zzTblJunk.Field1...
  3. jhaganjr

    speed up delete where value not in multiple tables

    Hello Amazingly Smart People, I did a search and found the answer to my question. However, the answer is excessively slow. I'm wondering if you know a better way. Need: To delete records from TblA when the key value of the records does not appear in several related tables. Solution: DELETE *...
  4. jhaganjr

    Get list from same data field in separate tables

    This seems like it should be simple, but for some reason it's not (for me) ... Table1: RecID Client 1 A 2 B 3 C Table2: RecID Client 1 D 2 A 3 E As you can see Client A appears in both tables, but the other clients do not. How do I query the Client value...
  5. jhaganjr

    Force rows into a query ...

    Let's say I have a simple sales order table like ... SaleID Agent SaleDate 1 A1 7/6/07 2 B2 7/25/07 3 A1 8/12/07 4 C3 8/14/07 5 C3 9/6/07 6 A1 9/10/07 And I want to count each agent's sales within the quarter by month. This...
  6. jhaganjr

    Remou et al - Drag & Drop a pdf?

    Thanks again to Remou for the response to dragging and dropping an Outlook email into a memo field. Now ... what about a pdf file? I've tried dropping it onto all field types (I think all). Nothing occurs that would indicate a codable event has taken place. Why do this? We currently "attach"...
  7. jhaganjr

    Drag & Drop Email to Access - Possible?

    I may need professional help for this, but thought I'd start here ... In our Access database we make notes of client activity. Some of that activity involves receiving email from and sending email to clients. We use Outlook. I want to save these emails and allow the user to link to them from...
  8. jhaganjr

    Select Tbl A Recs Where Tbl B Recs Are Missing

    Simplified version of the challenge ... Clients table has a single field - ClientID Policies table has 3 fields - PolicyID, ClientID, ProductID Clients has a one to many relationship with Policies based on ClientID, obviously. I want a list of ClientIDs from Clients where a record does not...
  9. jhaganjr

    Outlook Error in Access Runtime Revisited

    Hello, Last week I posted a problem and was advised to do better error trapping. I've done that, so here is the problem again... I've been using code for an Outlook object - which I found through this forum - for years with no problems. However all my users had full versions of Access on...
  10. jhaganjr

    Outlook Function Causes Runtime Error in Access Runtime versions

    Hello, I've been using code for an Outlook object - which I found through this forum - for years with no problems. However all my users had full versions of Access on their machines. Now they have only runtime versions of Access. And the function creates a runtime error. Note: I and 2 other...
  11. jhaganjr

    Word doc print error #0

    Hi, The ActiveDocument.PrintOut command in the sub below generates an error. What is the easiest way to print a Word doc from within Access (VBA) that involves no merging? Just need to print the doc. Thanks! Public Sub PrintWordDoc(ByVal strDocPathAndName As String) On Error GoTo...
  12. jhaganjr

    Dirty property for form control?

    Using Form.Dirty I can tell if the current form record has been edited and not yet saved. I cannot find a similar property for a control on the form. I'm trapping the Escape key with KeyPreview events and want to be able to tell if the user is editing the current control when they press...
  13. jhaganjr

    Date fields with time excluded by Between...And Operator

    Frustrating problem. I'm using Access 2002, so you know. Table includes a field with date/times in it. For example ... 6/18/05 4:32:55 PM 6/19/05 5:17:12 PM etc. When I query this field with the Between...And operator as criteria, the last date of the operator does NOT capture records with...
  14. jhaganjr

    Stop Escape key from working?

    On a form, by setting KeyPreview to Yes and using the KeyUp, KeyDown or KeyPress events, I can trap a user who presses the Escape key. I do this so a user cannot avoid the form validations by pressing Escape when the record is dirty. I prompt for their intentions and either wipe out the entry...
  15. jhaganjr

    Launch Email from Hyperlink w/ attached file

    I'm technically oriented but new with html and frontpage. This is for my company Intranet. Anybody know how to setup a hyperlink so when one of my staff clicks it, it launches a new e-mail in Outlook AND attaches a specific file to the e-mail. The purpose is to easily send a consumer report...
  16. jhaganjr

    how to specify row in combo box?

    I have a combo box on a form based on an inner join query, as follows: cboFindProspect.RowSource = SELECT tblProspects.ProspectID, SalesAttemptID FROM tblProspects INNER JOIN tblSalesAttempts ON tblProspects.ProspectID=tblSalesAttempts.ProspectID; tblProspects is the one side and...
  17. jhaganjr

    SendKeys {ESC} Not Working in Access 2002

    Hi, In Access 2000, running on Windows 2K, the following code in the BeforeUpdate field of a combo box prevents the update when the condition is met and then restores the original value in the box ... If Not IsNull(Me.cboProduct.OldValue) Then strMsg = "SORRY - THAT'S NOT ALLOWED!"...
  18. jhaganjr

    vbCR or Chr(10) and Chr(13) Make Boxes

    I'm creating text in code and feeding it to text boxes on forms. For example, taking name and address fields and creating an address block in one text box on a form. To get line feeds I use the vbCr, but it shows up as boxes (character indicators) in the text box instead of executing the...
  19. jhaganjr

    Escape Key Not Working On Certain Fields

    What I consider "normal" behavior is when data is typed into a field on a form or a selection is made in a combo box, pressing the Escape key once will Undo the typing or the selection. For most fields on my form the Escape key does just that. But there are several fields on the form...
  20. jhaganjr

    OutputTo command renders recordset invalid

    Hi, I'm generating a vacation report for each of my employees to be e-mailed to them in house. The code is below. The recordset is rendered invalid by the OutputTo command. (I originally thought it was the call to the e-mail function, but it's not.) Becuase the report is different for each...

Part and Inventory Search

Back
Top