|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#16
|
||||
|
||||
|
Quote:
You'll need to write a subquery. It might look something like this, although there are several alternate ways to do it: Code:
SELECT * FROM tblAssets WHERE AssetID NOT IN (SELECT Tag from tblEquip WHERE Tag = tblAssets.AssetID) Check out: http://msdn.microsoft.com/en-us/lib...2(SQL.100).aspx This is a fairly common requirement, but it's not intuitive and stumps a lot of people until they are shown how it can be done.
__________________
Experience is the thing you have left when everything else is gone. |
|
#17
|
|||
|
|||
|
Quote:
That helped a lot. Thanks! Didnt know about subqueries at all. This little project for work is coming to an end. However, just a slight annoyance. My main form, frmDataEntry, has buttons to open 3 other forms (frmAddNewLoc, frmAddNewPort, frmQryAndRpt). I have a macro opening frmQryAndRpt, but I use VBA coding to open the other two. However, the buttons will ONLY open these 2 forms if I only open them first. Otherwise, I get an error saying: "Access cant find the form '<form name>' referred to in a macro expression or visual basic code." I keep messing around with this, just wondering if I'm missing something. |
|
#18
|
|||
|
|||
|
Quote:
Nevermind, I got it working. The project is done! Thanks again for all your help. Its been very helpful and I really appreciate all that you did. Take care! |
![]() |
| Viewing: ASP Free Forums > Database > Microsoft Access Help > Recordsets |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|