473,387 Members | 1,619 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Undo subform from main form

I don't do much with subforms - in fact I've deliberately avoided them - but
....

I have a tab control that will contain several subforms, each bound to a
separate table, and each table/subform will relate to the same person - but
the subform data will not be 'linked' to the main form.

I want to have one Cancel button for all the undo operations on all the
subforms, so the individul subform's Public Sub, Form_Cancel will be called
depending on the subform to be cancelled:

Select Case Me.tabSupervision.Value ' main form's tab control
Case PROGRAMS
Me.ProgramSub.Form.Form_Cancel
Case DRUG_TESTS
Me.DrugSub.Form.Form_Cancel

etc...

Okay .. now, since the subform loses focus when the Cancel button is
selected on the main form, I'm having trouble easily undoing the data
changes. In the subform's Form_Cancel sub, Me.Undo doesn't work. I thought
setting the value = OldValue would work, but ... well, it doesn't.

So what will?
Darryl Kerkeslager
Nov 13 '05 #1
18 13538
Undo only works if the current record has not yet been saved. When you go
from a subform to another subform or to the main form, the record on that
subform gets saved and consequently you can no longer undo it. The same
principle applies to the old value. Once a record gets saved, the old value
of all the controls is lost and the "old value" becomes the value that got
saved or the current value shown on the screen.

To answer your question, all you can do is delete the record shown on the
screen:
Select Case Me.tabSupervision.Value ' main form's tab control
Case PROGRAMS
Me!ProgramSub.SetFocus
Me!ProgramSub!NameOfSomeFieldOnProgramSub
DoCmd.RunCommand acDeleteRecord
Case DRUG_TESTS
Me.DrugSub.SetFocus
Me!DrugSub!NameOfSomeFieldOnDrugSub
DoCmd.RunCommand acDeleteRecord

--
PC Datasheet
Your Resource For Help With Access, Excel And Word Applications
re******@pcdatasheet.com
www.pcdatasheet.com


"Darryl Kerkeslager" <Ke*********@comcast.net> wrote in message
news:f-********************@comcast.com...
I don't do much with subforms - in fact I've deliberately avoided them - but ...

I have a tab control that will contain several subforms, each bound to a
separate table, and each table/subform will relate to the same person - but the subform data will not be 'linked' to the main form.

I want to have one Cancel button for all the undo operations on all the
subforms, so the individul subform's Public Sub, Form_Cancel will be called depending on the subform to be cancelled:

Select Case Me.tabSupervision.Value ' main form's tab control
Case PROGRAMS
Me.ProgramSub.Form.Form_Cancel
Case DRUG_TESTS
Me.DrugSub.Form.Form_Cancel

etc...

Okay .. now, since the subform loses focus when the Cancel button is
selected on the main form, I'm having trouble easily undoing the data
changes. In the subform's Form_Cancel sub, Me.Undo doesn't work. I thought setting the value = OldValue would work, but ... well, it doesn't.

So what will?
Darryl Kerkeslager

Nov 13 '05 #2
Doesn't this newsgroup ever sleep? ;)

I was hoping there was an easier way that I was missing. My FE stores
records for the current person being edited in cloned tables of the BE, with
just the current person's records. If I delete the current record, I have
to restore it somehow - from stored variables, reloading from the BE (uck!),
text file, or a temp table. Or ... perhaps if, when the record is dirtied,
I copied the current record to a new record with "impossible" ID of 0, just
store the ID in a varaible, then change the ID number of record 0 to the
current ID if it needs to be deleted on Undo ... hmmm ..

Thanks, Steve.
Darryl Kerkeslager

"PC Datasheet" <no****@nospam.spam> wrote:
Undo only works if the current record has not yet been saved. When you go
from a subform to another subform or to the main form, the record on that
subform gets saved and consequently you can no longer undo it. The same
principle applies to the old value. Once a record gets saved, the old value of all the controls is lost and the "old value" becomes the value that got
saved or the current value shown on the screen.

To answer your question, all you can do is delete the record shown on the
screen:
Select Case Me.tabSupervision.Value ' main form's tab control
Case PROGRAMS
Me!ProgramSub.SetFocus
Me!ProgramSub!NameOfSomeFieldOnProgramSub
DoCmd.RunCommand acDeleteRecord
Case DRUG_TESTS
Me.DrugSub.SetFocus
Me!DrugSub!NameOfSomeFieldOnDrugSub
DoCmd.RunCommand acDeleteRecord

