Search results

  1. J

    Query to extract greatest number

    I have a table that keeps track of how many times an account is listed. I want to write a query that will only return the greatest number of occurences for that account. For example if acct 12345 has 3 occurences in the database I only want to return the information that is associated with the...
  2. J

    Convert date to number

    I would like to convert a date field to a number in a query. What I am trying to do is take 2 date fields and see how many days they are apart. For example if one date is 3/1/07 and the other is 3/1/06 I would like 365 days to be returned. Thanks for any help!
  3. J

    Delete Query

    I have exact duplicate records in my table. I would like to remove one of the records so there are no more duplicates but the original record remains. What is the best way to get these quickly removed? thanks for any help!
  4. J

    Form page fade out

    Where ican I find the timer function?
  5. J

    Form page fade out

    Is there any coding possibility that when a database opens a "splash" page will appear for a few seconds then will close leaving the main form input page? The splash page will just be used like an introduction to the database.
  6. J

    Calendar links to Outlook calendar

    I have a date field that utilizes a calendar object to fill in the field. I would like for this date field to also link with Outlook and put this date on the users MS Outlook calendar or task list. Is this possible?
  7. J

    Open query if condition is true

    Still just gives the message box.
  8. J

    Open query if condition is true

    Ok, well your code didn't exactly work so I made some modifications and combined yours with mine. It keeps going to the message box but the account I am using should come up. Any ideas? Private Sub Command2_Click() If DLookup("[Acct]", "qryTest", "[Acct]= '& Forms![Form]![Account]'") = True...
  9. J

    Open query if condition is true

    That is almost working. How can I include a message box that says account can't be found if it doesn't meet any criteria?
  10. J

    Open query if condition is true

    I have a database with 3 tables. Each table has an account number field however the tables are completely different as are the account numbers that populate them. To go with the tables are queries that will bring in desired information. What i would like is for the user to input an account...
  11. J

    Open Query if field is true

    that seems like it would join the queries together. They need to be completely separate. The following is some code I have been trying and it is almost what i need except I believe my syntax is off somewhere. Any ideas? Private Sub Command2_Click() If IsNull(DLookup("[Acct]", "qryTest"...
  12. J

    Open Query if field is true

    I have 3 queries that pull from 3 dfferent tables. All 3 tables contain a field called Acct but the other fields in the 3 tables are different. What I would like is to have a form field that the user can input an account number and depending on which query the account number is in, that query...
  13. J

    Open Query if field is true

    I have 3 queries that pull from 3 dfferent tables. All 3 tables contain a field called Acct but the other fields in the 3 tables are different. What I would like is to have a form field that the user can input an account number and depending on which query the account number is in, that query...
  14. J

    Open Query if field is true

    I have 3 queries that pull from 3 dfferent tables. All 3 tables contain a field called Acct but the other fields in the 3 tables are different. What I would like is to have a form field that the user can input an account number and depending on which query the account number is in, that query...
  15. J

    Run Time Error

    that solved that problem but now I am getting a run time error that says "You cancelled the previous operation" When I debug it goes to the second if statement
  16. J

    Run Time Error

    that solved that problem but now I am getting a run time error that says "You cancelled the previous operation" When I debug it goes to the second if statement
  17. J

    Run Time Error

    I have the following code linked to an event. when I run this I am getting a run time error that says "Data type mismatch in criteria expression" Any ideas on what could be the problem? Private Sub Command2_Click() If IsNull(DLookup("[Acct#]", "qryTest", "[Acct#]=" & Forms![Form]![Account]))...
  18. J

    Query Decisioning based on Form Input

    Also, when I debug it goes to the first If statement.
  19. J

    Query Decisioning based on Form Input

    I am getting a run time error 3464, Data Type mismatch in criteria expression. Any ideas on this?
  20. J

    Query Decisioning based on Form Input

    Query names are Test1, Test2, Test3 Report names are Report1, Report2, Report3 (The entire database is in a test mode if you can't tell)
Back
Top Bottom