Search results

  1. F

    Solved Increase price by increased consumption

    Very thanks After trying the function , it works good for the first two prices only. but after that it gives wrong results. I give LtrsConsumed values like : 200 , it's returns 300 , RIGHT 500 it's returns 1050 , RIGHT 1000 it's returns 2600 , WRONG ( THE RIGHT IS 2800) 2000 it's returns...
  2. F

    Solved Increase price by increased consumption

    Dear all I have a field " LtrsConsumed" on InvoiceTBL contains consumed water liters No. ..... Where consumption price in groups as: 1 to 200 liter * 1.5 Rials 201 to 500 liter * 2.0 Rials 501 to 1000 liter * 2.5 Rials 1001 to 2000 liter * 3.0 Rials More than 2000 liter * 3.5 Rials Stored...
  3. F

    Requery a listbox in Main form but stay on current Record

    under : [Code] Private Sub ListOne_DblClick(Cancel As Integer) [code/]
  4. F

    Requery a listbox in Main form but stay on current Record

    it stay gives me msg: Record Not found and go to first record. q: where you want me to put that code? i put it under after update for the combobox (SerNo)
  5. F

    Requery a listbox in Main form but stay on current Record

    Ok that like as understand . Dim lngPK As Long 'change data type if yours is different 'set variable to current record ID lngPK = Me.SerNo Me.Parent.ListOne.Requery Forms![MainFrm]![OrdersSubFrm].Form! [ListOne] = lngPK 'Me.Requery 'return form to original record With Me.RecordsetClone...
  6. F

    Requery a listbox in Main form but stay on current Record

    please give me the complete code ?
  7. F

    Requery a listbox in Main form but stay on current Record

    thanks. but i don't want to requery my subform, i want to requery the Listbox (LstOne) on the mainform.
  8. F

    compose a module to call from forms

    i try : Public Function LTDYS(LftDate As Date, MyPtNm As String) Dim MyDate Dim LValue As Integer Dim MnthCnt As String MyDate = DateSerial(Year(LftDate), Month(LftDate), Day(LftDate)) LValue = DateDiff("d", MyDate, Date) If LValue < 10 Then MnthCnt = "day" Else MnthCnt = "days" End If...
  9. F

    Requery a listbox in Main form but stay on current Record

    no the Primary Key of the List Box (ServiceID) from the another table (in dblclick on it , it runs an append query to append groups of details in the sub from.)
  10. F

    compose a module to call from forms

    hiii all dears i have three forms , mainfrm , inside it OrdersSubFrm , inside it OrdDetSubFrm . i have a code to allert user if there are any changes , for any control in any form of this three forms. , after three days of the current date. i use this codes in the Form_BeforeUpdate event ...
  11. F

    Requery a listbox in Main form but stay on current Record

    it gives msg: Record not found. then go to the first record.
  12. F

    Requery a listbox in Main form but stay on current Record

    please give complete code. where put: Me.Parent.ListOne.Requery Forms![MainFormName]! [ListOne] = lngPK
  13. F

    Requery a listbox in Main form but stay on current Record

    Hiiii All I have a Form with Sub form , I add some data to sub form and then need to requery a listbox in Main form. i try : Dim lngPK As Long 'change data type if yours is different 'set variable to current record ID lngPK = Me.SerNo Me.Parent.ListOne.Requery 'Me.Requery 'return form to...
  14. F

    format a text box or combobox for new record only

    i have : a Single, Continuous and Datasheet View Forms. and suppose i have: a text box long data type and text box text data type , and a combobox of a number type and a text data type .
  15. F

    format a text box or combobox for new record only

    Hiii All i have a textbox , make format Like :@;"New Record" how to make its color red, only the word of New Record ? the default color for this record is black.
  16. F

    Audit trail For three forms to the main frm

    i have make an example with access 2007 , but not work . see to attachment.
  17. F

    Compile error: label not defined

    Very Very Thanks I try the Second choice , it works good. Exit_Function: ' Label to resume after error. Exit Function ' Exit before error handler. Err_OldDts: ' Label to jump to on error.
  18. F

    Compile error: label not defined

    Hiii All Dears I have read http://allenbrowne.com/ser-23a.html and try to do this in my db . this works good in forms and reports events.but i try to do in some special functions, but gives me "Compile error: label not defined " massage. please see my code: Public Function OldDts(SerAddDt...
  19. F

    Audit trail For three forms to the main frm

    Dear jdraw your Example is a good idea. but if user needs to show his changes dates for the current record in main form or in sub form ??
  20. F

    Audit trail For three forms to the main frm

    i try https://www.access-programmers.co.uk/forums/showpost.php?p=1530693&postcount=43 your Example.. sorry a refernce error. i add ms activex data object 2.8 library . and works good.
Back
Top Bottom