Alright, so I'm trying to run a query that to display a null value in a field if a duplicate ID exist. There are 2 tables, parent-child relationship. The parent table can have one to many child records. In my scenario, we have fuel tanks that can get many inspections done on them. Tank is the parent table and Tank_Inspections is the child table. There's a capacity data field that I'm getting from the tank table and joining it with the tank inspection record and it shows up twice if multiple inspections exist for that tank. This is fine, however I don't want to double count the capacity and only want to show it once. I've pasted the link to an image of a screenshot of how it should be displayed if multiple records exist for parent table. The highlighted cell should be blank. As you can see, the TankID = 65 has two inspections of different types, since I'm getting the capacity field from the Tank table, it's getting inserted twice. I was to write a query so if two or more inspections exist for tanks, only show the capacity once and "blank" out the other capacity data element. In this case, the highlight cell should be blank. Suggestions?
How to Show Null in a Cell in MS Access 2010
75 Views Asked by dotNetUser At
1
There are 1 best solutions below
Related Questions in MS-ACCESS-2010
- MS Access, Combobox, select fields bases on query, How do I weight the result fields
- MS Access: How to group by first column- summing some columns while keeping others the same
- How to Continuously Develop and Deploy an Access 2010 Database Application
- Adding calendar in ms access and view the data of specific day by clicking the date
- Error when counting data by date
- DSum Object Required in Access
- Don't understand why this query crashes Access
- me.visible for labels and textboxes access
- Run time error 7: out of memory
- Linking Excel Tables in Access Gives Read-Only Error
- Microsoft Access Click Event on Form produces error
- MS Access multi (INNER, LEFT & RIGHT) JOIN query
- MS Access linked tables automatically long integers
- printing label at specific position
- Returning a stored procedure, ado, access, vba
Related Questions in QUERY-HELP
- Accessing the requested url with the query helper
- I need help parsing an HL7 string with TSQL
- Mathematical formula for calculating call duration
- How to do conditional SQL Server statements?
- MySQL - find difference between rows of the same table
- sum based on max production date and min production date MTD,WTD, YTD SQL Server
- SQL query help with GROUPing and nested queries
- Calculate sum of absolute difference in rows by groups
- Need help developing SQL to find difference in date
- How do I join all rows with the same name in one table using MYSQL?
- How to Show Null in a Cell in MS Access 2010
- Update Statements
- SQL Statement Help - Select Only Customers with no order for past 3 months
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
This sounds like a job for an analytic function. Since Access doesn't natively support these, there is a hack to accomplish the row_number() analytic function that sounds like it would meet your needs:
Achieving ROW_NUMBER / PARTITION BY in MS Access
You create a query that invokes this self-join and use that instead of the table. Once you have the row number on each row, it would look something like this:
And your capacity formula would change from
[Inspection].[Capacity]to something like this: