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 Chriss Miller 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 Hanss

  1. Hanss

    Query which shows results?

    Hi, I am wondering if there is anyway to do this with an access query: I have table1 with two fields and data: Temp: Count: 15 2 20 3 I would like a query that generates the following results: Results: 15 15 20 20 20 I would...
  2. Hanss

    Pass criteria from a text box to a query.

    Hi All, Thank you for your posts! I was able to get what I wanted using the above link. Many Thanks!!!
  3. Hanss

    Pass criteria from a text box to a query.

    Table1 contains 4 records: Red Black Green Pink When I put the following in the criteria of a query I get two records: “red” or “black” My problem: I have form1 with a texbox1. I put the following in the query criteria: Forms![form1]![texbox1] I type the following the textbox1...
  4. Hanss

    Merging Table Data

    Thank you VERY much for pointing me in the right direction! hanss
  5. Hanss

    Merging Table Data

    I would appreciate if someone could point me in the right direction: This is the data that I have in table1: Field1 Field2 Field3 10 20 30 40 50 60 I would like a query or vba that merges the data into this: Field1 10 20 30 40...
  6. Hanss

    How to calculate a formula in a text box?

    EVAL works. Thank you VERY much for your valuable help! Hanss
  7. Hanss

    How to calculate a formula in a text box?

    I have an access form with: text field "text1" text field "result" command button: "button" If I enter "2 + 5" in text1 and press the button I would like VBA to put the answer: "7" in the result field. This only puts the formula "2 + 5" in the result field: Me.result = CStr(Me.text1) Would...
  8. Hanss

    VBA for returning the name of a file.

    Greg, Thank you also for this really short version. It works great! Hanss
  9. Hanss

    VBA for returning the name of a file.

    Hi Greg, Thank you VERY much for your help! Your code works fine. If you do find the direct method, that would be interesting, but I can live very well with what you have given me. Kind regards, Hanss Zurich
  10. Hanss

    VBA for returning the name of a file.

    Greg, Thank you for your interest! I want to return the name of the only file found there There is only one file in C:\test\ which was created by a scanner. For example: 081010200131.pdf With kind regards, Hanss
  11. Hanss

    VBA for returning the name of a file.

    Hi, I have a form with a button and a field called "file" When I push the button I would like the code to find the name of an unknown file in C:\test\ and then put it in the field "file" What I have tried: Dim fso As Object Set fso = CreateObject("Scripting.FileSystemObject") Me.Name =...
  12. Hanss

    VB code in a Text Box?

    I managed to figure out the answer myself. Simply put the form info where you have the "me". Many Thanks! Hanss
  13. Hanss

    VB code in a Text Box?

    THANK YOU! This works! Just one more question: What should I type in the box if *text1" is on another form? For example if "text1" was on a form called "form2" If I type: Forms![form2]![text1] into the "where" box I get an error saying that the field cannot be found. Many Thanks! Hanss
  14. Hanss

    VB code in a Text Box?

    I have a form with two text boxes named "text1" and "where" This code will put "2" in "text1": me.text1 = 2 Question: How can I do this? Type "me.text1" into the "where" box and VB puts "2" in the "text1" box, not the "where" box. Many Thanks! Hanss Zürich
  15. Hanss

    Error: Variable not defined.

    Thank you both for clearing this up for me. I am slowly learning that not everything that works in VB also works in VBA... - Hanss

Part and Inventory Search

Back
Top