--
PC Datasheet
Your Resource For Help With Access, Excel And Word Applications
re******@pcdatasheet.com
www.pcdatasheet.com


"Darryl Kerkeslager" <Ke*********@comcast.net> wrote in message
news:f-********************@comcast.com...
I don't do much with subforms - in fact I've deliberately avoided them -

but
...

I have a tab control that will contain several subforms, each bound to a
separate table, and each table/subform will relate to the same person -

but
the subform data will not be 'linked' to the main form.

I want to have one Cancel button for all the undo operations on all the
subforms, so the individul subform's Public Sub, Form_Cancel will be

called
depending on the subform to be cancelled:

Select Case Me.tabSupervision.Value ' main form's tab control
Case PROGRAMS
Me.ProgramSub.Form.Form_Cancel
Case DRUG_TESTS
Me.DrugSub.Form.Form_Cancel

etc...

Okay .. now, since the subform loses focus when the Cancel button is
selected on the main form, I'm having trouble easily undoing the data
changes. In the subform's Form_Cancel sub, Me.Undo doesn't work. I

thought
setting the value = OldValue would work, but ... well, it doesn't.

So what will?
Darryl Kerkeslager


Nov 13 '05 #3
Darryl Kerkeslager wrote:
Doesn't this newsgroup ever sleep? ;)
Here you have a splendid advantage of world-wide netting! :-)
I was hoping there was an easier way that I was missing. My FE stores
records for the current person being edited in cloned tables of the BE, with
just the current person's records. If I delete the current record, I have
to restore it somehow - from stored variables, reloading from the BE (uck!),
text file, or a temp table. Or ... perhaps if, when the record is dirtied,
I copied the current record to a new record with "impossible" ID of 0, just
store the ID in a varaible, then change the ID number of record 0 to the
current ID if it needs to be deleted on Undo ... hmmm ..


Undo is not simple! At least not to the designer. I have been trying to
implement a limited form of Undo to one of my projects, but every method
that changes information must register its change in a way to a central
undo object, otherwise it won't work.

You could consider storing the record you offer for edit to a buffer
first. Yes, as you say, copy with the impossible ID. I think that is
closest.
--
Bas Cost Budde, Holland
http://www.heuveltop.nl/BasCB/msac_index.html
I prefer human mail above automated so in my address
replace the queue with a tea
Nov 13 '05 #4
rkc
Darryl Kerkeslager wrote:
Doesn't this newsgroup ever sleep? ;)

I was hoping there was an easier way that I was missing. My FE stores
records for the current person being edited in cloned tables of the BE, with
just the current person's records. If I delete the current record, I have
to restore it somehow - from stored variables, reloading from the BE (uck!),
text file, or a temp table. Or ... perhaps if, when the record is dirtied,
I copied the current record to a new record with "impossible" ID of 0, just
store the ID in a varaible, then change the ID number of record 0 to the
current ID if it needs to be deleted on Undo ... hmmm ..


Things can of course be more complicated, but the following code sets
up a pretty simple basic undo system for a single form.

<Form module>
Private oldValues As VBA.Collection

Private Sub Form_Load()
Call loadOldValues
End Sub

Private Sub Form_Current()
Call loadOldValues
End Sub

Private Sub loadOldValues()
Dim ctl As Access.Control
Set oldValues = New VBA.Collection

For Each ctl In Me.Controls
If ctl.ControlType = acTextBox Then
oldValues.Add ctl.Value & "", ctl.Name
End If
Next
End Sub

Public Sub restore()
Dim ctl As Access.Control

For Each ctl In Me.Controls
If ctl.ControlType = acTextBox Then
ctl.Value = oldValues.Item(ctl.Name)
End If
Next

Set ctl = Nothing
End Sub

</Form module>

A call to the sub form's restore() from a Main form command button
could look something like the following taking advantage of the fact
that the sub form control is returned by Screen.PreviousControl if a
control on a sub form has the focus. The error handling is used as a
way to avoid a Select Case statement.

Private Sub Undo_Click()
Dim n As String
On Error GoTo exitHere
n = Screen.PreviousControl.Name

Call Me(n).Form.restore

exitHere:

End Sub

Nov 13 '05 #5
Thanks, Bas.

I just read one of your other posts that mentioned English-language usage,
and then I re-read my own post here, where I've used some sort of
stream-of-consciousness run-on sentence that is an exteremely poor
representative of proper English. It occurs to me that such usage is rather
rude to non-native English speakers, who have consented to using English,
and now have to contend with my poor grammar.

I will also keep this in mind, should I try to brush up on my very limited
Spanish skills, that a newsgroup is probably not the best place to learn
proper syntax.
Darryl Kerkeslager
"Bas Cost Budde" <b.*********@heuvelqop.nl> wrote:
Darryl Kerkeslager wrote:
Doesn't this newsgroup ever sleep? ;)


Here you have a splendid advantage of world-wide netting! :-)
I was hoping there was an easier way that I was missing. My FE stores
records for the current person being edited in cloned tables of the BE, with just the current person's records. If I delete the current record, I have to restore it somehow - from stored variables, reloading from the BE (uck!), text file, or a temp table. Or ... perhaps if, when the record is dirtied, I copied the current record to a new record with "impossible" ID of 0, just store the ID in a varaible, then change the ID number of record 0 to the
current ID if it needs to be deleted on Undo ... hmmm ..


Undo is not simple! At least not to the designer. I have been trying to
implement a limited form of Undo to one of my projects, but every method
that changes information must register its change in a way to a central
undo object, otherwise it won't work.

You could consider storing the record you offer for edit to a buffer
first. Yes, as you say, copy with the impossible ID. I think that is
closest.
--
Bas Cost Budde, Holland
http://www.heuveltop.nl/BasCB/msac_index.html
I prefer human mail above automated so in my address
replace the queue with a tea

Nov 13 '05 #6
Darryl Kerkeslager wrote:
Thanks, Bas.

I just read one of your other posts that mentioned English-language usage,
and then I re-read my own post here, where I've used some sort of
stream-of-consciousness run-on sentence that is an exteremely poor
representative of proper English. It occurs to me that such usage is rather
rude to non-native English speakers, who have consented to using English,
and now have to contend with my poor grammar.

I will also keep this in mind, should I try to brush up on my very limited
Spanish skills, that a newsgroup is probably not the best place to learn
proper syntax.


Not for human language :-)

Or, it is indeed: to get a wider view of how your language can be used.
At least you have the opportunity (I suppose your native language is
English), I seldom do.

For non-native speakers, it is easier to produce basic sentences with
limited vocabulary, that stand a higher chance to be understood by the
majority of the non-native-english community.
In air traffic, a severely limited and strongly formalized subset of
English is in use. Even the pronounciation has been formalized. The risk
is too high.
I can think of very few reasons people would suffer or perish from
programming failure; yet for the same reason, adaptation is a good thing
to have in your toolbag. I try my best English when I have the feeling
I'm talking to someone who outdoes me; but I try my worst, so to say,
with others.

Sometimes I read aloud others' posts just to understand them. English is
not easy to read because there is so little structural difference for
functional difference. Other languages have endings that are hard to
learn to use, but easy on the reader IFF you get what they are for.
--
Bas Cost Budde, Holland
http://www.heuveltop.nl/BasCB/msac_index.html
I prefer human mail above automated so in my address
replace the queue with a tea
Nov 13 '05 #7
Thanks. I had not considered using a Collection. Very clean solution. I
thought this ought to be less complicated than what I was toying with, but I
couldn't find the key.
Darryl Kerekslager
"rkc" <rk*@rochester.yabba.dabba.do.rr.bomb> wrote
Darryl Kerkeslager wrote:
Doesn't this newsgroup ever sleep? ;)

I was hoping there was an easier way that I was missing. My FE stores
records for the current person being edited in cloned tables of the BE, with just the current person's records. If I delete the current record, I have to restore it somehow - from stored variables, reloading from the BE (uck!), text file, or a temp table. Or ... perhaps if, when the record is dirtied, I copied the current record to a new record with "impossible" ID of 0, just store the ID in a varaible, then change the ID number of record 0 to the
current ID if it needs to be deleted on Undo ... hmmm ..


Things can of course be more complicated, but the following code sets
up a pretty simple basic undo system for a single form.

<Form module>
Private oldValues As VBA.Collection

Private Sub Form_Load()
Call loadOldValues
End Sub

Private Sub Form_Current()
Call loadOldValues
End Sub

Private Sub loadOldValues()
Dim ctl As Access.Control
Set oldValues = New VBA.Collection

For Each ctl In Me.Controls
If ctl.ControlType = acTextBox Then
oldValues.Add ctl.Value & "", ctl.Name
End If
Next
End Sub

Public Sub restore()
Dim ctl As Access.Control

For Each ctl In Me.Controls
If ctl.ControlType = acTextBox Then
ctl.Value = oldValues.Item(ctl.Name)
End If
Next

Set ctl = Nothing
End Sub

</Form module>

A call to the sub form's restore() from a Main form command button
could look something like the following taking advantage of the fact
that the sub form control is returned by Screen.PreviousControl if a
control on a sub form has the focus. The error handling is used as a
way to avoid a Select Case statement.

Private Sub Undo_Click()
Dim n As String
On Error GoTo exitHere
n = Screen.PreviousControl.Name

Call Me(n).Form.restore

exitHere:

End Sub


Nov 13 '05 #8
Be Careful!

That procedure only undoes textboxes. If you have other controls on your
form such as comboboxes, they DO NOT get undone and when you leave the
subform a record gets saved with the values in all the controls that are not
textboxes.

Steve
PC Datasheet

"Darryl Kerkeslager" <Ke*********@comcast.net> wrote in message
news:y7********************@comcast.com...
Thanks. I had not considered using a Collection. Very clean solution. I
thought this ought to be less complicated than what I was toying with, but I couldn't find the key.
Darryl Kerekslager
"rkc" <rk*@rochester.yabba.dabba.do.rr.bomb> wrote
Darryl Kerkeslager wrote:
Doesn't this newsgroup ever sleep? ;)

I was hoping there was an easier way that I was missing. My FE stores
records for the current person being edited in cloned tables of the BE,
with
just the current person's records. If I delete the current record, I have to restore it somehow - from stored variables, reloading from the BE (uck!), text file, or a temp table. Or ... perhaps if, when the record is dirtied, I copied the current record to a new record with "impossible" ID of 0, just store the ID in a varaible, then change the ID number of record 0 to

the current ID if it needs to be deleted on Undo ... hmmm ..


Things can of course be more complicated, but the following code sets
up a pretty simple basic undo system for a single form.

<Form module>
Private oldValues As VBA.Collection

Private Sub Form_Load()
Call loadOldValues
End Sub

Private Sub Form_Current()
Call loadOldValues
End Sub

Private Sub loadOldValues()
Dim ctl As Access.Control
Set oldValues = New VBA.Collection

For Each ctl In Me.Controls
If ctl.ControlType = acTextBox Then
oldValues.Add ctl.Value & "", ctl.Name
End If
Next
End Sub

Public Sub restore()
Dim ctl As Access.Control

For Each ctl In Me.Controls
If ctl.ControlType = acTextBox Then
ctl.Value = oldValues.Item(ctl.Name)
End If
Next

Set ctl = Nothing
End Sub

</Form module>

A call to the sub form's restore() from a Main form command button
could look something like the following taking advantage of the fact
that the sub form control is returned by Screen.PreviousControl if a
control on a sub form has the focus. The error handling is used as a
way to avoid a Select Case statement.

Private Sub Undo_Click()
Dim n As String
On Error GoTo exitHere
n = Screen.PreviousControl.Name

Call Me(n).Form.restore

exitHere:

End Sub



Nov 13 '05 #9
I assume that you mean that I just need to check combos using the
appropriate Access constant, or is there a "gotcha" particular to combos?

Darryl Kerkeslager

"PC Datasheet" <no****@nospam.spam> wrote:
Be Careful!

That procedure only undoes textboxes. If you have other controls on your
form such as comboboxes, they DO NOT get undone and when you leave the
subform a record gets saved with the values in all the controls that are not textboxes.

Steve
PC Datasheet

"Darryl Kerkeslager" <Ke*********@comcast.net> wrote in message
news:y7********************@comcast.com...
Thanks. I had not considered using a Collection. Very clean solution. I
thought this ought to be less complicated than what I was toying with, but
I
couldn't find the key.
Darryl Kerekslager
"rkc" <rk*@rochester.yabba.dabba.do.rr.bomb> wrote
Darryl Kerkeslager wrote:
> Doesn't this newsgroup ever sleep? ;)
>
> I was hoping there was an easier way that I was missing. My FE stores > records for the current person being edited in cloned tables of the

BE,
with
> just the current person's records. If I delete the current record,

I have
> to restore it somehow - from stored variables, reloading from the BE

(uck!),
> text file, or a temp table. Or ... perhaps if, when the record is

dirtied,
> I copied the current record to a new record with "impossible" ID of
0, just
> store the ID in a varaible, then change the ID number of record 0 to

