Find Jobs
Hire Freelancers

Access Select Case Help

$30-75 USD

Selesai
Disiarkan sekitar 21 tahun yang lalu

$30-75 USD

Dibayar semasa penghantaran
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 Projek: 2930233

Tentang projek

7 cadangan
Projek jarak jauh
Aktif 21 tahun yang lalu

Ingin menjana wang?

Faedah membida di Freelancer

Tetapkan bajet dan garis masa anda
Dapatkan bayaran untuk kerja anda
Tuliskan cadangan anda
Ianya percuma untuk mendaftar dan membida pekerjaan
Dianugerahkan kepada:
Avatar Pengguna
See private message.
$12 USD dalam 14 hari
5.0 (1 ulasan)
0.2
0.2
7 pekerja bebas membida secara purata $29 USD untuk pekerjaan ini
Avatar Pengguna
See private message.
$21.25 USD dalam 14 hari
5.0 (30 ulasan)
4.2
4.2
Avatar Pengguna
See private message.
$46.75 USD dalam 14 hari
4.4 (29 ulasan)
4.1
4.1
Avatar Pengguna
See private message.
$38.25 USD dalam 14 hari
5.0 (17 ulasan)
4.0
4.0
Avatar Pengguna
See private message.
$25.50 USD dalam 14 hari
5.0 (8 ulasan)
3.7
3.7
Avatar Pengguna
See private message.
$17 USD dalam 14 hari
5.0 (2 ulasan)
1.6
1.6
Avatar Pengguna
See private message.
$42.50 USD dalam 14 hari
0.0 (0 ulasan)
0.0
0.0

Tentang klien

Bendera UNITED STATES
United States
5.0
316
Ahli sejak Apr 2, 2003

Pengesahan Klien

Terima kasih! Kami telah menghantar pautan melalui e-mel kepada anda untuk menuntut kredit percuma anda.
Sesuatu telah berlaku semasa menghantar e-mel anda. Sila cuba lagi.
Pengguna Berdaftar Jumlah Pekerjaan Disiarkan
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Memuatkan pratonton
Kebenaran diberikan untuk Geolocation.
Sesi log masuk anda telah luput dan telah dilog keluar. Sila log masuk sekali lagi.