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 Mike Lewis 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: aonefun
  • Order by date
  1. aonefun

    returning distinct values for database field

    Thanks for your responseS. Here is the full code that still returns duplicate DocumentHeaders.SoldToFax or Document.ShipToFax values: (SELECT DISTINCT DocumentHeaders.SoldToFax, Min(DocumentHeaders.SoldToCompany) AS MSoldToCompany, Min(DocumentHeaders.DataSource) AS MinOfDataSource...
  2. aonefun

    returning distinct values for database field

    How do I set this query to return only distinct values for DocumentHeaders.SoldToFax? (I thought this is accomplished by the GROUP BY function). SELECT DocumentHeaders.SoldToFax, Min(DocumentHeaders.SoldToCompany) AS MSoldToCompany, Min(DocumentHeaders.DataSource) AS MinOfDataSource...
  3. aonefun

    group by function to eliminate duplicates in union query

    In regard to the initial query code provided: I am creating a web application inwhich someone can remove his fax number from our database by setting the fax number's corresponding faxremove field to equal "yes". Being that part of the fax list is being fed by a quoting app and duplicate fax...
  4. aonefun

    group by function to eliminate duplicates in union query

    How would I alter the following code so that the Group By function eliminates duplicates from the DocumentHeaders.SoldToFax and DocumentHeaders.ShipToFax fields combined (as a result of the UNION query)(In other words, when the UNION query combines all fax numbers from both the SoldTo and ShipTo...
  5. aonefun

    remove extra space in the middle of a text field

    How do I remove extra space in the middle of a text field. There is not supposed to be any spaces in this field. Please provide specifics. Thanks!
  6. aonefun

    format fax numbers in query field

    One more question: What if I need to change from this formating: 123-456-789 to (123)456-789 or from 123456789 to (123)456-789 How would the function code change?
  7. aonefun

    format fax numbers in query field

    Thanks again for your assistance. I'm still having trouble though. What do I save the module as (so that the SQL code refers to it)? Do I have to customize the function code at all? I assume that I should not be puting the words "AliasFieldName: " into the SQL?
  8. aonefun

    format fax numbers in query field

    From what I understand, some of the code is inserted into the query's SQL view and the other gets saved in a module? How do I refer to the module code while inserting the code in SQL view?
  9. aonefun

    format fax numbers in query field

    Thanks for your reply. In which portion of Access' interface do I insert the above code sniplets as I do not have hand-coding programming knowledge.
  10. aonefun

    format fax numbers in query field

    I have created a union query of two tables that list fax numbers in a text field (notice that I don't have authority to change this field format to numeric) The resulting query has some fax numbers formatted in 2 different ways: (123)456-7890 and 123-456-7890 How to I change the resulting...
  11. aonefun

    table field's value based on value of another field same table

    I would like to exclude any customer that has an invoice in our system from a fax campaign. If the docstatus="invoice" then I would like faxremove to equal"yes
  12. aonefun

    table field's value based on value of another field same table

    I would like to set the value of an Access database table field to "Yes" if another field in the same record (of the same table) contains the value "invoice". Can I insert If statements into the SQL table view? If yes, what is the proper syntax to achieve this result? If not, what is the...
  13. aonefun

    designating webpage region to be sent as the TextBody of an email

    I have a web search application. I would like to be able to send the search results as the body of a text email. When sending e-mail with CDOSYS, how do I specify the region of the webpage that I would like to be sent in the TextBody?
  14. aonefun

    sql distinct

    The reason for duplicate contact data in the database is because it is the backend database for our quoting software. Along with each quote is saved the current contact info for the customer. The query of discussion was created by joining the 2 tables that store the quoting documents...
  15. aonefun

    sql distinct

    the record id does not matter. As long as there is only one result per SoldToCMAccountNo. Please go to: http://www.canchair.com/customer_locator/customer_locator_postcode.asp Type in the Postal Code "76555" and click Submit You will see 3 identical results. This is the problem I face. I...
  16. aonefun

    sql distinct

    I only want one record for every SoldToCMAcountNo, even when there are duplicates caused due to the inclusion of the other fields.
  17. aonefun

    sql distinct

    While DISTINCT will bring results of only one record per SoldToCMAcountNo from the first query listed below, it has no effect from the second query as there are more than one field specified in the SELECT statement. >How Do I alter the second query so that there is only one record per...
  18. aonefun

    proper code syntax for dynamically switching sql recordset query

    would a possible solution be setting the initial value of Request.Querystring("PostalCode") to a default value, such as "-1" and having this value remain unchanged unless there is a fresh value provided by the querystring value passed on from page two? If yes, how would I code this?
  19. aonefun

    proper code syntax for dynamically switching sql recordset query

    I did this test: If Request.QueryString("PostalCode") ="" Then Response.Write "The string is empty" Else Response.Write "The string was not empty" End If Surprisingly enough when I thought the string was empty it was not! Thanks for this valuable tip. Now what do I do? More app details-This...
  20. aonefun

    proper code syntax for dynamically switching sql recordset query

    Each of the following recordsets work as intended when used individually, however, I would like to switch between the two based on if Request.QueryString("PostalCode")has or does not have a value. I'm not sure if the proper code would include the IsNull or IsEmpy but when tried either one (see...

Part and Inventory Search

Back
Top