Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

cannot change row source in listbox

Status
Not open for further replies.

davyre

Programmer
Oct 3, 2012
197
AU
Hi,
I have encountered several issues regarding the row source of a listbox. For example in my current listbox, it has row source like this:
Code:
SELECT TblCustOrderUnit.OrderUnitID, TblCustOrderUnit.OrderID, TblCustOrderUnit.UnitID, TblUnits.BSUnitID, TblCustOrderUnit.CompletionDate, TblCustOrderUnit.SerialNumber
FROM TblUnits INNER JOIN TblCustOrderUnit ON TblUnits.UnitID = TblCustOrderUnit.UnitID
WHERE (((TblCustOrderUnit.OrderID)=[orderlist].[value]));

Now when I tried to modify the rowsource, i.e deleting the WHERE clause so the row source would be like
Code:
SELECT TblCustOrderUnit.OrderUnitID, TblCustOrderUnit.OrderID, TblCustOrderUnit.UnitID, TblUnits.BSUnitID, TblCustOrderUnit.CompletionDate, TblCustOrderUnit.SerialNumber
FROM TblUnits INNER JOIN TblCustOrderUnit ON TblUnits.UnitID = TblCustOrderUnit.UnitID;

and save the form (CTRL+S), the row source automatically revert back to the old one. Why is this happening? Is there any chance that the form is corrupted?
 
Hi Duane,
Yes I saved it while it is in Design View, or in SQL View. Both doesnt do anything.
 
where can I find the Auto Name Correct options? Strange as I found this problem sometimes, and usually occurs with the old forms(probably created more than 6 months ago)...
 
I can see that Track Auto Name Correct and Perform name AutoCorrect are checked, so I guess the Auto Name Correct option is enabled? Should I turn that off?
I cannot check if it is directly affecting the 'troubled' form, as I have deleted that form and remake it with exactly the same row source SQL and it worked just fine.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top