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 SkipVought 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. JohnLowell

    criteria not working

    Thanks dhookom..... This is the correct one: =Format(DSum("(([logout]-[login])*24)","tblLogInOut","[employeeID]= " & Reports!rptBiWeekly!txtEmployeeID & " And [workdate] Between #" & Forms!frmloginout!txtStartDate & "# And #" & Forms!frmloginout!txtEndDate & "#"),"#.00")
  2. JohnLowell

    criteria not working

    Try This: =Format(DSum("(([logout]-[login])*24)","tblLogInOut","[employeeID]= " & Reports!rptBiWeekly!txtEmployeeID & " And [workdate] Between & #" & Forms!frmloginout!txtStartDate & "# And #" & Forms!frmloginout!txtEndDate & "#"),"#.00")
  3. JohnLowell

    criteria not working

    You need to delimit the date criteria with # signs. Try using this: And ([workdate] Between #" & [Forms]![frmloginout]![txtStartDate] & "# And #" & [Forms]![frmloginout]![txtEndDate] & "#")
  4. JohnLowell

    report expression(as copied from microsoft help example) syntax error

    I believe Currency is a reserved word. Name the text box that holds the field Currency to txtCurrency and the change your expression to: =IIf(Me.txtCurrency = "YTL", "Yes", "No") Hopefully this will work.
  5. JohnLowell

    show query criteria on my report

    I created 2 columns in the Select part of the query to use on the report. Select ....,[start date:] as StartDate, [end date:] as EndDate From....... I hope this helps.....
  6. JohnLowell

    Can you set a User Defined Variable to Empty?

    Try using Erase on the array...... Hope This Helps, John
  7. JohnLowell

    Colour Negative fields in Report

    You can use the format property of the text box control. Try this: $#,##0.00[Black];-$#,##0.00[Red];0;" " The format property is broken down like this: positive value; negative value; zero value; null value I hope this helps.
  8. JohnLowell

    Parsing Problem.

    try This: ?DEnd("[area]","last", BuildCriteria("[station]",dblong,"=" & Forms![dcform]![station] & " AND [process] = 1"))
  9. JohnLowell

    open text files with spaces in pathname

    try using this: Open FileName For Input As #FileNumber
  10. JohnLowell

    open text files with spaces in pathname

    You could try a couple of things..... First try and take out the "\" in the file name. If that doesn't work, try using the full name of the file including the drive and directories (i.e. "C:\Program Files\gen detail.txt"). Hope this helps... John
  11. JohnLowell

    Can this be done? Code to loop through querys and tell if field exists

    Try This: Sub CheckQuerySQL() Dim dbs as Database Dim qdf as QueryDef Dim strSQL as String Dim strSearchFor as String Set dbs = CurrentDB dbs.QueryDefs.Refresh strSearchFor = "ColumnName" For Each qdf In dbs.QueryDefs strSQL = qdf.SQL If...
  12. JohnLowell

    Single Quotes in a Line of Code

    If the Company name will never have a double quote, you can use this: Me.RecordsetClone.FindFirst "[COMPANYname] = " & chr(34) & Me![Combo28] & chr(34)
  13. JohnLowell

    new field using ALTER

    Try and use the Float data type: ALTER TABLE VENDORS ADD last_column Float; You can't specify the size (or decimal places) of numbers, that's why they have so many different types. You should look up SQL Data Types in the help file. John
  14. JohnLowell

    Dbl click email address on form and open outlook

    This is the easiest way I have found to send an email: Application.FollowHyperlink "mailto:" & strLocation, , True strLocation is the email address (Him@her.com)
  15. JohnLowell

    Open a Microsoft Word file

    Try: Application.FollowHyperlink "C:\Folder\Word.doc", , True This will open the document (or any other file) in it's default program. I use it for PDF's, Text files and even Access MDB's
  16. JohnLowell

    Cannot open associate xbase file !!!

    Try linking the dbf file into Access. You can then treat the dbf file as a table.
  17. JohnLowell

    Can't open any reports in design or preview

    Check your printers and make sure you have a default printer set up.
  18. JohnLowell

    HELP.....problem with left (and right) string function

    Try Using: Left([Report].[txtBox1],2)
  19. JohnLowell

    Copy file

    You can use FileCopy to copy the file. Example: FileCopy strFileToOpen, "C:\New Folder\Folder
  20. JohnLowell

    SYNTAX field with space

    Add brackets around Date added filed name [Date added]

Part and Inventory Search

Back
Top