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 strongm 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: *

  1. lexis7

    zeroing out parts of duplicate records

    To break it down: The three fields that I want to zero out have the same values but the other fields contain different dollar values which i want to sum in an output(excel pivot) I can't sum the first three fields because then it will double or triplicate the values. see example below...
  2. lexis7

    zeroing out parts of duplicate records

    Here is my SQL: SELECT [TABLE].[Tracking Code], [TABLE].[Clicks], [TABLE].[Cost], [TABLE].[Impressions], [TABLE].[Date], [TABLE].[Orso Type], [TABLE].[Store], [TABLE].[Orders], [TABLE].[Net Demand] FROM TABLE WHERE (((TABLE.[Tracking Code]) In (SELECT [Tracking Code] FROM [TABLE] As Tmp GROUP...
  3. lexis7

    zeroing out parts of duplicate records

    Hi- I have a find dups query set up, which returns 5 fields. I want to zero out Field 1 and Field 2 on just the duplicates. I don't want to touch Fields 3-5 on these duplicates. Is this possible to do through SQL? Thanks for any help. lexis
  4. lexis7

    Autonumber field on a form

    thanks for the suggestion, but it didn't work. maybe i didn't explain things well enough. let me try again. -i created a form to allow users to enter a new contact. -the fields on the form will be added to the table "Main Contacts" -this table already has 800 entries and a Key field...
  5. lexis7

    Autonumber field on a form

    Hi- I am trying to create an autonumbered field on a form. I have created a txtbox named "txtAutoNumber" I am using this form to add new records to a table. The table already has 800 records. How do I create the autonumber field to start at #801? Any help would be great...
  6. lexis7

    using the split function

    James, thanks for your suggestion but the code i'm trying to split has different lengths, for examples see below. what i have already done with no success is create a form with a command button(cmdSplit) and have it split the "code" field in the "code" table. Any...
  7. lexis7

    using the split function

    hi, I have tried to read up on this split function, but every code is different and i don't know how to interpret it all. can anyone help me with this. I am using access 2000, and i want to split the following: Field name: Orginal Code example of code entry: 14:863618:4387:0:0:99 I want to...
  8. lexis7

    API for PrintDlg

    I CAN'T BELIEVE THAT WAS ALL THAT WAS REQUIRED! I found all this code for calling the print dialog box and spent two days debugging all this code. It was seriously 5 pages of code. Thank you for this wonderful suggestion, so simple!!!! Have a great day!
  9. lexis7

    Have a Query search for Blank fields?

    Hi, Thanks for letting me know this was possible, but I don't know how to code it or where to put the (Is Null or ""). -I call my query through code 'Open the "View" form DoCmd.OpenForm "frmInvoices_Search" 'Pull recordset from query into...
  10. lexis7

    msgbox if query has no results

    Robert, After a week long battle with this and after your helpful suggestions about debugging, I found the solution to this problem. When I debugged I found that it's recordset value was all my records and not the results of the query. All I changed was having the code written under...
  11. lexis7

    Have a Query search for Blank fields?

    Not quite sure if this is possible.... I have a form(frmEnterInfo) that has many different fields(ex. first name, last name, DOB, job title...). I have another form(frmSearch) that allows users to select a field and type in a value to search. This is done through a simple select query. I...
  12. lexis7

    API for PrintDlg

    Hello! I was trying to add a common dialog box for the print function to a command button(cmdPrint). I have read all about NOT using the commonn dialog box. I have also read tons about the saving/browsing of files using API. I cannot seem to find much info about the Print dialog box. Does...
  13. lexis7

    msgbox if query has no results

    ok- It was my mistake, I had the wrong reference checked off...but now after all that, nothing happens. I don't get any errors but I don't get a msgbox either. aghhh! any suggestions? Thanks alexis Private Sub Form_Open(Cancel As Integer) Dim rs As DAO.Recordset Set rs = Me.RecordsetClone...
  14. lexis7

    msgbox if query has no results

    Robert, I want to thank you for being patient with me, however I am still getting the same error message. I have been playing around with the code for two days and I can't seem to understand what is going wrong. This is the last thing on my "to do" list for this project. If you can...
  15. lexis7

    OLE DB error

    Thanks everyone! I just replaced my string value with strSQL= "" and it worked great! I appreciate all your help. alexis
  16. lexis7

    OLE DB error

    hi, I have a list box on a form that is multi-select and the items selected are saved back into one field in a table. This works great when an item in the list is selected, however when nothing is selected from this list box i get an error message of: "multiple-step OLE DB operation...
  17. lexis7

    msgbox if query has no results

    I tried using that code but i get an error saying: "You entered an expression that has an invaild reference to the RecordsetClone property" any suggestions? also i had to change the code slightly here is the new code im using. thanks in advance! Dim rs As ADODB.Recordset Set rs =...
  18. lexis7

    updating records in forms

    ok- let me try to be more clear. I have users search for an invoice number, and the result of the search pulls up all the information about that invoice on a form. They can then change/add/delete any information on that form and it updates the changes made in the table. I want a msgbox to pop...
  19. lexis7

    msgbox if query has no results

    I am stuck on this... I have a query("Marketing Partner Query") that pulls its results into a form("Invoices_Search"). All I want to do is have a msgbox appear if there are no results. I don't think I have the syntax right, DoCmd.OpenForm...
  20. lexis7

    updating records in forms

    I have a form which shows the results of a query. I want users to be able to update the information on that form. If the user just types the new info on the form it works, (the table updates), but i want a msgbox asking them if they want to update first before any changes occur. I just don't...

Part and Inventory Search

Back
Top