the > current ID if it needs to be deleted on Undo ... hmmm ..

Things can of course be more complicated, but the following code sets
up a pretty simple basic undo system for a single form.

<Form module>
Private oldValues As VBA.Collection

Private Sub Form_Load()
Call loadOldValues
End Sub

Private Sub Form_Current()
Call loadOldValues
End Sub

Private Sub loadOldValues()
Dim ctl As Access.Control
Set oldValues = New VBA.Collection

For Each ctl In Me.Controls
If ctl.ControlType = acTextBox Then
oldValues.Add ctl.Value & "", ctl.Name
End If
Next
End Sub

Public Sub restore()
Dim ctl As Access.Control

For Each ctl In Me.Controls
If ctl.ControlType = acTextBox Then
ctl.Value = oldValues.Item(ctl.Name)
End If
Next

Set ctl = Nothing
End Sub

</Form module>

A call to the sub form's restore() from a Main form command button
could look something like the following taking advantage of the fact
that the sub form control is returned by Screen.PreviousControl if a
control on a sub form has the focus. The error handling is used as a
way to avoid a Select Case statement.

Private Sub Undo_Click()
Dim n As String
On Error GoTo exitHere
n = Screen.PreviousControl.Name

Call Me(n).Form.restore

exitHere:

End Sub




Nov 13 '05 #10
rkc
Darryl Kerkeslager wrote:
Thanks. I had not considered using a Collection. Very clean solution. I
thought this ought to be less complicated than what I was toying with, but I
couldn't find the key.


As PC Datasheet pointed out the code I posted only handles
textbox controls. I figured that was obvious and didn't
bother to clutter things up with Or's or a Select Case.
Anyhow, since then I've thought about it a bit and would
probably handle things by checking to see if the control
had a data source. Something like:

On Error Resume Next
For Each ctl In f.Controls
If Len(ctl.ControlSource & vbNullString) > 0 Then
ctl.Value = oldValues.Item(ctl.Name)
End If
Next

Nov 13 '05 #11
Darryl Kerkeslager wrote:
I assume that you mean that I just need to check combos using the
appropriate Access constant, or is there a "gotcha" particular to combos?


I suggest to not test for controltype=acWhatever, but for a filled
Controlsource. That way you save every bound control.
--
Bas Cost Budde, Holland
http://www.heuveltop.nl/BasCB/msac_index.html
I prefer human mail above automated so in my address
replace the queue with a tea
Nov 13 '05 #12
rkc wrote:
As PC Datasheet pointed out the code I posted only handles
textbox controls. I figured that was obvious and didn't
bother to clutter things up with Or's or a Select Case.
Anyhow, since then I've thought about it a bit and would
probably handle things by checking to see if the control
had a data source. Something like:


Umm, that sort of thing.

Slight disadvantage of forking threads/not reading in order of arrival :-)

--
Bas Cost Budde, Holland
http://www.heuveltop.nl/BasCB/msac_index.html
I prefer human mail above automated so in my address
replace the queue with a tea
Nov 13 '05 #13
As it turns out, I'll need to use the first method, since I have some
unbound textboxes that are filled from the hidden columns of a bound
combobox (no point in going to the effort of releading the textboxes), but I
do like the simplicity of checking the control source. It's one of those
obvoius solutions that I might overlook - I think my first thought is
usually to cover all the bases (textbox+combobox+checkbox), rather than find
the common denominator (has control source).
Darryl Kerkeslager
"rkc" <rk*@rochester.yabba.dabba.do.rr.bomb> wrote in message
news:Ls*****************@twister.nyroc.rr.com...
Darryl Kerkeslager wrote:
Thanks. I had not considered using a Collection. Very clean solution. I thought this ought to be less complicated than what I was toying with, but I couldn't find the key.


As PC Datasheet pointed out the code I posted only handles
textbox controls. I figured that was obvious and didn't
bother to clutter things up with Or's or a Select Case.
Anyhow, since then I've thought about it a bit and would
probably handle things by checking to see if the control
had a data source. Something like:

On Error Resume Next
For Each ctl In f.Controls
If Len(ctl.ControlSource & vbNullString) > 0 Then
ctl.Value = oldValues.Item(ctl.Name)
End If
Next

