Subform - first record keeps changing

Dr_Worm

Board Regular
Joined
Jul 28, 2003
Messages
103
I've got a form with a subform, on the form is a dropdown box (Combobox) called status from wich I can select to view projects in the subform. When I select for example "Won" I can see all the projects we have won. When I close and reopen the form the first record from the table where all the information comes from changes status to "Won" (Whatever status was selected from the previous time it was opened).

It only changes the first record in the table, that we know off, hopefully it isn't chaging any other records.

How do we fix this problem?

Also I have been asked how to make it so the form is blank when first opened instead of on the last selected status?

(y)
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
At a guess you have the combo's record Control Source bound which is what is causing it to change the records value.

To start with a blank record you could add
DoCmd.RunCommand acCmdRecordsGoToNew
to the Forms On Open Event.

HTH

Peter
 
Upvote 0
Thanks bat17 (y)

It works like a charm!

We can't beleive it was that simple :oops:

Dr Worm
 
Upvote 0

Forum statistics

Threads
1,221,574
Messages
6,160,602
Members
451,657
Latest member
Ang24

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top