sql input question

CSTUBBS

New Member
Joined
Feb 13, 2007
Messages
45
This is probably a really stupid question . Mainly because I know NOTHING about SQL


I'm trying to determine exactly what forms are available in a sql database. I dont know how to open the database, but some programing has been written that recovers some records from the database. Is there a way I can modify the s= statement below, that will list out all forms in the database.

s = "SELECT unit.unt_tagnum, ""group"".grp_meanavg, ""group"".grp_stdavg, " & _
"unit.unt_x, unit.unt_y, unit.unt_zz, ""group"".grp_stopdt, ""group"".grp_npieces, material.mtl_name " & _
"FROM unit, ""group"", ""load"", material WHERE material.mtl_pk = ""group"".grp_mtlfk AND " & _
"unit.unt_grpfk = ""group"".grp_pk AND ""group"".grp_lodfk = ""load"".lod_grpfk " & _
"AND ""load"".lod_num = '" & loadname & "' AND ""load"".lod_date = " & loddate & _
" AND ""load"".lod_pk = '" & loadPK & "'ORDER BY unit.unt_tagnum"
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,164,390
Messages
5,836,978
Members
430,464
Latest member
nickburrett

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top