set value and goto record

C

cporter

I'm running a macro that sets the value of a text box in one form based
off another form and it's relaying the wrong info. When I type in the
value manually it works ok but doing it by macro returns 12/30/1899 or
00:03:35 for some reason

This is the code using in the set value dialog area

item Forms![frmPMprocLO]![Text29]
expression =[Forms]![frmPMByNum]![Dayup]


Also, how do you stop from going to a blank record using the goto
record function?
 
C

cporter

ok, found out the equal sign in the set value expression was a problem.
Not sure why though.

Still don't know how to avoid the empty record set
 
S

Steve Schapel

Cporter,

What form are you running the macro on? What event on that form? What
do you have entered in the Dayup textbox on the frmPMByNum form? Is
this textbox bound or unbound? If bound, is it bound to a field with a
Date/Time data type?

As regards GoToRecord action in your macro, what do you have in the
Record argument?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

date value 3
GoTo Current Record 1
Access 2007 Macro 1
macro set value subform record source error 1
Set Unbound ComboBox Value 4
DLookup in Set Value 4
Access goto next record for two tables 9
Using set Value 2

Top