i need to create a query to find the balance of creditors with specific dates
example 1/1/17 up to 31/1/17
customer A 1/1/17 €20
2/1/17 €25
31/1/17 €25
01/02/17 €100
what was the balance till 31/01/2017 of customer A?
using offce 2016
Trying to update table "items" bases on the contents of table "temporaryitems"
what i need to do i to go and check if first record on my subform called "temporaryitemsqrysub1" already exists then go and update in table "items" but if does not then go and add it in table "items", then got to...
the control is textbox,
now the stop is working everywhere except this point
If [CUSTOMERNAMESEARCHFROMSALES2SUB]![PRICETYPE] = "PRICE1" Then
If ITEMSQRYSALESSUB!PRICE1 = 0 Then
Stop
DoCmd.OpenForm "ZEROPRICEPOPUP"
Else:
Private Sub ITEMCODE_AfterUpdate()
Me.ITEMSQRYSALESSUB.Requery
Me.ITEMCODESAVER = Me.ITEMCODE
If Me.ITEMSQRYSALESSUB.Form.RecordsetClone.RecordCount = 0 Then
MsgBox "NO ITEM FOUND"
Me.ITEMCODE.SetFocus
Me.ITEMCODE = Null
Else:
If Me.onepass = True Then
If [ITEMSQRYSALESSUB]![PRICE1] = 0...
If [CUSTOMERNAMESEARCHFROMSALES2SUB]![PRICETYPE] = "PRICE1" Then
If Me.ITEMSQRYSALESSUB!PRICE1 = 0 Or IsNull(ITEMSQRYSALESSUB!PRICE1) Then
DoCmd.OpenForm "ZEROPRICEPOPUP"
Else:
Me.PROS = [ITEMSQRYSALESSUB]![PRICE1]
End If...
the code is working only in a new button i create for this purpose
strange thing is that if i place this code
If Me.ITEMSQRYSALESSUB!PRICE1 = 0 Or IsNull(ITEMSQRYSALESSUB!PRICE1) Then
DoCmd.OpenForm "ZEROPRICEPOPUP"
Else:
Me.PROS =...
shoudl i change "value" with somethng else?
here is the code again
Debug.Print "Value: " & Me.ITEMSQRYSALESSUB
If Me.ITEMSQRYSALESSUB!PRICE1 = 0 Then
DoCmd.OpenForm "ZEROPRICEPOPUP"
here is what i did:
Debug.Print "Value: " & Me.ITEMSQRYSALESSUB
If Me!ITEMSQRYSALESSUB!PRICE1 = 0 Or IsNull(ITEMSQRYSALESSUB!PRICE1) Then
DoCmd.OpenForm "ZEROPRICEPOPUP"