Hi.
I have created a query, which draws from several tables.
One of these tables is a pop up form, where details are entered (the pop up form draws from a query also, not directly from a table, as I've been advised against).
The results in the pop up form link to a subform (on which I have the cmd button to open the pop up form).
The data I can see in my pop up form is plagued by something that is not a problem in the query. That is, the standard next record button acts also as a new record button, and I'd like to prevent that from happening, because it's easy to enter new records, with no data. (the standard next record button also has the word (filtered) next to it, and I'm sure that's part of the problem.
But, I don't know how to get rid of it, and to make the recordset stop, when go to the end of the record set, and dim the next record arrow.
This is partly because there is code to enter the primary key into the table, as it is linked to the subform.
Now, one way I could deal with it is to create a delete query to delete the "extra" records created in the table, via the pop up form's query, if the user continually/inadvertently presses the next record key, which doesn't stop at the end of the record set.
The problem I'm having is that in the delete query, I can't seem to specify if a certain field is blank. I can specify if a certain field has a "0", but not spaces.
The extra records that are created contain a field with spaces and a field with "0"s, but I don't know how to make it show the certain records when I specify: Like" ", along with ="0"
Please explain how I can do this.
Thanks,
Jim
I have created a query, which draws from several tables.
One of these tables is a pop up form, where details are entered (the pop up form draws from a query also, not directly from a table, as I've been advised against).
The results in the pop up form link to a subform (on which I have the cmd button to open the pop up form).
The data I can see in my pop up form is plagued by something that is not a problem in the query. That is, the standard next record button acts also as a new record button, and I'd like to prevent that from happening, because it's easy to enter new records, with no data. (the standard next record button also has the word (filtered) next to it, and I'm sure that's part of the problem.
But, I don't know how to get rid of it, and to make the recordset stop, when go to the end of the record set, and dim the next record arrow.
This is partly because there is code to enter the primary key into the table, as it is linked to the subform.
Now, one way I could deal with it is to create a delete query to delete the "extra" records created in the table, via the pop up form's query, if the user continually/inadvertently presses the next record key, which doesn't stop at the end of the record set.
The problem I'm having is that in the delete query, I can't seem to specify if a certain field is blank. I can specify if a certain field has a "0", but not spaces.
The extra records that are created contain a field with spaces and a field with "0"s, but I don't know how to make it show the certain records when I specify: Like" ", along with ="0"
Please explain how I can do this.
Thanks,
Jim