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!

Recent content by dzepeda

  1. dzepeda

    Time of First and last record in DAY.

    Try something like: SELECT Format(Max([Time])-Min([Time]),"hh:nn") AS Elapsed, Format([Time],"dd-mm-yyyy") AS Day, YourTable.StaffMmember FROM YourTable GROUP BY Format([Time],"dd-mm-yyyy"), YourTable.StaffMmember; This must return the elapsed time between the first and the last hour of...
  2. dzepeda

    Selecting Most Recent Date in a Query

    This is not a criteria, you must show the totals row (menu View ->Totals), under your field will appear Group By , then select Max as Total (you also can select min, averange, count, etc) Greetings from Chile
  3. dzepeda

    Use Strig as criteria in Query

    flugh: Like I say previously the logic of the sentence is not the problem. I put the generated sentence manually in the query and It works exactly as I want, the problem is to make this through a parameter(The sentence is generated automatically)
  4. dzepeda

    Use Strig as criteria in Query

    OhioSteve Thanks for the tip, but probably my bad english cause I can express my problem appropriately: The criteria is a combination of values of one field of one table(And - Or combination) and not only a fixed value. In code: 'StrQuery is a Public Variable StrQuery="[Table].Field1...
  5. dzepeda

    Use Strig as criteria in Query

    The idea is select only the recors where Field1 is diferent of a serie of values: i.e. Field1 Field2 ------------------------------ a ! 1 b ! 2 a ! 3 d ! 4 h ! 10 1) Select only the fields <>&quot;a&quot...
  6. dzepeda

    Use Strig as criteria in Query

    I have a string with the criteria in a select query (source of another) something like &quot;[Table].Field1 <> 'X' and [Table].Field2 <> 'XX'&quot;. I'm not able to make the query through code, 'cos It's a part of a second query, and that part of another... I try to make a function who pass the...
  7. dzepeda

    How to change font size in a form in datasheet view?

    Thanks Garridon, very helpful. Honestly I don't watched at the menu bar and I've tried the property tab several times with no result.
  8. dzepeda

    How to change font size in a form in datasheet view?

    In some samples I saw that. How can I do this? Thanks
  9. dzepeda

    set visibility of a Lable based on results of query, and comparison...

    You can make a table (PassTbl) with only a field (Ctrl), type Yes/No, now create only one record with value yes. Create a query an set relationship between the Complete field and Ctrl field of PassTbl. That must show you only the record with Complete=True Greetings from Chile
  10. dzepeda

    Check Box

    Try putting this in the on change event procedure of your text box: Me![MyCheck] = (Len(MyText.Text) > 0) Where MyCheck is your Checkbox Name an MyText is the textbox you want to link.
  11. dzepeda

    Moving data from one form to another

    See thread702-597199
  12. dzepeda

    Pass the value

    Andyukcy: The open argument field is a string, you can pass the value to the second form join the three fields in one. The second option is declaring three Public Variable and set the value you want in that before open the new form.
  13. dzepeda

    How to transfer data from field on form to other form?

    I suggest modify your form and replace the check boxes for Option Button(even you can make that look like checkbox) The easiest way is make a new frame with the wizard enable, then enter the values Monday..Sunday an select the aspect. Also you don't need to validate if the user has selected...
  14. dzepeda

    Need a faster way to do these Process

    This code will make the replacement: [code] Sub ReplaceField() Dim dbs As Database Dim rst As Recordset Dim Po_Previo As Integer Set dbs = CurrentDb Set rst = dbs.OpenRecordset(&quot;SELECT * FROM [Table]&quot;) With rst .MoveLast .MoveFirst...
  15. dzepeda

    Automatic forecolor changing &amp; totaling values

    I'm happy to help you and thanks for the star, anyway what was the problem...?

Part and Inventory Search

Back
Top