- =DSum("AcctGroupID","2_Account_Group"," [AcctGroupName] = *" & [txtFilterType] & "*")
-
-
=DSum("Column","Table"," [Column] = *" & [textLabel] & "*")
Please i need help with this formula, I just dont know whats the problem?! it keeps give me error?
msanhouri,
Try this: -
=DSum("AcctGroupID","2_Account_Group","[AcctGroupName] LIKE '" & [txtFilterType] & "*'")
-
-
=DSum("Column","Table","[Column] LIKE '" & [textLabel] & "*'")
-
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?
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.
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 :( )
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 - (=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
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.
still i dont get it can you correct the formula for me
msanhouri,
Try this: -
=DSum("AcctGroupID","2_Account_Group","[AcctGroupName] LIKE '" & [txtFilterType] & "*'")
-
-
=DSum("Column","Table","[Column] LIKE '" & [textLabel] & "*'")
-
Please note the Bold and Underline, which plays out Rabbit's suggestion.
Thank you, That has solved the issue!
I appreciate it. I spent hours trying to figure this out.
Thank you so much
Any time! Glad I could help!
Sign in to post your reply or Sign up for a free account.
Similar topics
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...
|
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...
|
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'...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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)...
|
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...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
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....
|
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
|
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...
| |