Recent content by Access11

  1. A

    Error 2448 Can't Assign Value

    Yes the textbox is bound to the original Master table. This is the same scenario I have on my other project. I will look into the search
  2. A

    Error 2448 Can't Assign Value

    It's an Access Autonumber. I have this code on another project and it works, only difference is this project has the subform added to the main form. The code should assign a new number using Dmax function to add +1 before it is added to the table.
  3. A

    Error 2448 Can't Assign Value

    Morning all, I was wondering if someone could help with this code. I have a form and a subform. I want to pass the value of both form and subform to my Master2 table, however I get an error. Revsion No is an automuber field. The section in blue seeems to be the issue. Any help would be...
  4. A

    Code help from AllenBrowne not working

    Okay, I will look through the posts again and see what I can pick up, thank you.
  5. A

    Code help from AllenBrowne not working

    Is there a way to save the main form and subform data to a table without using SQL? An easier method I can try?
  6. A

    Code help from AllenBrowne not working

    I changed all the names to show as followd BOMNo, VersionCode, strSql = "INSERT INTO tblMaster2 (*) '" & _ "SELECT " & lngID & " As NewID, Type, No, VariantCode, Description, Quantity, Scrap% " & _ "FROM tblMaster2 WHERE BOMNo= '" & Me.BOM_No & "' AND VersionCode= '" & Me.Version_Code & "';"...
  7. A

    Code help from AllenBrowne not working

    Thank you, Yes I have reworked it a little to be more conventional.
  8. A

    Code help from AllenBrowne not working

    That's how Thanksgiving should be. Hope you enjoyed it. Unfortunately no I have not been able to sort this out. I tried all weekend to make any change that would work. I wish there was an easier way , where I wouldn't need SQL to run this code. Hopefully you can look at the DB and make...
  9. A

    Code help from AllenBrowne not working

    Enjoy your dinner and thank you for the time and effort you have put into this. I appreciate it.
  10. A

    Code help from AllenBrowne not working

    I cut down the DB to show just what can be seen. Basically the DB works this way. You select a BOM No (Build of Material) it populates on another form that has a subform. One BOM can have multiple No (Items) attached to it. when it opens user should be able to make revision and save to a...
  11. A

    Code help from AllenBrowne not working

    Okay I ran the SQL and obviously I did it wrong cause notiing came back. I did notice that when I got the error thought the very beginning of my Code was hightlighted in yellow. the Private Sub cmdSaveRevision_Click() part. Again sorry, I'm sure I'm testing your nerves now If...
  12. A

    Code help from AllenBrowne not working

    Sorry, I missed the post about the Single Quotes. I thought I had to use them as some fields such as Type, Varaint Code are text fields. Let me try and run the SQL Debug and see if I can do it. Sorry foir my lack of knowledge on these matters.
  13. A

    Code help from AllenBrowne not working

    Maybe I'm missing something. I just caught the Scrap % and made the change , anything else you see? MY VBA and SQL are subpar at best. I appreciate your help on this. My SQL is strSql = "INSERT INTO tblMaster2 (*) '" & _ "SELECT " & lngID & " As NewID, Type, No, [Variant Code]...
  14. A

    Code help from AllenBrowne not working

    Thank you for the tip I checked and all fields with spaces have []. Still not sure why the code is not working, any thoughts?
  15. A

    Code help from AllenBrowne not working

    Hello all, Happy Holidays I used a code from Allen Browne website to pass value from Form and Subform to a new table, but it does not work for me. Can someone take a look at the code and see what is wrong? I get a Compile error: Method or data member not found on my WHERE clause, at least...
Back
Top Bottom