Re: Populating unbound forms

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance




"Dean" <Dean@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:CDC596D4-894C-47F4-8DCE-8D6557626366@xxxxxxxxxxxxxxxx
Hi how do i populate a unbound form. What is the best way to get the data
from the tables to the fields. I can not find much documentation on this
so
if anyone could point me in the right direction that would be great

It is worth the minimal time and effort to learn how Access works with bound
forms for forms with data. Really. It is.

If not, you are duplicating the time and effort that was expended to build
form population and updating into the product, and you are subjecting
yourself to possible errors for which you have to test anew on each unique
form.

That said, if you feel _compelled_ to use unbound forms for data, and the
data is not to be updated, you can populate the Controls, as was suggested,
with domain aggregate functions, e.g. DLookup, Dsum, DMax, Davg. If the data
is to be updated, you'll have to write VBA code to get the data, display it,
determine if it has been changed, and then write the data back to the tables
in your database.

I often use unbound forms as "switchboards" for navigation, or to allow a
user to enter criteria for choosing a report, or choosing what data to
display on a bound form. But they complicate matters if you decide to use
them for data entry or data update.

Larry Linson
Microsoft Access MVP


.



Relevant Pages

  • Re: Rowsource of Field List
    ... Larry has just gone a well deserved vacation, so let me see if I can jump ... What is the relationship between tblOrder and tblOrderStatus (I ... > The Unbound Date should be one of the dates in the tblOrder. ... then the Unbound Date should display ...
    (microsoft.public.access.forms)
  • RE: Different types of Boxes
    ... After Update event of the bound text box to change the value in the combo: ... and a Bound Text Box as my "Display / Edit! ... An unbound text box is usually used as a calculated control. ... it is improper to store it in a table. ...
    (microsoft.public.access.gettingstarted)
  • RE: Save values displayed in unbound text fields from combo box to tab
    ... This box was created with the combo box wizard query and is based on another ... Table called Referring Providers. ... After the combo box there are 4 unbound text fields which display the ...
    (microsoft.public.access.forms)
  • Re: Next & Previous buttons dont display data correctly in Access
    ... The unbound controls remain ... NOTE - it is only display that is incorrect - the database ... > Exit Sub ... > The custom print button is supposed to print of a report version of the ...
    (microsoft.public.access.forms)
  • Re: Using forms
    ... To display a particular record, use Filter By Form on the ... Another way is to provide an unbound "Selection ... Criteria" form. ... Private Sub YourCommandButtonName_Click ...
    (microsoft.public.access.forms)