I have an event of a list click. If I click on the list, code is run which includes a query to fill another list. It works okay. However if I click on the list and use the up/down keybord arrows it halts displaying a notice -
The macro or function set to the BeforeUpdate or ValidationRule property for this field is preventing Microsoft Office Access from saving the data in the field.
There is nothing in either of the mentioned events, and nothing is being saved? its just finding records.
If the arrow keys are moved slowly theres no problem.
Code for the listfill that gives the problem is:
MySQL2 = "SELECT AthleteNames.AthleteID, AthleteNames.Athlete, AthleteNames.Country, "
MySQL2 = MySQL2 & " JUNCTION.ID2, AthleteNames.SportorSports AS Sport FROM AthleteNames "
MySQL2 = MySQL2 & " INNER JOIN JUNCTION ON AthleteNames.AthleteID = JUNCTION.AthleteID "
MySQL2 = MySQL2 & " WHERE (((JUNCTION.ID2)=[forms]![Mainform1]![Subform1].[form].[ID2])) ORDER BY AthleteNames.Athlete;"
Me.AthleteList = ""
Me.AthleteList.RowSource = MySQL2
If I rem this out the problem goes. I tried putting DoEvents in different places but it does not cure it.
Hope its not a Service Patch 3 issue, thanks
The macro or function set to the BeforeUpdate or ValidationRule property for this field is preventing Microsoft Office Access from saving the data in the field.
There is nothing in either of the mentioned events, and nothing is being saved? its just finding records.
If the arrow keys are moved slowly theres no problem.
Code for the listfill that gives the problem is:
MySQL2 = "SELECT AthleteNames.AthleteID, AthleteNames.Athlete, AthleteNames.Country, "
MySQL2 = MySQL2 & " JUNCTION.ID2, AthleteNames.SportorSports AS Sport FROM AthleteNames "
MySQL2 = MySQL2 & " INNER JOIN JUNCTION ON AthleteNames.AthleteID = JUNCTION.AthleteID "
MySQL2 = MySQL2 & " WHERE (((JUNCTION.ID2)=[forms]![Mainform1]![Subform1].[form].[ID2])) ORDER BY AthleteNames.Athlete;"
Me.AthleteList = ""
Me.AthleteList.RowSource = MySQL2
If I rem this out the problem goes. I tried putting DoEvents in different places but it does not cure it.
Hope its not a Service Patch 3 issue, thanks