Recent content by ashah08

  1. A

    HeIp!! I want to copy data from my mainform and subform and on button click create a new record?

    Hi @theDBguy please check your email when free.
  2. A

    HeIp!! I want to copy data from my mainform and subform and on button click create a new record?

    Hi All, Please help!!!! Please I am willing to pay anyone who can help me. This is important for me. Please help
  3. A

    HeIp!! I want to copy data from my mainform and subform and on button click create a new record?

    Hi @theDBguy @Pat Hartman Private Sub Command663_Click() 'On Error GoTo Err_Handler 'Purpose: Duplicate the main form record and related records in the subform. Dim strSql As String 'SQL statement. Dim lngID As Long 'Primary key value of the new record. 'Save...
  4. A

    HeIp!! I want to copy data from my mainform and subform and on button click create a new record?

    Hi @Pat Hartman Insert Into TransactionsDetails ([Description],[Order Quantity],[Received Quantity],[CategoryID],[SpeciesID],[ProcessID],[GradeID],[Price],[Unit of measure],[Cost Unit],[Currency],[Total]) Select [Description],[Order Quantity],[Received...
  5. A

    HeIp!! I want to copy data from my mainform and subform and on button click create a new record?

    Hi @Isaac i did read your comment and based on that only i asked you that question. i have a column named category ID in transactiondetails table and it gets the data from category table which has category 1, 2 , 3 in the form of drop-down. now whats my fault in this >??? i am trying my best...
  6. A

    HeIp!! I want to copy data from my mainform and subform and on button click create a new record?

    Hi @Pat Hartman @Isaac @theDBguy Hi @Pat Hartman @Isaac @theDBguy Good Morning!! @Pat Hartman You mentioned i need to put stop before the executing lines, how to do that ? how to get the sql code for data ? @Isaac what do you mean by (hint - it's Category #1). ??? @theDBguy please...
  7. A

    HeIp!! I want to copy data from my mainform and subform and on button click create a new record?

    Hi @Pat Hartman @Isaac Thank you so much for all the replies my windows just got crashed. I am sending this from my phone. I'll revert back based on your inputs as soon as my laptop is back to normal Thank you once again
  8. A

    HeIp!! I want to copy data from my mainform and subform and on button click create a new record?

    I read that but & save new I'd is to store new I'd and it's not a field in my form
  9. A

    HeIp!! I want to copy data from my mainform and subform and on button click create a new record?

    Hi @Pat Hartman @Isaac i tried all the possible ways mentioned but i am not able to figure out whats missing in my code what should i do ???
  10. A

    HeIp!! I want to copy data from my mainform and subform and on button click create a new record?

    Hi @Pat Hartman Private Sub CopyRecord_Click() Dim db As DAO.Database Dim rs As DAO.Recordset Dim td As DAO.TableDef Dim SaveNewId As Long Dim SaveOldID As Long Dim strSQL As String SaveOldID = Me.TransactionID Set db = CurrentDb Set td =...
  11. A

    HeIp!! I want to copy data from my mainform and subform and on button click create a new record?

    okay rs.AddNew rs![Date Expected] = Me.[Date Expected] rs![PO Date] = Me.[PO Date] rs![Requisitioner] = Me.[Requisitioner] rs![SupplierID] = Me.[SupplierID] rs![Destination ID] = Me.[Destination ID] SaveNewId = rs!TransactionID...
  12. A

    HeIp!! I want to copy data from my mainform and subform and on button click create a new record?

    Hi @Pat Hartman i want to clarify something based on the code that you gave me Private Sub CopyRecord_Click() Dim db As DAO.Database Dim rs As DAO.Recordset Dim td As DAO.TableDef Dim SaveNewId As Long Dim SaveOldID As Long Dim strSQL As...
  13. A

    HeIp!! I want to copy data from my mainform and subform and on button click create a new record?

    Hi TransactionsDetails is the table that relates to my subform and for my main its Transactions table so in the code that you just edited for me strSQL = " Insert Into TransactionsDetails ([Date Expected],[PO Date],[Requisitioner],[SupplierID],[Destination ID] )" --- all these are part of...
  14. A

    HeIp!! I want to copy data from my mainform and subform and on button click create a new record?

    Hi @Pat Hartman & @Isaac I was able to solve the insert into error from the last reply @Isaac now it shows me error strSQL = strSQL & " Select [Description] " & SaveNewId & " From TransactionsDetails" error is on this line and it states "missing operator in query expression access"
  15. A

    HeIp!! I want to copy data from my mainform and subform and on button click create a new record?

    HI All, I tried out the code mentioned above but i am getting error 3134 insert into statement error Private Sub CopyRecord_Click() Dim db As DAO.Database Dim rs As DAO.Recordset Dim td As DAO.TableDef Dim SaveNewId As Long Dim SaveOldID As Long...
Top Bottom