473,320 Members | 1,814 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Dsum for partial match

Expand|Select|Wrap|Line Numbers
  1. =DSum("AcctGroupID","2_Account_Group"," [AcctGroupName] = *" & [txtFilterType] & "*")
  2.  
  3. =DSum("Column","Table"," [Column] = *" & [textLabel] & "*")
Please i need help with this formula, I just dont know whats the problem?! it keeps give me error?
Oct 9 '12 #1

✓ answered by twinnyfo

msanhouri,

Try this:

Expand|Select|Wrap|Line Numbers
  1. =DSum("AcctGroupID","2_Account_Group","[AcctGroupName] LIKE '" & [txtFilterType] & "*'") 
  2.  
  3. =DSum("Column","Table","[Column] LIKE '" & [textLabel] & "*'") 
  4.  
Please note the Bold and Underline, which plays out Rabbit's suggestion.

9 2942
zmbd
5,501 Expert Mod 4TB
Where are you using the formula?
What error are you getting?
Oct 9 '12 #2
Rabbit
12,516 Expert Mod 8TB
Looks like you're trying to do a wildcard match. First, you need to use the like operator, not the equal. Second, the right hand argument of the like operator needs to be a string so you have to demarcate it as such.
Oct 9 '12 #3
zmbd
5,501 Expert Mod 4TB
Thank you Rabbit,

(My mouse is doing weird things today, single clicks reading as double, clicks on stuff when I'm just moveing it... weird, had just moved it out of the way and it clicked on post and then selected the whole page - arrrrgh :( )
Oct 9 '12 #4
Okay, the formula is in textbox in a form, this form filtering the data, so I need to get the total amount (Dsum) when I filter the data, for example when I write expenses the formula give me the right no
Expand|Select|Wrap|Line Numbers
  1. (=DSum("[AcctGroupID]","2_Account_GroupQ"," [AcctGroupName] = '" & [txtFilterType] & "'") 
but when I filter the data based on a part of the name such as (expen) the filter is working fine but the Dsum doesn’t work.
So the dsum formula works only if I type the entire name not part of the name.
Can you give me your suggestion please
Sorry for my bad English writing,
I hope you got it
Thank you in advance for your help
Oct 9 '12 #5
Rabbit
12,516 Expert Mod 8TB
No problem z, are you using a wireless? Sometimes my mouse does weird stuff when it's running low on batteries.

@msamhouri, I gave you my suggestion in my previous post.
Oct 9 '12 #6
still i dont get it can you correct the formula for me
Oct 9 '12 #7
twinnyfo
3,653 Expert Mod 2GB
msanhouri,

Try this:

Expand|Select|Wrap|Line Numbers
  1. =DSum("AcctGroupID","2_Account_Group","[AcctGroupName] LIKE '" & [txtFilterType] & "*'") 
  2.  
  3. =DSum("Column","Table","[Column] LIKE '" & [textLabel] & "*'") 
  4.  
Please note the Bold and Underline, which plays out Rabbit's suggestion.
Oct 9 '12 #8
Thank you, That has solved the issue!

I appreciate it. I spent hours trying to figure this out.

Thank you so much
Oct 9 '12 #9
twinnyfo
3,653 Expert Mod 2GB
Any time! Glad I could help!
Oct 10 '12 #10

Sign in to post your reply or Sign up for a free account.

Similar topics

9
by: Ron Adam | last post by:
Is it possible to match a string to regular expression pattern instead of the other way around? For example, instead of finding a match within a string, I want to find out, (pass or fail), if...
2
by: Christian Staffe | last post by:
Hi, I would like to check for a partial match between an input string and a regular expression using the Regex class in .NET. By partial match, I mean that the input string could not yet be...
2
by: Andrew Chalk | last post by:
I have a customer who wants to SELECT records based on a partial match in a text field. For example, in a list of telephone numbers they want to search for all records that contain the digits '777'...
4
by: cpnet | last post by:
I have a known binary value, and I want to match it to other binary values when a certain number of the same bits in both values are 1. For example, if I have the known value 0111, I want it to...
4
by: wecka | last post by:
Hello All, Does any one know how to use the form filter in Access to provide partial match? When you choose to "form filter," all text boxes will convert to combo boxes where you can choose from...
3
by: danielleissy | last post by:
Firstly i would like to know the difference between Keyword searching using SQL and partial matching of a search. I have to search for a book by key word in the book title. But allow TWO key words...
4
natalie99
by: natalie99 | last post by:
Hi All This may be a very basic question, please bare with me I am learning! I have two sets of data, one is the baseline of a Billing Inventory, the other is a seperate data set from the Live...
16
by: vorlonfear | last post by:
I have been working on this for a while now and I wanted to see if someone could assist me. I have 2 tables each with 5 fields. 4 of the fields are 2 character strings, then the final field is the...
4
by: Pat Rowe | last post by:
Relative Newbie w/ a stumper! Any help is appreciated. Thanks! I have two tables that I have imported to access. I'd like to query between these two tables for records that have a shared last...
4
Fspinelli
by: Fspinelli | last post by:
I don't know any other way to explain this but: I have a query by form (queries my customer table) that by entering a few letters of a company's name in the search field will bring up results in...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.