Hi all!
Working on a dual-purpose form for adding new or editing existing items. The form's Record Source is :
SELECT [T-Parts].MasterNum, [T-Parts].Item, [T-Parts].CategoryID_FK, [T-Parts].WinterLevel, [T-Parts].SummerLevel, [TPartLocations].LocationID_FK
FROM ([T-Categories] INNER JOIN [T-Parts] ON [T-Categories].CategoryID = [T-Parts].CategoryID_FK) INNER JOIN [T-PartLocations] ON [T-Parts].MasterNum = [T-PartLocations].PartID_FK;
The problem lies with the LocationID_FK text box. I get the message in the status bar, when I click on a value: The Value cannot be added to the new row until the value has been committed. Commit the row first, then try adding the value.
LocationID_FK text box Row source is a query that combines the warehouse and bin location to one field. The control source is that field in the PartLocations table.
The tables are editable, the form is in add new mode. The query is also used as a row source for another table, to provide the same info (combined locations).
Mike
Just tried using the form in the edit mode and I was able to change the Part location just fine.
AddNewRecord VBA:
TempVars!tmpRecEntry = 1
DoCmd.OpenForm "F1_PartsEntry", acNormal, , , acFormAdd, acDialog
Tempvars used to set visible properties for other boxes.
EditRecord:
TempVars!tmpRecEntry = 2
DoCmd.OpenForm "F1_PartsEntry", acNormal, , , acFormEdit, acDialog
Working on a dual-purpose form for adding new or editing existing items. The form's Record Source is :
SELECT [T-Parts].MasterNum, [T-Parts].Item, [T-Parts].CategoryID_FK, [T-Parts].WinterLevel, [T-Parts].SummerLevel, [TPartLocations].LocationID_FK
FROM ([T-Categories] INNER JOIN [T-Parts] ON [T-Categories].CategoryID = [T-Parts].CategoryID_FK) INNER JOIN [T-PartLocations] ON [T-Parts].MasterNum = [T-PartLocations].PartID_FK;
The problem lies with the LocationID_FK text box. I get the message in the status bar, when I click on a value: The Value cannot be added to the new row until the value has been committed. Commit the row first, then try adding the value.
LocationID_FK text box Row source is a query that combines the warehouse and bin location to one field. The control source is that field in the PartLocations table.
The tables are editable, the form is in add new mode. The query is also used as a row source for another table, to provide the same info (combined locations).
Mike
Just tried using the form in the edit mode and I was able to change the Part location just fine.
AddNewRecord VBA:
TempVars!tmpRecEntry = 1
DoCmd.OpenForm "F1_PartsEntry", acNormal, , , acFormAdd, acDialog
Tempvars used to set visible properties for other boxes.
EditRecord:
TempVars!tmpRecEntry = 2
DoCmd.OpenForm "F1_PartsEntry", acNormal, , , acFormEdit, acDialog
Last edited: