PC Review


Reply
Thread Tools Rate Thread

Data inserted from a form is not retained

 
 
bosco555
Guest
Posts: n/a
 
      29th Jan 2006
Hi All,

I am busy with a very simple database. I have 5 tables in which the
relationships are on a one to one basis. I am trying to create a form
with tabbed pages so that I can input data destined to the 5 tables.

I had to create a query in order to bind the form to all the tables.
No problem there. When I input data, it is inserted in the tables
correctly, but if I close the form and re-open it, there is nothing in
the fields. The tables still have the information captured previously.

Could someone please shed some light on this one?


Thanks and regards

GB

 
Reply With Quote
 
 
 
 
Douglas J. Steele
Guest
Posts: n/a
 
      29th Jan 2006
Have you perhaps set the form's DataEntry property to True?

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no private e-mails, please)


"bosco555" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi All,
>
> I am busy with a very simple database. I have 5 tables in which the
> relationships are on a one to one basis. I am trying to create a form
> with tabbed pages so that I can input data destined to the 5 tables.
>
> I had to create a query in order to bind the form to all the tables.
> No problem there. When I input data, it is inserted in the tables
> correctly, but if I close the form and re-open it, there is nothing in
> the fields. The tables still have the information captured previously.
>
> Could someone please shed some light on this one?
>
>
> Thanks and regards
>
> GB
>



 
Reply With Quote
 
=?Utf-8?B?V2F5bmUtaW4tTWFuY2hlc3Rlcg==?=
Guest
Posts: n/a
 
      29th Jan 2006
It's quite simple in MS-Word. Go to Tools, Options, Cutomise and take off
the over typ seclection. In Access it's not so simple (microsoft please take
note ??). On a form you can turn it off "quite" simply.

Creat a form and name a text box (Text 1 - or what ever you want) then click
Properties and select Event and "on key press". Create a vba (the 3 little
dots) and insert this bit
Sub Text1_KeyPress (KeyAscii As Integer)
If KeyAscii <> KEY_BACK Then
Text1.SelLength = 1
End If
End Sub
I have assumed that you have name your box "Text1" but this could be
anything you want. (Dont put spaces in the box name).

Hope this helps




"bosco555" wrote:

> Hi All,
>
> I am busy with a very simple database. I have 5 tables in which the
> relationships are on a one to one basis. I am trying to create a form
> with tabbed pages so that I can input data destined to the 5 tables.
>
> I had to create a query in order to bind the form to all the tables.
> No problem there. When I input data, it is inserted in the tables
> correctly, but if I close the form and re-open it, there is nothing in
> the fields. The tables still have the information captured previously.
>
> Could someone please shed some light on this one?
>
>
> Thanks and regards
>
> GB
>
>

 
Reply With Quote
 
=?Utf-8?B?V2F5bmUtaW4tTWFuY2hlc3Rlcg==?=
Guest
Posts: n/a
 
      29th Jan 2006
Sorry pasted this into the wrong question. should have been below. Sorry

"Douglas J. Steele" wrote:

> Have you perhaps set the form's DataEntry property to True?
>
> --
> Doug Steele, Microsoft Access MVP
> http://I.Am/DougSteele
> (no private e-mails, please)
>
>
> "bosco555" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > Hi All,
> >
> > I am busy with a very simple database. I have 5 tables in which the
> > relationships are on a one to one basis. I am trying to create a form
> > with tabbed pages so that I can input data destined to the 5 tables.
> >
> > I had to create a query in order to bind the form to all the tables.
> > No problem there. When I input data, it is inserted in the tables
> > correctly, but if I close the form and re-open it, there is nothing in
> > the fields. The tables still have the information captured previously.
> >
> > Could someone please shed some light on this one?
> >
> >
> > Thanks and regards
> >
> > GB
> >

>
>
>

 
Reply With Quote
 
Jeff Boyce
Guest
Posts: n/a
 
      29th Jan 2006
Are you saying that the data makes it into the tables via your form? But
when you close and reopen the form, the data in the tables doesn't show in
the form?

Why do you want it to? It sounds like you are using the form for data
entry. Do you also wish to use it for editing existing data?

Check the properties of the form -- the Data Entry property may be set to
Yes.

--
Regards

Jeff Boyce
<Office/Access MVP>


"bosco555" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi All,
>
> I am busy with a very simple database. I have 5 tables in which the
> relationships are on a one to one basis. I am trying to create a form
> with tabbed pages so that I can input data destined to the 5 tables.
>
> I had to create a query in order to bind the form to all the tables.
> No problem there. When I input data, it is inserted in the tables
> correctly, but if I close the form and re-open it, there is nothing in
> the fields. The tables still have the information captured previously.
>
> Could someone please shed some light on this one?
>
>
> Thanks and regards
>
> GB
>


 
Reply With Quote
 
bosco555
Guest
Posts: n/a
 
      30th Jan 2006
Hi All and thanks for the replies,

Yep, I will be using the form for data entry and for editing existing
data, so I would need to see the existing info in the form. I was able
to do that in the previous accesses namely 97 to 2000??? I had a whole
database created in Access97 dedicated to vehicle tracking (trucks,
from factory to client, services etc.) but that was many, many moons
ago.

Can I have the form performing both functions: input and edit/browse
existing records in Access2003??

thanks again to all for the help

regards

GB

 
Reply With Quote
 
Douglas J Steele
Guest
Posts: n/a
 
      30th Jan 2006
You didn't answer my question as to whether you've set the DataEntry
property to True. If you have, set it to False.

All the DataEntry property does is determine whether existing records are
displayed: it has no impact on whether or not you can add new records or
change existing ones. The form properties that control that are AllowEdits,
AllowDeletions and AllowAdditions. (and even that isn't a guarantee that you
will actually be able to make changes: if the underlying recordsource isn't
updatable, your form won't be able to make any changes)

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)


"bosco555" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi All and thanks for the replies,
>
> Yep, I will be using the form for data entry and for editing existing
> data, so I would need to see the existing info in the form. I was able
> to do that in the previous accesses namely 97 to 2000??? I had a whole
> database created in Access97 dedicated to vehicle tracking (trucks,
> from factory to client, services etc.) but that was many, many moons
> ago.
>
> Can I have the form performing both functions: input and edit/browse
> existing records in Access2003??
>
> thanks again to all for the help
>
> regards
>
> GB
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I allow a picture to be inserted in a form? =?Utf-8?B?S3VydA==?= Microsoft Word Document Management 1 2nd Mar 2006 07:35 PM
Temporarirly storing web form data to be inserted into Database ? =?Utf-8?B?U2FrZXQgTXVuZHJh?= Microsoft ASP .NET 6 1st Apr 2005 08:41 AM
avi file inserted in form Sandy Microsoft Access Forms 0 22nd Mar 2004 02:59 PM
serverfilter property is retained by the form Rodolfo Rughi Microsoft Access ADP SQL Server 1 10th Feb 2004 10:50 AM
Data Inserted Into Form is not inserted into the table pys Microsoft Access Forms 1 30th Oct 2003 05:09 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:32 AM.