...like this. Below are some of them. Could you get me started? Thanks.
=DCount("ID","DataTable")
=DMin("[RoadNumber]","ResidencesTable","[RoadName] Like '*" & [ResidencesFormRoadNameTextBox] & "*'")
=DCount("*","ResidencesTable","[RoadName] Like ""*" & [ResidencesFormRoadNameTextBox] & "*""")
I have several forms that use DCount, DLookup, DMin, and DMax. When I open the form the "D" text boxes are empty until I put the cursor in it and the correct value then appears. If I set the tab order to "0" on a particular "D" text box and open the form the value is displayed but that is no...
Hi:
I am using the following query for a text box (DLookup) on a form which works fine. However, there are quite a few records where the "Residence Name" is null which means there is one null record at the top of the list that the query returns. Is there anyway to eliminate that null record...
The following code returns "#Name?" and I can't figure out what is wrong with it.
=DMin("[RoadNumber]","ResidencesSpecificTable","[RoadName] Like '*" & ME.ResidencesSpecificFormRoadNameTextBox & "*'")
...& Me![1RegistrationNumber] & _
"' AND [1RegistrationState] = '" & Me.[1RegistrationState] & "' AND ID<>" & Me!ID
lngCount = DCount("*", "ParkingTicketsIssuedTable", strWhere)
If lngCount > 0 Then
MsgBox lngCount & "Other registration number(s) exist."
End If
End If
End Sub
...& Me![1RegistrationNumber] & _
"' AND [1RegistrationState] = '" & Me.[1RegistrationState] & "' AND ID<>" & Me!ID
lngCount = DCount("*", "ParkingTicketsIssuedTable", strWhere)
If lngCount > 0 Then
MsgBox lngCount & "Other registration number(s) exist."
End If
End If
End Sub
This following line of code is in red.
If Not (IsNull(Me![1RegistrationState]) Or (IsNull(Me![1RegistrationNumber]) Or IsNull(Me!ID)) Then
There is no error number - description, a popup just says compile error and syntax error.
Thanks.
...Or _
(IsNull(Me.ID)) Then
strWhere = "(1RegistrationState = """ & Me.1RegistrationState & _
""") AND (ID <> " & Me.ID & ")"
lngCount = DCount("*", "ParkingTicketsIssuedTable", strWhere)
If lngCount > 0 Then
MsdgBox lngCount & "Other registration number(s) exist."
End If
End If
End Sub
Hi:
I have a pop up form with a command button that pops up a message box which works fine. However, when it pops up the message box the pop up form goes full screen. What's wrong?
Thanks,
xmeb
I have a form on a tab in a six tab form which works fine except that one form is much longer than the others so it has a vertical scroll bar but when it is opened it is always at the bottom. Is there a way to fix that? Thanks.
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.