Empty form based on query

Pavczech

Registered User.
Local time
Today, 14:33
Joined
Jul 11, 2012
Messages
41
Empty Form

Hello

I have Form bound to query. The query is bound to two tables. It works fine apart it showes all the entries. It is pop-up form. So is there a way it always open clean?
Thanks
 
Re: Empty Form

Have you looked at the Data Entry property of the form?
 
Re: Empty Form

When you say,
It works fine apart it showes all the entries. It is pop-up form. So is there a way it always open clean?
Thanks
What exactly do you mean?? Can you show some screen caps or explain a bit more??
 
Re: Empty Form

It is set as Yes, but I need user to add deta, just not to see the previous.
Thanks
 
Re: Empty Form

If the data entry property is yes, the user can only add new records. They won't see records entered prior to opening the form. The exception might be if you have code that forces the form open in another mode.
 
Re: Empty Form

I have checked and designed new query and new form but it was still showing the previous records. There is no code to open the form either. Than I have deleted all old records and made new form which in design mode looks ok but than in form view is header bit the form detail looks like it shrenked and there are no fields. I am just starting on access so could do with any help ( like data entry property ). Thanks
 
Re: Empty Form

Can you post the db here?
 
Re: Empty Form

It is quite big about 5MB and I have to go now.
but Thanks very much for your help for tonight
 
Hello
I have posted thread yesterday called empty form.
So i have checked few thinks. Let clarify some details:
Tables are linked to sharepoint.
Form is bound to query.
The qery is bound to two tables.
Now if i do relations to ID on both tables and create form it works but showes all the previous records and you can scroll through them.
I need relations to unique code which is generated from the form.
If i do that or if i dont do relations at all the form looks good but in form the datail part disappear. It is because the records from both tables if i take records from the socond table of the detail appear.

Can i have clear form based on query on two tables where the relations is done on "uniquecode" .
Thanks
 
Re: Empty form based on qeury

Show the query sql.
Show some sample data to show us what isn't right.
Mock up something to show us what you really want the result to be.

Until we understand, we're only guessing.
 
Hi
Thanks for looking at this. Sorry I have been very busy not just with access. But here is the sample what I mean.
Thanks again
 

Attachments

Well, the first thing I see is that you have a non updateable query as the form's record source. That can't be used to add/edit/delete records.

See here for more about what makes a query non-updateable:

http://allenbrowne.com/ser-61.html

And second, you have an ID field in the tables but you are using Unique No as the link? What is that all about? The ID (PK) from the parent table should be the FK in the child table.
 
I have made it work on the sample. works fine "ID" link on "table1" to "Unique No" on "table2".
The problem I am facing now is it doesn't work on my real one which is linked to sharepoint.
It could be because the field is not idexed, but sharepoint won't let me use another indexed field than "ID" which will not match. I have tried to link "ID" and "ID" which works but because it is autonumber the numbers don't match, so therefore the realations doesn't work.
Does this make sence?
Could you help in any way?
Thanks
 

Users who are viewing this thread

Back
Top Bottom