MySQL Linked table

I am using a mysql linked table in an MS Access Front End.

There are 4 columns not including the ID PK, NOT NULL, auto increment column that are set to Not Null

FirstName
SecondName
Addres1
CountyID.

When i open a blank form for entry the ID column is as expected blank, when I enter the four columns above I expect the ID column to be populated. Instead all form text boxes display "deleted".

However when I search for the record using the above 4 columns as search the record is there with an ID assigned.

Any ideas why it is crashing like this?
BrogrimInformation Systems Development ManagerAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Jeffrey CoachmanMIS LiasonCommented:
What happens if you add the records directly into the linked table?

What happens if you add the PK field  to the form? (You can always hide it)
0
BrogrimInformation Systems Development ManagerAuthor Commented:
I have added the data directly to the linked table. entered into the non null columns and it worked fine.

I have the PK hidden on the display form.

On the form I also have a subform that is linked to the parent form by the PK, so i understand why that will crash if there is no PK inserted.

I have also tried to use an after update statement on the last column to save the record, that has not worked.
0
Jeffrey CoachmanMIS LiasonCommented:
Then lets be clear...
<When i open a blank form >
By this do you mean you are opening the form to a new record?

<I have the PK hidden on the display form.>
...meaning it is part of the form's recordsource, ...but just not visible on the form?
0
10 Tips to Protect Your Business from Ransomware

Did you know that ransomware is the most widespread, destructive malware in the world today? It accounts for 39% of all security breaches, with ransomware gangsters projected to make $11.5B in profits from online extortion by 2019.

BrogrimInformation Systems Development ManagerAuthor Commented:
<When i open a blank form >

I am opening the form to enter a new record.

<I have the PK hidden on the display form.>
Yes it is part of the record source and it is not visible to the user.
0
Jeffrey CoachmanMIS LiasonCommented:
You say:
<when I enter the four columns >

So, when exactly, do the fields change from what you typed in, to: "Deleted"
0
BrogrimInformation Systems Development ManagerAuthor Commented:
i have found the problem, i had the property locked set to Yes on the form control
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Jeffrey CoachmanMIS LiasonCommented:
Great, ...you can now accept your own post as the solution...
;-)
0
BrogrimInformation Systems Development ManagerAuthor Commented:
i was advised to
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
MySQL Server

From novice to tech pro — start learning today.