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. PhilipSchroevers

    Problem with Left String Function

    Try using Right and Mid, if these give an error too, maybe the follwing might help (I copied this from the Acces General Discussion forum on a problem using the Right function). The References window refers to object libraries available to you. An object file is a file with an .olb extension...
  2. PhilipSchroevers

    Placing the Cursor in a Form

    Q2: put in the commandbutton code (OnClick event): DatForm![datum] = Null Q1: Use DatForm![datum].SetFocus Q3,: What do you mean by Commandname, if it is the name of the control (like datum being the name of the field) it is in the Properties combobox on the Other tab, first entry (Name).
  3. PhilipSchroevers

    Placing the Cursor in a Form

    Q2: put in the commandbutton code (OnClick event): DatForm![datum] = Null Q1: Use DatForm![datum].SetFocus Q3,: What do you mean by Commandname, if it is the name of the control (like datum being the name of the field) it is in the Properties combobox on the Other tab, first entry (Name).
  4. PhilipSchroevers

    Calculating datediff using 'If' & 'Then' statements

    Gary, ReturnTheDate doesn't return a date, it just sets the value of a local variable.
  5. PhilipSchroevers

    Adding a Carriage return to a string

    Where do you try to display this string? On a report, in a text box?
  6. PhilipSchroevers

    Null Date Query Results Inconsistent --

    Strange... Does does latest problem happen on both the Development and Production database? If you want to, create a new application by merging the relevant form(s) and tables (etc.) and mail it to me offline: westwind@euronet.nl and I'll have a look at it.
  7. PhilipSchroevers

    Setting a form's Order By property

    Execute Me.OpenBy = "" in the forms Open event.
  8. PhilipSchroevers

    Million dollar Question-Access 2000-Dates

    Just a small remark: if StartDate=EndDate the employee is selected twice for the same day in Terry's solution. Depends on the reportstructure if this is a problem, but why not put [End date] + 4 in the last select? Nice solutuion though (and a nice challenge from Michael!).
  9. PhilipSchroevers

    Adding 7 hrs to Date()

    Yes, I see what you mean. The time is displayed as soon as the field gets the focus. Access displays the "true content" then, including Time UNLESS there is no timepart. This explains why the other suggestions did work, they are based on Date() which does not contain a Timepart. My...
  10. PhilipSchroevers

    Null Date Query Results Inconsistent --

    Sorry, no idea.. Is the Production database also Access or is it (e.g.) a linked SQL server or Oracle DB? Are there version differences between your development and production environment. What is the query code?
  11. PhilipSchroevers

    Adding 7 hrs to Date()

    OK, but what's wrong with MyDate = DateAdd("h",-7,Date) In words: give me the date of seven hours ago.
  12. PhilipSchroevers

    A SIMPLE COMPARSION SO I THOUGHT! HELP!

    What am I overlooking? You're not selecting from tblClientSelect so what's the comparison for? Please explain what you are trying to do. If it is just selecting all distinct ClinetId/DateOfTraining combinations from Training Details and create for each of them a record in tblClientSelect, just...
  13. PhilipSchroevers

    Using DATE to calculate a value for yesterday

    Dave, It loks great, but I do't get it to run (illegal option - --) and I don't understand it either Where did you find this? Philip
  14. PhilipSchroevers

    character limitations in access through linked excel files

    I'm afraid you're in trouble. Check articles Q105416 and Q213841 on support.microsoft.com. They describe a similar problem, it boils down to Excel 95 code being used in Excel97 AND EXCEL2000(!). In the first article (about Excel97) Microsoft acknowledges this to be a problem, but in the second...
  15. PhilipSchroevers

    simple but needed: limit to list problem

    Check the Table definition of the table the field you are trying to enter belongs to. I have a feeling that a Lookup has been defined to the table Action Types. Another possibility is that a relationship has been defined between the two tables.
  16. PhilipSchroevers

    Page Breaks

    Small addendum to Neddy's solution: I suppose you just want to replace multiple pagebreaks with a single one. Follow Neddy's solution, but replace ^m^m with ^m. You must repeat a "Replace all" until no more replacements are reported (to get rid of "triplets and higher").
  17. PhilipSchroevers

    Need help with date calculations in access...

    Check out the DateDiff, DateAdd and DateSerial functions in the Access Help. They'll solve your problem (and many more)!
  18. PhilipSchroevers

    importing from excel into my database.

    If you don't want the duplicates, make sure that the tabe properties do not allow them (a primary key is sufficient). Then use the wizard. It will NOT accept the duplicates, but it will accept all the other records. The records that were NOT accepted are put in the table ImportErrors. If the...
  19. PhilipSchroevers

    Now how do I count the number of results i get in the report/query?

    Ok, your SQL should look something like: SELECT CAT_LOOKUP.CATEGORY, COUNT(Maintman.someField) AS NmbOfCats,<otherfields> FROM Maintman RIGHT JOIN Cat_Lookup ON Maintman.category = Catlookup.category WHERE (Maintman.Date >= Begindate and Mainman.Date <= Enddate) or Mainman.Date Is Null GROUP BY...

Part and Inventory Search

Back
Top