G
Guest
I build a new record in my table (sales) as follows. The problem that I am
having is how to display the record. The last line of this code tries to do
the display but its not correct. Will someone tell me how I should code it.
To get it to display correctlly I exec a next record command, and then a
previous record command and I get the correct display.
DoCmd.GoToRecord , , acNewRec
Me![bidnumber] = bidnumber
Me![jobname] = jname
Me![city] = jcity
Me![state] = Jstate
Me![owner] = jowner
Me![Architect] = JArch
Me![engineer] = Jeng
Me![bid-type] = jbtype
Me![bid-priority] = jbpri
Me![bid-date] = jbdate
Me![start-date] = jsdate
Me![building-size] = jtsize
Me![type] = jtype
stDocName = "Sales"
DoCmd.OpenForm stDocName, acNormal, , , , acWindowNormal
having is how to display the record. The last line of this code tries to do
the display but its not correct. Will someone tell me how I should code it.
To get it to display correctlly I exec a next record command, and then a
previous record command and I get the correct display.
DoCmd.GoToRecord , , acNewRec
Me![bidnumber] = bidnumber
Me![jobname] = jname
Me![city] = jcity
Me![state] = Jstate
Me![owner] = jowner
Me![Architect] = JArch
Me![engineer] = Jeng
Me![bid-type] = jbtype
Me![bid-priority] = jbpri
Me![bid-date] = jbdate
Me![start-date] = jsdate
Me![building-size] = jtsize
Me![type] = jtype
stDocName = "Sales"
DoCmd.OpenForm stDocName, acNormal, , , , acWindowNormal