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 Mike Lewis 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. MattJW

    Need to have a query that changes Date of Birth to Age

    You can use the DateDiff and Now Functions within your query to calculate age. The Now() function basically returns the date and time from your System Clock. The DateDiff function calculates the difference between 2 dates for a given time interval (eg. years). You will therefore need to add a...
  2. MattJW

    Code for deleting a file on hard drive

    To Delete a File from a directory... dim strFile as String strFile = "C:\Program\Data\repair.txt" If Dir(StrFile) Then 'Check to see if file exists Kill strFile End If Hope this helps!
  3. MattJW

    File Path in data field

    The code below would loop through all .bmp files in the c:\myPics directory and update the Picture property of myControl. dim MyPath as String dim MyName as String dim objPicture as Object MyPath = &quot;c:\myPics\*.bmp&quot; MyName = Dir(MyPath, vbDirectory) Do While MyName <>...
  4. MattJW

    many to many relationship ??

    You need to you 3 tables in this circumstance Table 1 - Drivers *Driver ID Driver Table 2 - Cars *Car ID Car Table 3 - Xref *Driver ID *Car ID * - indicates key fields The Cars and Drivers tables both have a one to many relationship with the Xref table. Hope this helps!
  5. MattJW

    Getting information about record &quot;10&quot; while in record &quot;9&quot; et

    In the design view of your make table query add the following to the criteria (against REF field)... Not Like &quot;*zz&quot; This will filter out the Titles from your query results. Hope this helps!
  6. MattJW

    subtracting dates

    Try using the Datediff function which finds the difference between 2 dates using the interval you specify. The example below would give the difference in hours (&quot;h&quot;) between Date1 and Date2. DateDiff(&quot;h&quot;, Date1, Date2) Hope this Helps! Further info on this function is...

Part and Inventory Search

Back
Top