You may need to refresh the JET cache using the JRO.JetEngine Object (Microsoft Jet and Replication Objects 2.6 Library)
Dim pJE As New JRO.JetEngine
pJE.RefreshCache cnn
Set pJE = Nothing
Not sure about the case as I have never used it before! But could adding an additional iif to check if Value is 0 work?
iif(Value (GBP) = 0 AND Cost Of Sale > 0,
-100,
iif(Value (GBP) = 0 AND Cost Of Sale < 0,
0,
iif(Value (GBP) = 0,
0...
You could try using an iif statement:
iif(Value (GBP) = 0 AND Cost Of Sale > 0,
-100,
iif(Value (GBP) = 0 AND Cost Of Sale < 0,
0,
(Value (GBP) - Cost Of Sale)/Value (GBP)) * 100
)
) AS Margin
Think you might have your > and < the wrong way round. Should it be:
SELECT AssetCenterImport.[Remarks (Problem)], AssetCenterImport.[Notified On]
FROM AssetCenterImport INNER JOIN T_InventoryBilling ON AssetCenterImport.SerialNo = T_InventoryBilling.IB_SerialNumber
WHERE
(((...
Public Sub PrintTableNames()
Dim t As DAO.TableDef
For Each t In dbCurrent.TableDefs
debug.print t.Name
Next t
Set t = Nothing
End Sub
Where dbCurrent is your database.
Does using a >= <= rather than Between work?
sqlInsurer = "SELECT * FROM Renewals_Extract WHERE PolicyEndDate >= #" & SearchD & "# AND PolicyEndDate <= #" & searchE & "#"
or using the DateValue function
sqlInsurer = "SELECT * FROM Renewals_Extract WHERE PolicyEndDate BETWEEN DateValue('" &...
If you do a MoveLast it will populate the recordset and give you the number of records. You will need a check to make sure records exist first (not BOF or EOF).
You would need to put each one in a container i.e. a frame or use the cursor keys to move up and down them rather than tab.
Not sure if you can cause them to tab between each other.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.