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. 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...?
  16. dzepeda

    Automatic forecolor changing &amp; totaling values

    Two explanations can be the cause of the problem: 1) The field we are looking for is text type. If that's the case modify the sentence as: AuxVar = DLookup(&quot;[CitationID]&quot;, &quot;tblTrafficCitation&quot;, &quot;[MemberID] = '&quot; & MemberID & &quot;'&quot;) 2) There are not...
  17. dzepeda

    Inserting Data From Form

    I use still Access 97, but I use a different trick for this: I declare a Public variable for Criteria, after that I create a Public function returning the value of the global variable. In after update event procedure of the control I change the value of the variable to match the control. This...
  18. dzepeda

    Automatic forecolor changing &amp; totaling values

    Hi You forgot to say what field link two tables. I suppose MemberID in the tblMain with Member in tblTrafficCitation, otherwise change the red field in the code. Forget all the previous code I gave to you and in On Current event procedure of frmMain write: Private Sub Form_Current() Dim...
  19. dzepeda

    Automatic forecolor changing &amp; totaling values

    First create a Query for the total of each subordinated(based on the table wich contens the subform records): - Add a unique field for each employee (i.e. Social Security Number or EmployeeID), set the Criteria to FilterEmployee() - Add the value field : EmployeeTotal...
  20. dzepeda

    am new to access and I am trying t

    That's mean &quot;Select all fields of Products table order by ProductName&quot;(also all records). The reason why you can't see your data is not the SQL sentence(unless the table Products is empty), the reason is the property Column Width, this say to access what field show(width of each column...

Part and Inventory Search

Back
Top