I am totally new to VBA and am trying to learn how to write code to perform operations in MS Access. I want to design a form where users can select multiple criteria to run a make table query and ultimately open a report based on that updated table. The database tracks thermometers used in a laboratory.
My form ("QBF_Form_Thermometers") has 2 text boxes and 3 combo boxes:
Name of Combo Box 1:
"ThermType" (Type of thermometer -- digital, Hg, etc.)
Name of Combo Box 2:
"ThermStat" (Status of thermometer -- In use, etc.)
Name of Combo Box 3:
"ThermLoc" (Location of thermometer -- specific lab location)
Name of Text Box 1:
"MinRange" (Minimum temperature range of the thermometer -- a number)
Name of Text Box 2:
"MaxRange" (Maximum temperature range of the thermometer -- a number)
I want users to be able to populate some or all of the boxes on the form to run an associated make-table query ("QBF_Thermometers"). I then want an associated report to open ("Rpt_Thermometers").
I have tried both referring to the form in the query (using for example, [Forms]![QBF_Form_Thermometers]![ThermStat]...) and messing around with SQL statement but have not had much success and think that VBA would be a more efficient solution. Any suggestions on how to do this? Thanks!
Tecnologia, programação e muito Visual FoxPro.
quinta-feira, 30 de dezembro de 2010
[Access VBA Central] Help with Query by Form
__._,_.___
.
__,_._,___
Assinar:
Postar comentários (Atom)
Arquivo do blog
-
▼
2010
(3087)
-
▼
dezembro
(325)
- Bls: ]] XL-mania [[ menghitung persentase bonus de...
- [Access VBA Central] AUTO: David Deroian is out of...
- Re: ]] XL-mania [[ menghitung persentase bonus den...
- Re: ]] XL-mania [[ Pengurangan dan penjumlahan dal...
- Re: ]] XL-mania [[ menghitung persentase bonus den...
- Re: ]] XL-mania [[ menghitung persentase bonus den...
- Re: ]] XL-mania [[ menghitung persentase bonus den...
- Re: ]] XL-mania [[ Pengurangan dan penjumlahan dal...
- Bls: ]] XL-mania [[ Pengurangan dan penjumlahan da...
- ]] XL-mania [[ menghitung persentase bonus dengan ...
- Re: ]] XL-mania [[ Merubah tabel ke format berbeda
- ]] XL-mania [[ Pengurangan dan penjumlahan dalam i...
- RE: [usuarios_fox] pdf
- Re: ]] XL-mania [[ Menjumlahkan tanggal dikurangi ...
- Bls: ]] XL-mania [[ Lot Awal dan Akhir
- Re: ]] XL-mania [[ pika pika
- RE: [usuarios_fox] pdf
- RE: {Disarmed} Re: [usuarios_fox] pdf
- RE: [usuarios_fox] pdf
- [Access VBA Central] Help with Query by Form
- Re: ]] XL-mania [[ Lot Awal dan Akhir
- Re: ]] XL-mania [[ Menjumlahkan tanggal dikurangi ...
- ]] XL-mania [[ Merubah tabel ke format berbeda
- Bls: ]] XL-mania [[ Penggunaan Tombol CTRL {
- RE: ]] XL-mania [[ pika pika
- ]] XL-mania [[ need vba converter?
- ]] XL-mania [[ Lot Awal dan Akhir
- Re: ]] XL-mania [[ Change Tabel
- Re: ]] XL-mania [[ pika pika
- Re: ]] XL-mania [[ Menjumlahkan tanggal dikurangi ...
- RE: ]] XL-mania [[ Change Tabel
- Re: ]] XL-mania [[ Change Tabel
- Re: ]] XL-mania [[ Penggunaan Tombol CTRL {
- Re: ]] XL-mania [[ Change Tabel
- ]] XL-mania [[ membikin userform full screen
- Bls: ]] XL-mania [[ Change Tabel
- ]] XL-mania [[ Penggunaan Tombol CTRL {
- Re: ]] XL-mania [[ pika pika
- Bls: ]] XL-mania [[ Change Tabel
- ]] XL-mania [[ Change Tabel
- Re: ]] XL-mania [[ Menggabung Frame menjadi Tabel
- Bls: ]] XL-mania [[ Cara menentukan data terkecil ...
- ]] XL-mania [[ Shared File Excel Berbeda Hasil ...
- Re: ]] XL-mania [[ save as dgn nama worksheet sesu...
- Re: ]] XL-mania [[ Membuat Beberapa pilhan
- Re: ]] XL-mania [[ Macro dipayslip error --help--
- ]] XL-mania [[ PO_automatic
- Bls: ]] XL-mania [[ Menentukan Kelompok Atas dan B...
- Re: ]] XL-mania [[ Cara menentukan data terkecil d...
- Re: ]] XL-mania [[ Cara menentukan data terkecil d...
- ]] XL-mania [[ Formula utk mencari perkalian P dan...
- Re: ]] XL-mania [[ Menentukan Kelompok Atas dan Ba...
- Re: ]] XL-mania [[ Menjumlahkan tanggal dikurangi ...
- ]] XL-mania [[ Cara menentukan data terkecil dan t...
- Re: ]] XL-mania [[ Daftar "LiburNasional" & "Cut b...
- Re: ]] XL-mania [[ Daftar "LiburNasional" & "Cut b...
- Re: ]] XL-mania [[ Pindah sel otomatis
- ]] XL-mania [[ Macro dipayslip error --help--
- ]] XL-mania [[ Template Aging Report AP + AR
- ]] XL-mania [[ File - rules_and_tips
- Re: ]] XL-mania [[ Formula kombinasi Text, Bulan d...
- RE: ]] XL-mania [[ Daftar "LiburNasional" & "Cut b...
- Re: ]] XL-mania [[ Formula kombinasi Text, Bulan d...
- Bls: ]] XL-mania [[ Formula kombinasi Text, Bulan ...
- Re: ]] XL-mania [[ Menampilan data berdasarkan ran...
- ]] XL-mania [[ Menggabung Frame menjadi Tabel
- Re: ]] XL-mania [[ Menampilan data berdasarkan ran...
- Bls: ]] XL-mania [[ Menampilan data berdasarkan ra...
- ]] XL-mania [[ Formula kombinasi Text, Bulan dan u...
- ]] XL-mania [[ Pindah sel otomatis
- Re: ]] XL-mania [[ Luas Real dari tanggal rencana
- Bls: ]] XL-mania [[ mohon bantuan untuk makro fun...
- ]] XL-mania [[ Status Bar
- Re: calculated field di pivot table was >>>RE: ]] ...
- Re: ]] XL-mania [[ Menentukan cell dengan format r...
- RE: ]] XL-mania [[ Luas Real dari tanggal rencana
- ]] XL-mania [[ pika pika
- Re: ]] XL-mania [[ autoformating
- Re: ]] XL-mania [[ mohon bantuan untuk makro fungs...
- Re: ]] XL-mania [[ Menjumlahkan tanggal dikurangi ...
- ]] XL-mania [[ Menentukan cell dengan format round
- Re: ]] XL-mania [[ Nilai max dari 2 kolom dari 2 s...
- ]] XL-mania [[ Menampilan data berdasarkan range t...
- Re: ]] XL-mania [[ cara melakukan copy-paste selan...
- Bls: ]] XL-mania [[ autoformating
- ]] XL-mania [[ Daftar "LiburNasional" & "Cut bersa...
- Re: ]] XL-mania [[ autoformating
- Re: ]] XL-mania [[ Kombinasi fungsi If dengan vlookup
- ]] XL-mania [[ Form Denda "BELI KUE"
- ]] XL-mania [[ Luas Real dari tanggal rencana
- calculated field di pivot table was >>>RE: ]] XL-m...
- Re: ]] XL-mania [[ Error Macro Sumproduct
- Re: ]] XL-mania [[ mencetak/print "insert comment"...
- RE: ]] XL-mania [[ mencetak/print "insert comment"...
- Re: ]] XL-mania [[ Menjumlahkan tanggal dikurangi ...
- ]] XL-mania [[ mencetak/print "insert comment" di ...
- ]] XL-mania [[ autoformating
- Re: ]] XL-mania [[ Nilai max dari 2 kolom dari 2 s...
- Re: ]] XL-mania [[ Sorting Problem
- Re: ]] XL-mania [[ Menambah Data Access dengan Excell
-
▼
dezembro
(325)
Nenhum comentário:
Postar um comentário