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. sbohman

    I want to run a macro every saturday which in turn runs a query.

    Create the macro, then create a shortcut to the macro by dragging the macro object from the database window to your desktop. Open the Scheduled Tasks folder (Start-All Programs->Accessories->System Tools->Scheduled Tasks) Drag the new macro shortcut to the task folder. Then double click the...
  2. sbohman

    Mail Merge from Access form to a word document

    The office link looks at the data source property of the form that is active when the link is started. The specific field you had focus on, and it's value are not considered for the connection. For your example to work qryletterintro should be the data source of the form that is active when...
  3. sbohman

    Auto update year in DMax

    Try putting everything together in on one line like this: =Right(DatePart("yyyy",Now()),2) & "-" & DMax("[fieldname]","tablename")+1 This will work as the default property for a text box on a form. It does not work as the default property of a field...
  4. sbohman

    Auto update year in DMax

    Make sure the field datatype is string then use the datepart function to get the year, and the right function to get the last 2 digits. dim strYear as string strYear = Right(DatePart("yyyy",Now()),2) yourVariable = stryear & "-" &...
  5. sbohman

    Limiting results in a Query

    You can return the single parts along with the other fields by using a subquery to select the single parts. Select c.Part#, p.Year, p.Model, p.Code from SELECT Count(Part#) AS CountPart#, Part# FROM PartTable GROUP BY Part# HAVING Count(Part#)=1) as c, PartTable as p where c.Part# = c.Part#...
  6. sbohman

    I NEED HELP REMOVING THE DASHES!!!!!

    Open the table with the social security number. Choose Replace from the Edit menu. In the dialog box type the single dash - in the Find text box. Leave the Replace With text box empty. Make sure the Look In box is set to the correct field. Set the Match box to Any Part of Field. Click Find...
  7. sbohman

    contents of txt box into combo box *as* the user types them

    My test form only has the two object, names exactly as shown in the code. It works properly in mine. Does the error message give any other description besides the numbers?
  8. sbohman

    contents of txt box into combo box *as* the user types them

    Add code to the KeyPress event for txtbox1. The code will append characters to the contents of cboBox1 as you type. The code catches backspaces and removes a character from the cboBox1. And it catches and ignores control characters. Private Sub txtbox1_KeyPress(KeyAscii As Integer) Dim...

Part and Inventory Search

Back
Top