Link to home
Start Free TrialLog in
Avatar of ellandrd
ellandrdFlag for Ireland

asked on

Suform requerring a main froms txtbox urgent 500 points

i need to requery a txtbox on my main form when an entry is put into my sbform.

I have tried Forms!frmTimeEntry.txtOTime.Requery on an after update event dosnt work.

I cant requery the whole form due to a complex nature i will not get into.

Thanks
Avatar of jjafferr
jjafferr
Flag of Oman image

Instead of Requerying the Textbox, why don't you just add the data directly to it from the subform, like this:
Forms![Main Form Name]![Field Name]= [Your Subform Field name]

usually you want to requery a combobox so that it reflects new data.

jaffer
You can also requery the Main Form and after you requery, you go back to the Record you were before (so the Form will not start from Record Number one),
you can use RecordsetColon.Bookmark
Avatar of ellandrd

ASKER

you second suggestion sounds best how do i go about that?

Never used it.

Ps there is a SQL trigger on the main txt boxes that why i am going down this route
ASKER CERTIFIED SOLUTION
Avatar of jjafferr
jjafferr
Flag of Oman image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
thanks
you are welcome,
and thanks for the points and grade.

jaffer