Search results

  1. B

    delete the .00 trailing zeros in price

    In design view for the form, select the control that contains your price, in the property sheet select the Format tab, you will see Decimal Places where you can set it to 0 and it will not show the decimal portion. But, if you don't always want the decimal to not show except when it is actually...
  2. B

    Embeding image in form that isn't linked to the underlying data

    It doesn't work with Dlookup, it has to be in the underlying record source so try adding it to the query. As far as displaying as an icon in the form, go into design view, select the control and in the property sheet data tab, you will see Display Type, select Content.
  3. B

    Embeding image in form that isn't linked to the underlying data

    Instead of using the attachment data type, use an ole object. You can directly reference the Ole object in form and report controls.
  4. B

    Date Criteria

    You can attach it here, look for the paper click in the formatting section above where you type your message and you'll need to zip it up. Make sure your clicking Post Reply, not the Quick Reply.
  5. B

    Date Criteria

    If you could pare it down to just the table (remove most records) query form etc. you are working on I could better see how to accomplish your goal.
  6. B

    Date Criteria

    Would you be able to attach the DB?
  7. B

    fixed format numbers required from a list

    Here is a way to do so: DigitsBeforeDecimal = CInt(12345.345) DigitsAfterDecimal = Right(1234.434,Instr(12345.345,".")-2)
  8. B

    Date Criteria

    What information is unique to table1 that is also stored in table2? If you don't have that you will not likely get good consistent results.
  9. B

    "Data type mismatch in criteria expression" Error

    Maybe it just doesn't see the Alias ETD_Date as a date data type. Have you tried surrounding it with CDate()?
  10. B

    "Data type mismatch in criteria expression" Error

    Have you reduced your query down to the point where you don't get the error? That should lead you to knowing what syntax is off. Also, for performing date math try using the DateDiff function. DateDiff("d",[Date Stamp],[ETD_Date]) AS Day_1
  11. B

    Store Attachments in SQL Server

    I'm a novice, but you should be able to create a field in the table on your SQL server as data type Blob or LongBlob and store the file directly as an OLE Object on your form.
  12. B

    Delete table record

    Instead try Me.Refresh and if that doesn't do the trick try docmd.GoToRecord,,acFirst
  13. B

    Question Text, Number, Combo Box, and Check Box Search

    Are you using a query and trying to set the column criteria's based on your forms selection? Or, are you trying to modify controls shown on a form based on the forms selection? And, it would be helpful to see your DB to get a better understanding why your using the search form. Thanks.
  14. B

    Delete table record

    To your code add Me.requery: Private Sub cmdDeleteEmployee_Click() On Error GoTo Err_cmdDeleteEmployee_Click DoCmd.RunCommand acCmdSelectRecord DoCmd.RunCommand acCmdDeleteRecord Me.requery Exit_cmdDeleteEmployee_Click: Exit Sub Err_cmdDeleteEmployee_Click: MsgBox...
  15. B

    Delete table record

    Are all the controls bound to fields on the same table or are you using subforms on each of the tabs that have a master/child link? If the later you may simply need to add an Me.requery to cycle the records.
  16. B

    Append Time Value to a Date Data Type Varaible

    Access is smart so if it looks like a date with time Access will allow you to concatenate the two fields. I added CDate just to ensure it is stored as a Data Type Date. Cdate(#6/27/2013# & " " & #5:00 PM#) This will result in 6/27/2013 5:00:00 PM.
  17. B

    Delete table record

    On the surface your code looks good but I'm guessing you either have other code running in other events that is modifying the record prior to your deletion attempt creating the violation or you are trying to delete a new record that violates your data rules. Try adding this to your code: If...
  18. B

    Calculations in a Form

    Your welcome. Glad I could help.
  19. B

    Calculations in a Form

    For bound controls that you would like to automatically populate based on information recorded in another control you can take advantage of the After Update event to perform the calculation and assign the value. In the Text128 After Update event add the code to calculate the VAT and Total: If...
  20. B

    Last Thursday of previous month

    No question really can be considered an easy question. Here is a function to return the last Thursday of the previous month: Function GetTh(dtDate As Date) As Date Dim LastDate As Date, WeekD As Integer LastDate = DateSerial(Year(dtDate), Month(dtDate), 0) WeekD = Weekday(LastDate, vbSunday)...
Back
Top Bottom