Find Jobs
Hire Freelancers

Access Select Case Help

$30-75 USD

已完成
已发布将近 21 年前

$30-75 USD

货到付款
Seeking a procedure for an Access (97) form. I would like it to be a select case structure. I need to have the procedure udpate the date field in every row of the table based on the values in the days and type column. I already have the necessary SQL statements to do the insert part, I just need the construct for the select case. I have provided dummy values to use where each of the SQL statements are listed - to eliminate the need for me to list the SQL code. I'm providing some basic sample data for a table called tblAccounts. All fields are integers, except date which is a date type, and the AcctID is an autonumber. tblAccounts ============ AcctID-Days-Type-Date 2-90-1 3-180-2 4-365-2 5-180-1 6-30-2 7-30-1 I'm also including psuedo-code to show what I want it to do. I really just need help with the syntax. I don't know how to set the Select Case statement to reference the table properly, this may be the only change necessary. Please review my example and if you feel that you could construct this code without obtaining too much additional information from me, and can do it within the timeframe specified (ASAP), then please reply - Thanks. -> Public Function OiSetDate() Dim SetAccDate As String Select Case SetAccDate - ?? tblAccounts Days value ?? Case 30 ' Days = 30 If Type = 1 Then Run SQL Statement 1 (example: 7/1/03) Else Run SQL Statement 2 (example: 6/1/03) Case 90 ' Days = 90 If Type = 1 Then Run SQL Statement 3 (example: 7/1/03) Else Run SQL Statement 4 (example: 4/1/03) Case 180 ' Days = 180 If PeriodCoverage = 1 Then Run SQL Statement 5 (example: 7/1/03) Else Run SQL Statement 6 (example: 12/1/02) Case 365 ' Days = 365 If PeriodCoverage = 1 Then Run SQL Statement 7 (example: 7/1/03) Else Run SQL Statement 8 (example: 6/1/02) Case Else ' no action necesary End Select End Function ## Deliverables 1) Access 97 or 2000 database (mdb) with a table (tblAccts) and a form with a button on it to populate the data based on the procedure requested. 3) Complete ownership and distribution copyrights to all work purchased. ## Platform Windows 98/NT/2000
项目 ID: 2930233

关于此项目

7提案
远程项目
活跃21 年前

想赚点钱吗?

在Freelancer上竞价的好处

设定您的预算和时间范围
为您的工作获得报酬
简要概述您的提案
免费注册和竞标工作
颁发给:
用户头像
See private message.
$12 USD 在14天之内
5.0 (1条评论)
0.2
0.2
7威客以平均价$29 USD来参与此工作竞价
用户头像
See private message.
$21.25 USD 在14天之内
5.0 (30条评论)
4.2
4.2
用户头像
See private message.
$46.75 USD 在14天之内
4.4 (29条评论)
4.1
4.1
用户头像
See private message.
$38.25 USD 在14天之内
5.0 (17条评论)
4.0
4.0
用户头像
See private message.
$25.50 USD 在14天之内
5.0 (8条评论)
3.7
3.7
用户头像
See private message.
$17 USD 在14天之内
5.0 (2条评论)
1.6
1.6
用户头像
See private message.
$42.50 USD 在14天之内
0.0 (0条评论)
0.0
0.0

关于客户

UNITED STATES的国旗
United States
5.0
316
会员自4月 2, 2003起

客户认证

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