47 questions
0
votes
2
answers
61
views
DLookup with Multi Criteria assistance?
I am seeking to create a multi criteria DLookup for my DB and have not had much luck. I have a db, has 1 form with 3 sub forms sort of like a cascading combo. Lets say I put "Test" in first ...
0
votes
1
answer
60
views
Run-time error '3075': Syntax error (missing operator) in query expression 'CustomerID='
When there is data with the same CustomerID, the button is bold, otherwise it is not. This is my error when we click to add a new Customer.
Run-time error ‘3075’: Syntax error (missing operator) in ...
0
votes
1
answer
311
views
Access Dcount function with 4 criteria
I appreciate some help
I am trying to use Dcount function with 4 criteria
I have a text box in a form to count records on table_orders
The DCount function has 4 criteria:
The ID field in table_orders ...
0
votes
1
answer
289
views
How do i resolve this MS Access Dcount error?
Getting the following error....
<The expression you entered as a query parameter produced this error: 'rs!StoreID'>
rs!StoreID is an integer in the Stores table and prints out just fine in the ...
2
votes
0
answers
335
views
DCount using a Dim reference in Access VBA
Really struggling to get my reference to register in the search? I'm trying to create a check to see if the record is already in my table?
Private Sub Command10_Click()
Me.UniqCONCAT = (Me....
0
votes
1
answer
477
views
Using Dcount with Access VBA produces error message
I'm trying to create a number of reports in Access 2016. One report is a simple message box that will display the number of records in a specific table ("tbl_Data") WHERE the "...
0
votes
1
answer
597
views
Can I use DCount to populate a textbox with criteria from a different table?
I have been having much trouble with this problem. I have a table in Access called "Import" that I import records to. Each record has a facility name that corresponds to a "region" ...
0
votes
1
answer
184
views
How to count specific value in a table in Access query
I'm using Dcount on a query column to get how many 1 from another table. I have given the current query column value in the parameter of Dcount as below.
DCount("AttnStatus","...
0
votes
0
answers
43
views
Can I add text after the Dcount formula in unbound text field of Ms Access Form?
I want to add a text after Dcount formula in Ms Access Form. I use the unbound text field to use the DCount formula however I would like to add 'text' within the same field after Dcount formula ...
0
votes
1
answer
302
views
undefined function dcount in expression
I am using Access 2016. I am using dcount in my query however I am getting this error "undefined function dcount in expression". Any idea how can I fix this issue?
here is my syntax
SELECT ...
0
votes
0
answers
188
views
Access VBA If check box = true open query but give message if empty
I've seen a number of post about not opening a query if the query is blank but not sure where to have the code to check the output of the query. Before the query is run i have a number of conditions, ...
0
votes
1
answer
46
views
How to check if value exist in two tables
Hi I've searched the net and couldn't find the right answer to my question.
I have two tables GCSALLDATA and GCS-RECONCILED. They both have the same columns but I only need to focus on two [Control ...
0
votes
2
answers
669
views
Nested Dlookup VBA
I'm trying to display the Vendor Name and a message that a selected PO Number (from a combo box on the form) does not require QA in a message box. The DLookup to get the vendor number from the PO ...
1
vote
1
answer
293
views
DCount using two Criteria
I have an Access Form with two combo boxes, PO Number and Vendor Number. The Vendor Number will automatically filter to show only those who match the chosen PO Number (PO Numbers are sadly not unique; ...
1
vote
1
answer
48
views
Access Query: Unable to get correct Count
I have a table named [Mailbox Status] listing all email mailboxes that are to be migrated to O365. Mailboxes are migrated in batches (column BatchNumber) and when they are migrated, the column ...
0
votes
2
answers
2k
views
How to check if data exist in Access table
I have created a userform that insert data into an Access table. while inserting data, I want to make sure that the ID inserted must exist in the Access table. I have used the DCOUNT function to do ...
0
votes
2
answers
390
views
Access VBA Run-time error 3078, or Type Mismatch on DCount function
Objective: I'm building VBA code to filter through an address table SunstarAccountsInWebir_SarahTest. I want to loop through first and see if the address is "valid".
If it is not valid – export to ...
0
votes
1
answer
139
views
VBA error 462 when updating table in Access from Excel
I'm getting the 462 runtime error when updating an Access table from Excel VBA. I think the references are correctly qualified with the object variable as described here and here, but I'm still ...
-1
votes
1
answer
41
views
Creating a query to count non duplicated patient interactions per day
I am fairly new to Microsoft Access but I recently created a database to better organize our department data. In my database I have a table that our staff can log their interactions with patients. A ...
1
vote
1
answer
33
views
How to work out the Average of DCounts
I have recently created a report that shows the number of rows from my table for different yes/no attributes. Now, I would like to add another box that will show the average of these two look ups, as ...
0
votes
2
answers
121
views
Dcount function
I want to count the call number, Datecall, [Username] is the name of fields of table BCKHDY but why numbercall always equal 0. If I delete AND DateCall= #" & DateFrom & "#, code run, that ...
0
votes
2
answers
1k
views
DCount() In VBA Always Returning A Null Value
I am attempting to use the DCount() Function to return a count from my table. My issue is that it always returns a NULL value.
How should I Re-write this VBA statement so that it returns the ...
2
votes
1
answer
2k
views
Prevent Duplicate Entries VBA
First off I am a bit of a novice when its comes to VBA, so everything I do is a bit of hit and miss but normally I eventually figure out the problem.
However this time I have been stuck for days and ...
0
votes
1
answer
283
views
Dcount wont count records matching a number entered into a form control
I want to have a form / database that the data goes into automatically search for duplicate entries. Duplicates can either be by reference number (which contains numbers an a letter) or by name.
I ...
0
votes
0
answers
444
views
DCount not working on Access
I don´t know whats wrong with this query... I want to know how many records are on another query named: Querie_Planilla that have the following characteristics:
The date on the field PeriodoInicial ...
1
vote
1
answer
310
views
DCount not finding matching records in Access
I am not getting the correct value for DCount
Table is "Lessons":
ID (auto) pk
InstructorID As Integer
Weekof As Date
StudentID As Integer
Status As Byte
My function is
Public ...
0
votes
1
answer
357
views
DCount function of MSAccess in Visual Studio project not declared
I want to use the DCount function in my Visual Studio Project but DCount gets underlined with a squiggly line and the tooltip says "Not declared" What is the solution?
1
vote
1
answer
673
views
Using VBA in Access how do I use Dcount to count the number of record that contain this formula - DatePart("y", Now)?
I want to go through the records in a table to see how many already contain the Julian date of today. I want it to be a wildcard search because my project numbers will be in this format "16-2101". The ...
2
votes
2
answers
752
views
MS Access: unbound text box for dcount with date parameters
I have 2 tables in a 1-many relationship:
Person - Application
Every time a person meets criteria, a new record is created in Application, and today’s date is added to field App_OutAwardDate.
I ...
0
votes
1
answer
297
views
Use of DCount in Access to produce group sequential column
I have a calculated column "TimeAfterClass" which uses DateDiff to calculate the number of days between the start of class attendance to an audit date. This works fine. Many of the results have the ...
0
votes
1
answer
161
views
Dcount function --- assistance with criteria
I'm working on building a report and am trying to get the right count of records using the DCOUNT function. I'm in a pickle trying to adjust the CRITERIA part of it, so that it would pull the ...
0
votes
2
answers
122
views
DCount for duplicates not allowing user to keep old field if they accidentally edited it
In the BeforeUpdate event on my field, I have a dcount set up to disallow duplicates in the field SurveyID. This works great, except in the event that, in a past record, the user starts editing their ...
0
votes
3
answers
574
views
DCount returning wrong record count when filtering by dates
Trying to get a count of all records from a table called "ComplaintsListMaster" that have a "ComplaintDate" greater than 11/1/2015. The correct value is around 70. But when I use the dcount pasted ...
1
vote
1
answer
118
views
How to remove duplicates from form recordsource in Access
I'm building a rather complex database for my limited (yet slowly growing) knowledge of database and programming. So, I really appreciate your help.
The database keeps track of customers, buildings, ...
0
votes
1
answer
374
views
Dcount in MS Access not filtering correctly
I am doing a dcount in a form through a textbox. I just need it to add the reasons in the table filtered through the reason type and clientid from the open form. The form is open and the dcount counts ...
4
votes
1
answer
5k
views
Access: Update query with count in subquery - error or all results
I know that you should not store calculated values in a database but in this case the structure is given and I have to deal with that.
I have two tables:
Table1 with the fields (i.e. customer, ...
1
vote
1
answer
966
views
DCount function in access without specific condition
I am trying to get an Access report to identify if a text field (NH) does not match with the same ID. For example, ID 179 has two rows but each NH is different (12345 & 12346). I am trying to use ...
0
votes
1
answer
359
views
Using DCount in a For Loop with VBA (Microsoft Access)
I'm having a problem with DCount in VBA.
I'm trying to fill an array with values calculated by Dcount. One of the criteria I use in the Dcount I want to get from a different array, this gives the ...
0
votes
1
answer
75
views
Problems of wording in a Dcount function
on click(), I am having problem or wording in the following:
Private Sub Cmd_Create_Click()
Dim db As DAO.Database
Dim rs As DAO.Recordset
Dim rs_conterparty As DAO.Recordset
Dim rsCount As Integer
...
1
vote
2
answers
2k
views
DCount function wording of the CRITERIA
I have problems with the wording of the criteria of a DCount function.
On click() I would like to have the number of occurrences of the field "YearMonth" in a tale in accordance with the value ...
1
vote
1
answer
486
views
#ERROR on =IIf(DCount [...] with Alphanumeric field
I am using a DCOUNT function to look at a table in access and see if a record exists - if it does then return a yes value.
=IIf(DCount("*","COMMENTS","[PROJECTID] = " & [PROJECTID])>0,"YES","")...
0
votes
2
answers
37
views
Excel 2010 Count 2 columns when both columns each contain a range of values
I have a large Excel dump from SQL with many columns of data. Two of those columns have different fields with various text values. There are six correct values for the first column and five correct ...
0
votes
1
answer
102
views
EXCEL - Count participant name (only when all race activities complete)
Thanks for your attention:
I have an ultra-marathon scenario with multiple contestants each competing in multiple events (i.e. swim, cycle, run).
I need a little help on the formula to only count ...
1
vote
1
answer
2k
views
IF statement using Dcount
Access complains "Data Type Mismatch in criteria expression" with this code ...
If DCount("[Serial Number]", "INVENTORY OVERVIEW", "[Serial Number] =" & Val(txtSERIAL)) > 1 Then
Serial Number ...
2
votes
2
answers
332
views
Control Source property: Dcount: Unable to specify Multiple Condition
I have two commands in Microsoft Access 2010 that works fine individually:
=DCount("*","Order","DATE = #" & [Forms]![formOrder]![DATE] & "#")
=DCount("*","Order", "STATUS = 'ST." & [...
1
vote
2
answers
1k
views
DCOUNT function doesn't return the correct result
I tried hard but couldn't found out why the formula in cell S10 below returns value 0 instead of 1, could you explain?
0
votes
1
answer
2k
views
How to use DCOUNT on select- sql query while using group by?
How to use DCOUNT on select- sql query while using group by?
I have a problem and first, I want to show part of the real table
![I WANT a query that show me per date the amount of bl_no in ...