Willow: Something evil-crashed to earth in this. Then it broke out and slithered away to do badness. Giles: Well, in all fairness, we don't really know about the "slithered" part. Anya: No, no, I'm sure it frisked about like a fluffy lamb.

'Never Leave Me'


Buffistechnology 3: "Press Some Buttons, See What Happens."

Got a question about technology? Ask it here. Discussion of hardware, software, TiVos, multi-region DVDs, Windows, Macs, LINUX, hand-helds, iPods, anything tech related. Better than any helpdesk!


Sophia Brooks - Jan 31, 2007 12:15:33 pm PST #507 of 25496
Cats to become a rabbit should gather immediately now here

Thanks tommyrot! I am about to call it quits for the day and go teach some sewing. I will try this tomorrow. I am really excited about learning Access, but I can't bother our IT people here too much or our department will have to pay for their time, so after about 4 hours with our database designer and watching her do things, I am muddling through myself for the time being. All I can say is that this is not as intuitive as filemaker, but I think I am getting it a little bit. I just wish I had a working database that I could pick apart to see how things were done.


tommyrot - Jan 31, 2007 12:21:53 pm PST #508 of 25496
Sir, it's not an offence to let your cat eat your bacon. Okay? And we don't arrest cats, I'm very sorry.

What version of Access are you using?


Sophia Brooks - Jan 31, 2007 12:24:29 pm PST #509 of 25496
Cats to become a rabbit should gather immediately now here

2003, for PC. All of my experience is in Filmaker Pro 7 for Mac


tommyrot - Jan 31, 2007 12:24:38 pm PST #510 of 25496
Sir, it's not an offence to let your cat eat your bacon. Okay? And we don't arrest cats, I'm very sorry.

I've reproduced the problem here. MS's how-to criteria

Forms!FormName!ControlName Or Forms!FormName!ControlName Is Null

just doesn't seem to be liked at all by the GQBE grid.


Sophia Brooks - Jan 31, 2007 12:28:26 pm PST #511 of 25496
Cats to become a rabbit should gather immediately now here

So MS is telling me the wrong way to do something in their own product, or I was looking at the wrong instructions (I looked about 30 times to make sure I was looking at the right version instructions? (I don't know what the GQBE grid is?)


tommyrot - Jan 31, 2007 12:30:13 pm PST #512 of 25496
Sir, it's not an offence to let your cat eat your bacon. Okay? And we don't arrest cats, I'm very sorry.

I don't know what crack they're smoking. Their technique seems strange to me. Anyway, I got it to work a different way. (Work as in the GQBE grid doesn't screw it up. Haven't tested with actual data.)

gimme a few minutes to write it up....


Sophia Brooks - Jan 31, 2007 12:33:37 pm PST #513 of 25496
Cats to become a rabbit should gather immediately now here

Sophia Brooks - Jan 31, 2007 12:34:17 pm PST #514 of 25496
Cats to become a rabbit should gather immediately now here

Thanks in advance tommyrot-- I am really going now or I am going to be late for class, but I will take a look later. Again, thanks for your time.


tommyrot - Jan 31, 2007 12:35:18 pm PST #515 of 25496
Sir, it's not an offence to let your cat eat your bacon. Okay? And we don't arrest cats, I'm very sorry.

OK, for their example with this criteria:

Criteria: Forms![QBF_Form]![What Customer ID] Or Forms![QBF_Form]![What Customer ID] Is Null

on the [Customer ID] field - do this instead: put the following in a new field cell:

[Customer ID]=Forms![QBF_Form]![What Customer ID] Or Forms![QBF_Form]![What Customer ID] Is Null

The GQBE grid will alias it for you - that's OK. Then in the criteria cell below it, put 'True' (no quotes). You might also want to uncheck the 'display' box for that new field. So all we're doing is putting the test into a new field, and then using a 'True' criteria against the result of that test.

Does this make sense?

eta: You don't need to do that other stuff I told you. But some think it's a good idea to not use spaces in table, form, query and field names.

eta²: The technique they showed should work, but we've never done anything exactly like that. But regardless, when you take the query and open it up again in design view, it screws up the displaying of the query. And if you save it again it'll save the screwed up version. That's enough reason to not do it that way.

eta³: One potential problem with both ways is if you enter something into a field on the form as a criteria and then clear out the criteria, you might end up with an empty string in the field rather than the Null that was there when you opened up the form. So the query will only show records with an empty string in that field. If that's not what you want, do your new field cell like this:

[Customer ID]=Forms![QBF_Form]![What Customer ID] Or nz(Forms![QBF_Form]![What Customer ID],"") = ""

The 'True' criteria stays the same.


Gudanov - Jan 31, 2007 12:48:59 pm PST #516 of 25496
Coding and Sleeping

But some think it's a good idea to not use spaces in table, form, query and field names.

I'd suggest not using anything put numbers, letters and underscores. It would be easy for a programmer to miss a case with a special character. As someone who has written a GUI SQL editor I can attest to the pain that special characters can be on the code side of things.