MS Access SQL query

Copper Contributor

 

Hello,

I am not getting result from the below query.

can u please help to short out the problem of it. 

 

 

SELECT [NPS ATM].[Trnxn Mode], [NPS ATM].[Trnxn Type], [NPS ATM].[Card Number], [NPS ATM].RRN, [NPS ATM].STAN, [NPS ATM].[App Code], [NPS ATM].Amount, [NPS ATM].[Terminal ID], [NPS ATM].JOIN
FROM [NPS ATM]

INNER JOIN [NPS ATM REV] ON [NPS ATM].[JOIN] = [NPS ATM REV].[JOIN]
WHERE ((([NPS ATM REV].JOIN) Is Null));

 

 

Br,

Suprio

 

5 Replies

@suprio_sarker What DOES the query return? An Error? Nothing? The wrong values? Too many records? Too few records? 

W

@George Hepworth,

Its return Nothing.

Br,
Suprio

@suprio_sarker Your queries are parameterized so they return only subsets of the total number of records in the linked Excel spreadsheet. 

The query called "NPS ATM Without Matching NPS ATM REV" seems to be the one from which your posted SQL is taken. It has as a parameter "Join Is Null".

 

It turns out that there are NO records that match that parameter. In other words ALL fields called [Join] in both tables do have matching records. That means this SQL returns no records because [Join] is never Null. 

@George Hepworth ,
That means if we use CONCATENATE to join to different data and use this value in query that does not give result.

@suprio_sarker I don't know what you mean by "CONCATENATE". I see nothing in this SQL to indicate you are concatenating something. Please explain further. (I realize English may not be your primary language, so it can be harder to get the point across.)