Search results

  1. H

    Text and combo boxes

    I tried the code, but it's giving me the same error message. On (Me.CbSourceFig) The query in the subform is nothing too complicated. It has the text box and combo box in the criteria (OR) Is there a way to stop the requery?
  2. H

    Text and combo boxes

    I have a text box where the user enters part of a number. the subform show all record that have part of that number. The combo box show all source of figures associated with that part number. The problem is when I make a selection with the combo box it disregards the text box and shows me...
  3. H

    Cleaning Code

    The names I used here were for this example. I have proper names in the database.
  4. H

    Cleaning Code

    Thank you!!
  5. H

    Cleaning Code

    I'm writing some code to hide the text box if the value is null. I have twenty text boxes. I'm using the code below, but I was wondering if there is cleaner way of doing this. Private Sub Form_Current() If IsNull(Me.Text0) Then Me.Text0.Visible = False Else Me.Text0.Visible =...
  6. H

    Exclude Zeros from query

    sorry, I've been playing with the code and I changed a part I should not have. It should be is not null or not "isnull". I'm trying to get the AS DIFF to show records that do not equal zero.
  7. H

    Exclude Zeros from query

    Yes, in the DIff Column
  8. H

    Exclude Zeros from query

    The query below returns a number of records that have a value of zero. How do I exclude those records? SELECT Len([MasterList_tbl]![AdditionalFig])-Len(Replace([MasterList_tbl]![AdditionalFig],",","")) AS Fig, MasterList_tbl.MasterNum...
  9. H

    Update Table based on two tables

    Thank you for you help. I got it working.
  10. H

    Update Table based on two tables

    I'm trying to create an update query. The update will be based on the QTY, Price, and Unit. In the code below I've done the first part of the formula. Inside the false section of the IIF statement I need to lookup the value of the Unit in another table then divide the (QTY*Price). The...
  11. H

    DLookUp issue

    It work!!! thank you
  12. H

    DLookUp issue

    I get #Error
  13. H

    DLookUp issue

    The [Number of vehicles] is stored as text. I tried = Text66 and I still got #Name?
  14. H

    DLookUp issue

    I have a text box on a form that looks up the number of vehicles in another table. there is only one value in the table. =DLookUp("Number of Vehicles","NumberOfVehicles","[Number of Vehicles]=" & [Me]![Text66]) Number of Vehicles is the column name NumberOfVehicles is the table name Text66 is...
  15. H

    Copy columns to another table and separate records with commas

    There is not a maximum number of additional fig/items and there can be records with no additional figs/items. Also, sometime there might be an additional item but no additional fig. (those records are erroneous and will be QCed later but they still need to be shown) This might be applied on...
  16. H

    Copy columns to another table and separate records with commas

    I have an access table that contains data similar to the first table below. (There is more but I don't need it for this part) MasterNum FIG ITEM Additional Fig Additional Item 88 BULK 24 130, 155, 157 22, 6 89 4-2 25, 212 11, 14 I'm trying to come up with a way to copy the...
  17. H

    Track changes in subform

    The problem is somewhat solved... I've added the ms activeX data objects recordset.... library to the reference. And i do not get the error message but I'm not getting the correct info. What the table audit table shows for OldValue is actually the new value and the NewValue field is blank...
  18. H

    Track changes in subform

    The error message does not highlight a particular line. the error message is coming from the auditerr: MsgBox. If I turn off the msgbox, the audit table is still blank. I've have added the space between "* FROM" and made the changes suggested by CJ, but I'm still getting the same error.
  19. H

    Track changes in subform

    I'm trying to track changes made to a subform. Anything added, deleted, or editted will be recorded in a table called Audit_tbl. When I make a add or edit a record i get a 3001:Invalid argument error. I'm calling the function in the form as Before Update event procedure. Attached are the...
  20. H

    Export Subform to excel

    I got it to work. the problem was I need to delete the temporary query before I created it. I added the code below before the query was created. On Error Resume Next DoCmd.DeleteObject acQuery, strTempQryDef On Error GoTo 0 Thanks for everyone's help!
Back
Top Bottom