Find Jobs
Hire Freelancers

VBA Count(*) slow in access, SQL pass thru

$10-30 USD

已关闭
已发布大约 10 年前

$10-30 USD

货到付款
I've got the following code in my access VB code. It worked fine before I added the round() sectin of the code to round the equasion off to 2 digits. I know the code is correct, i ran it in SQL, it takes 7 seconds to run. I've been waiting for over an hour through access though.. FTY table 1, which is the one rounding, and adding, has about 14,000,000 records, table 2, which its being compared to, has about 100,000,000 records. Public Function GetQueryCount5N() As Long [login to view URL] = 0 Dim rst As [login to view URL] Dim sql As String sql = "SELECT COUNT(*)AS total " _ & "FROM InventorySuppliers INNER JOIN Boyd0315All ON [login to view URL] = [login to view URL] " _ & "WHERE ([login to view URL] = 315) AND ([login to view URL] = 'Y') AND ([login to view URL] = '39%') AND " _ & "(NOT round(([login to view URL] * .61 + 65 + 265)/100,2) = ([login to view URL])) AND (NOT ([login to view URL] = 'E') AND " _ & "NOT ([login to view URL] = 'L') AND NOT ([login to view URL] = 'P'))OR " _ & "([login to view URL] = 315) AND ([login to view URL] = 'Y') AND ([login to view URL] = '39%') " _ & "AND (NOT ([login to view URL] + [login to view URL] + [login to view URL] + [login to view URL] = [login to view URL])) AND (NOT ([login to view URL] = 'E') AND " _ & "NOT ([login to view URL] = 'L') AND NOT ([login to view URL] = 'P'))" Set rst = [login to view URL](sql) With rst If Not .EOF Then GetQueryCount5N = .Fields(0).Value End If .Close End With Set rst = Nothing End Function
项目 ID: 5718999

关于此项目

10提案
远程项目
活跃10 年前

想赚点钱吗?

在Freelancer上竞价的好处

设定您的预算和时间范围
为您的工作获得报酬
简要概述您的提案
免费注册和竞标工作
10威客以平均价$28 USD来参与此工作竞价
用户头像
A proposal has not yet been provided
$25 USD 在2天之内
5.0 (16条评论)
5.2
5.2
用户头像
A proposal has not yet been provided
$25 USD 在1天之内
4.4 (19条评论)
4.6
4.6
用户头像
Dear Sir, I am writing to inquire about job opportunity you have requested. I am interested in working for you and to complete the given task successfully and as you require. As a skilled labor force in Visual Basic,C#. Please provide me the entire code set along with what you want to achieve i will try to come up with the best possible SQL statement which will fasten the extraction of resources., I am eager to contribute my abilities and experience for your required job. Given my extensive training and background, I believe I can help you in getting this task done at best methodology. I can personally assure high quality service and excellent communication can be provided by myself to fulfill your work. I look forward to hear from you. Sincerely, Hisham Haniffa
$25 USD 在1天之内
5.0 (3条评论)
2.3
2.3
用户头像
Hello. More 20 years programming experience. Several questions, pls: Do you change only round in code? How many time it take before changing? Regards. ---------------------------------------------------------------------------------------------------------------------------------------------------
$25 USD 在1天之内
5.0 (1条评论)
2.0
2.0
用户头像
Dear Sir, I'm quite interested by your project. I am programmer with sincere and capable. I have developed many project. Particular, I have rich experience in Access VBA. I can provide you the best cheap prices the best results. If you had interest for my suggestion, please call me. I await for you. Best Regards.
$34 USD 在1天之内
5.0 (1条评论)
0.6
0.6
用户头像
Er is nog geen voorstel voorzien
$27 USD 在1天之内
0.0 (0条评论)
0.0
0.0
用户头像
i have more than 15 years of experience in vb projects and handled many back-end procedures. i am 100% sure i would provide you the best result.
$25 USD 在1天之内
0.0 (0条评论)
0.0
0.0
用户头像
Hi, This is quite a simple problem and is caused by the access thinking it has to run the round part of the query locally. Because of that the SQL server is sending all the records to access for it to process hence the lack of speed! There are a number of ways around this and I am happy to talk you through them Thanks Kevin Ross
$35 USD 在1天之内
0.0 (0条评论)
0.0
0.0
用户头像
Hello Mr pghquest, I've been programming (stand-alone and web) for almost 10 years now, even though I am new in freelancer.com. I am at your disposal for any clarifications. Thank you in advance for your time. Michail Papageorgiou
$35 USD 在1天之内
0.0 (0条评论)
0.0
0.0

关于客户

UNITED STATES的国旗
Boardman, United States
5.0
7
付款方式已验证
会员自11月 27, 2008起

客户认证

谢谢!我们已通过电子邮件向您发送了索取免费积分的链接。
发送电子邮件时出现问题。请再试一次。
已注册用户 发布工作总数
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
加载预览
授予地理位置权限。
您的登录会话已过期而且您已经登出,请再次登录。