Welcome to MLink Developer Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
310 views
in Technique[技术] by (71.8m points)

ms access - Dcount function with wildcard characters

I have a table containing project and region column.

Project  region
Exp       UK
Exp1      uk/usa

Dcount("[project]","[tablename]","[region]='uk'")

It will return 1 instead of 2.

Can someone help how can I count this with wildcard.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Use LIKE with wildcard characters.

Consider:

Dcount("[project]", "[tablename]", "[region] LIKE 'uk*'")


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to MLink Developer Q&A Community for programmer and developer-Open, Learning and Share

1.2m questions

2.1m answers

5 comments

56.5k users

...