By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,916 Members | 1,068 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,916 IT Pros & Developers. It's quick & easy.

Dsum , using numeric & Text help with the Text bit!

P: n/a
Acc 97
Hi,

I have the following in my query which works well if it is all set to
numbers on table design.

But what I want to do is where it states MC (short for machine name) use the
actual machine name of which there are 5 off. therefore, on the table design
I flick it over to text mode.

the query throws a wobbler! and all I get is Error!!

would a kind knowledgeable sole, show me how I need to modify this, so that
I can use Text setting only the end parts as identified as "MC="&[MC]
Note this works OK if all is numeric

DSum("[tot]","[Query1]"," Expr1= " & [Expr1] & "AND " & " " & "MC= " &
[MC])


Thanks, Alex

Nov 12 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
DSum("[tot]","[Query1]"," Expr1= " & [Expr1] &
" AND MC = '" & [MC] & "'")

--
HTH
Van T. Dinh

"GERALD SHAW" <ge****@yas1.freeserve.co.uk> wrote in message
news:bs**********@newsg4.svr.pol.co.uk...
Acc 97
Hi,

I have the following in my query which works well if it is all set to
numbers on table design.

But what I want to do is where it states MC (short for machine name) use the actual machine name of which there are 5 off. therefore, on the table design I flick it over to text mode.

the query throws a wobbler! and all I get is Error!!

would a kind knowledgeable sole, show me how I need to modify this, so that I can use Text setting only the end parts as identified as "MC="&[MC]
Note this works OK if all is numeric

DSum("[tot]","[Query1]"," Expr1= " & [Expr1] & "AND " & " " & "MC= " &
[MC])


Thanks, Alex

Nov 12 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.