Nov 13 '05 #14
I have some unbound data to save also, but the controlsource is certainly a
more elegant solution.
Darryl Kerkeslager
"Bas Cost Budde" <b.*********@heuvelqop.nl> wrote in message
news:cq**********@news2.solcon.nl...
Darryl Kerkeslager wrote:
I assume that you mean that I just need to check combos using the
appropriate Access constant, or is there a "gotcha" particular to
combos?
I suggest to not test for controltype=acWhatever, but for a filled
Controlsource. That way you save every bound control.
--
Bas Cost Budde, Holland
http://www.heuveltop.nl/BasCB/msac_index.html
I prefer human mail above automated so in my address
replace the queue with a tea

Nov 13 '05 #15
> Slight disadvantage of forking threads/not reading in order of arrival :-)
I often read in reverse order, and have done the same thing. __it happens.
Darryl Kerkeslager
Nov 13 '05 #16
Darryl Kerkeslager wrote:
I have some unbound data to save also, but the controlsource is certainly a
more elegant solution.


Hey? Where do you save unbound data?

--
Bas Cost Budde, Holland
http://www.heuveltop.nl/BasCB/msac_index.html
I prefer human mail above automated so in my address
replace the queue with a tea
Nov 13 '05 #17
I have a combobox of agencies. Only the name displays, but the hidden
columns contain the address and phone number. In the After Update for the
combo, I fill some unbound textboxes with the address and phone info. If I
do an undo, I just want to save all the address and phone info in the
Collection, and repopulate those textboxes from the Collection, not again by
Me.txtAddress = Me.cboAgency.column(2)
Darryl Kerkeslager
"Bas Cost Budde" <b.*********@heuvelqop.nl> wrote in message
news:cq**********@news2.solcon.nl...
Darryl Kerkeslager wrote:
I have some unbound data to save also, but the controlsource is certainly a more elegant solution.


Hey? Where do you save unbound data?

--
Bas Cost Budde, Holland
http://www.heuveltop.nl/BasCB/msac_index.html
I prefer human mail above automated so in my address
replace the queue with a tea

Nov 13 '05 #18
rkc
Darryl Kerkeslager wrote:
As it turns out, I'll need to use the first method, since I have some
unbound textboxes that are filled from the hidden columns of a bound
combobox (no point in going to the effort of releading the textboxes), but I
do like the simplicity of checking the control source. It's one of those
obvoius solutions that I might overlook - I think my first thought is
usually to cover all the bases (textbox+combobox+checkbox), rather than find
the common denominator (has control source).


This is why I began my original reply with things could get
more complicated. It would be easy enough to write a class
that handled all bound controls and even monitored the forms
events so that the client code was reduced to simply creating
the "undo object" and delegating a restore() method to that
object's restore() method. But, then there are cases like yours
where that isn't enough and you'd need to add to the class or
re-create similar code to handle the additional requirements.
Nov 13 '05 #19

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: William Wisnieski | last post by:
Hello Everyone, Access 2000 I have a main form with a continuous subform. On the main form I have a text field called . It gets populated based on what the user selects in a field on the...
9
by: chris vettese | last post by:
On my subform I have a field in the footer that totals the value of a field. On the main form I have referenced this field. I'm using this field in a calculation on my main form. The problem...
1
by: Susan | last post by:
I have a bound form and subform and am trying to enter the data in both forms programatically. The Linkmaster and Linkchild properties are set. My intent is to be able to look at the data before it...
4
by: Dave Boyd | last post by:
Hi, I have two very similar forms each with a subform. The main form gets a few fields from the user and passes this back to a query that the subform is bound to. The requery is done when the...
1
by: NBruch | last post by:
Ok let me explain what im trying to do: i need a combo box which needs to be linked to a listbox (or combo box doesnt matter which really) then the listbox should bring up the record in a...
4
imrosie
by: imrosie | last post by:
Hello all, I'm a YAN (yet another newbie) in need of help. I've got an image database all setup and working fine now, thanks to the help you've given me. In the main form a user can search for an...
11
by: OldBirdman | last post by:
I have a form with several bound textboxes. These are routinely updated by User. The table in RecordSource for this form currently has 8 fields not shown on this form, but which occasionally need...
6
by: Kaloyan Krumov | last post by:
I have the following set up: Tables Supplier SupplierContacts Forms SupplierRegform SupplierContacts - subform On the main form I’m using tab control with two tabs. The first tab contains...
4
beacon
by: beacon | last post by:
Hi everybody, I have a main form, frmDeficiency, that has a tab control, deficiencyTabControl, that has a subform, fsubEpisodeDetail, on page 2 of the tab control. I also have a command button...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.