I have weird issue, code that was working suddenly started to generate an issue (i have no clue how to bypass it)
I have List Box (List2) on Form1, It's populated by:
SELECT [queryFormyTradycyjne].[Nr Maszyny], [queryFormyTradycyjne].[UID], [queryFormyTradycyjne].[Nazwa], [queryFormyTradycyjne].[UAP], [queryFormyTradycyjne].[Linia], [queryFormyTradycyjne].[GAP], [queryFormyTradycyjne].[Status] FROM queryFormyTradycyjne ORDER BY [Nr Maszyny];
queryFormyTradycyjne code:
SELECT Lista.[Nr Maszyny], Lista.[Nazwa], Lista.[UAP], Lista.[Linia], Lista.[GAP], Lista.[Status], Lista.[UID]
FROM Lista
WHERE Lista.isValid=False And Lista.UID Like 'FF*';
and if I'll double click on an item from List2 it supose to deliver value to the other form (AwariaZgloszenieNew), to the text field named txtNrMaszyny.
THAT was working just fine, since 2 hours ago. I actually didnt touch a thing in the code nor in any of these forms. I checked that on several PC's with different Access version installed. Same result: Error Method 'Item' of object 'Forms' failed (-2146500594 (800f000e))
My VBA code for double click event:
Public strSelectedItem As String
Private Sub List2_DblClick(Cancel As Integer)
Dim varItem As Variant
With Me.List2
For Each varItem In .ItemsSelected
strSelectedItem = .ItemData(varItem)
Next
End With
DoCmd.OpenForm "AwariaZgloszenieNew"
[Forms]![AwariaZgloszenieNew].[txtNrMaszyny] = strSelectedItem
End Sub
Anyone with any kind of idea?