Recent content by oltroman

  1. O

    Search in recordset

    Spikepl thanks for the explanation, yes, I found another way, but going to try select method :)
  2. O

    Search in recordset

    Thanks for those who comments my thread I solved this one :D .MoveFirst Do Until .Fields("Barcode").Value = StrBarcode .MoveNext Loop Cheers.. what a relief
  3. O

    Search in recordset

    I used "SELECT * FROM Inventory WHERE [ID] = " & dblID and Got; Compile Error, Expected: line number or label or statement or end of statement
  4. O

    Search in recordset

    Jdraw Forgot to mention, I only know access 2007, and in access 2007 Me.oBarcode is a way to call what ever inside a form. In this case a combo box named oBarcode instead of Forms!Inventory!oBarcode (I know I got the wrong order hehe but you got the idea right?)
  5. O

    Search in recordset

    Boblarson, this meant to be for equipment tracking program. Job number is stored in a table, and equipment in another, when ever an equipment is out, it will be sent to a location with certain job number, I need to attach that job number to that equipment and date as well. That's why it's done...
  6. O

    Search in recordset

    Guys I appreciate all helps, I am using Access 2007, here's my full routine Private Sub Command37_Click() If Me.oBarcode = "" Then MsgBox "Please Enter Barcode Input" Exit Sub End If Dim StrBarcode As String Dim Counter As Long Dim StrJob_No As String Dim RstInv As DAO.Recordset2 Dim RstMan...
  7. O

    Search in recordset

    I tried to use .FindFirst but got some error. Can someone guide me how to use findfirst? Thanks
  8. O

    Search in recordset

    Hi, I have written this code for a search in inventory using recordset. It does work but it got bug and sometimes return the wrong lines Set RstInv = CurrentDb.OpenRecordset("Inventory") With RstInv .GetRows ([StrBarcode]) .MovePrevious .Edit .Fields("Job_No").Value = StrJob_No...
  9. O

    PLS HELP: Searching for Null in Recordset with do loop

    I've been doing something else these few days and put this on hold until today. I tried IsNull() function. work like a charm. Thanks rural Guys :D:D:D
  10. O

    PLS HELP: Searching for Null in Recordset with do loop

    Hi, I want to find empty field (Null/ "") but did'nt work. When I tried this code with for example "t", and put "t" in the field, the code does work. Here's the code, Set RstInv = dbInv.OpenRecordset("DateRecord") Counter = 4 With RstInv .GetRows ([StrBarcode]) .MovePrevious...
  11. O

    PLS HELP: Change the value of table using DoCmd

    One more thing that bother me, I want to find a new line that's empty and add value to it (in this case date) Set RstInv = dbInv.OpenRecordset("DateRecord") With RstInv .FindLast 'I got error here why???? .AddNew .Fields(BarcodeL).Value = Forms!IN_OUT.oInOut & Date .Update End...
  12. O

    PLS HELP: Change the value of table using DoCmd

    I use this code Set RstInv = dbInv.OpenRecordset("Inventory") With RstInv .GetRows ([StrBarcode]) .Edit 'Put the field you update and the data you want to enter .Fields("Job_No").Value = StrJob_No 'Updates the newly added record .Update End With Only 1...
  13. O

    PLS HELP: Change the value of table using DoCmd

    I see, so have to use DAO StrBarcode value is the Primary key for the lines that I want to edit for examples line "9" With DAO how do I go to line 9 for example? and then Edit Job_No field. I don't want to AddNew. Thank you very much. Yes I am noob in VBA :)
  14. O

    PLS HELP: Change the value of table using DoCmd

    Hi, Private Sub Toggle21_Click() Dim StrBarcode As String Dim StrJob_No As String StrBarcode = Forms!Outgoing.oBarcode '=9 (for example) StrJob_No = Forms!Outgoing.oJob_No '=Test (for example) 'Open Marketing Form DoCmd.OpenTable "Inventory" 'Add new record OK up to here DoCmd.GoToRecord...
  15. O

    PLS HELP: Query tied with form Access 2007

    I see, I miss a "S", Thanks a lot
Back
Top Bottom