B
BlueWolverine
Hello,
MS ACCESS 2003 on XP PRO.
I have a form that has always worked perfectly that rather suddenly died on
me.
Here's the scenario.
My search results form is tabular, it has rows and columns. Each row has a
button that sends that row's ID to another forms invisible field, so that a
query can read it. THAT QUERY READS THE VALUE PERFECTLY. the button also
then opens my "Detail" form based directly on the query that works perfectly.
The problem is, that instead of the form opening to the ID (or first/only
record in the query) it opens to what I would describe as "Add a new record"
mode. All fields are blank and the autonumber field for ID has (AUTONUMBER)
in the value portion.
This has not happened before. the query works perfectly. something has to
be wrong with the form and I can't find it.
Here is the code that opens the form. note, the ID value goes everywhere it
has to.
f_Edit_Checklist is based on q_Edit_Checklist, q works perfect, but f is
messed up.
************
Private Sub cmd_EDIT_Click()
lookupId = Me.ID.Value
[Forms]![MainMenu].[HoldIDNum] = lookupId
DoCmd.OpenForm "f_Edit_Checklist", acNormal
End Sub
************
Thank you.
MS ACCESS 2003 on XP PRO.
I have a form that has always worked perfectly that rather suddenly died on
me.
Here's the scenario.
My search results form is tabular, it has rows and columns. Each row has a
button that sends that row's ID to another forms invisible field, so that a
query can read it. THAT QUERY READS THE VALUE PERFECTLY. the button also
then opens my "Detail" form based directly on the query that works perfectly.
The problem is, that instead of the form opening to the ID (or first/only
record in the query) it opens to what I would describe as "Add a new record"
mode. All fields are blank and the autonumber field for ID has (AUTONUMBER)
in the value portion.
This has not happened before. the query works perfectly. something has to
be wrong with the form and I can't find it.
Here is the code that opens the form. note, the ID value goes everywhere it
has to.
f_Edit_Checklist is based on q_Edit_Checklist, q works perfect, but f is
messed up.
************
Private Sub cmd_EDIT_Click()
lookupId = Me.ID.Value
[Forms]![MainMenu].[HoldIDNum] = lookupId
DoCmd.OpenForm "f_Edit_Checklist", acNormal
End Sub
************
Thank you.