Please advise...
I currently have a Mainform (Customers) and a Subform (Service
Requests) with a one to many relationship (one customer, many service
requests) with a CustomerID that is unique for each customer and is
autofilled on the subform. Subform contains field called TicketID
(which there could be multiple instances of and is not referenced on
the mainform at all). I want to be able to type in a TicketID and
have the mainform navigate to the correct customer. I have a cmbbox
with following setup:
SELECT DISTINCT [Service Records].[Ticket ID], [Service
Records].CustomerID FROM [Service Records];
Marshall gave the following advice to someone with a similar problem,
but I can't get it to work. After Me.Recordset, there is no option
for FindFirst, and I don't know what to put in the "[Serial]="
section. Any help is appreciated.
Ok, the combo box is unbound ans you want it to make the
main form display (navigate to) the record for the selected
computer. If that's a correct understanding of your
arrangement, then the code in the combo box's AfterUpdate
event needs to be something like this:
If Serial is a numeric type field:
Me.Recordset.Fi ndFirst "[Serial]=" & Me.combobox
If serial is a Text field:
Me.Recordset.Fi ndFirst "[Serial]=""" & Me.combobox & """" 18 3605
On Apr 9, 10:08 am, "Robert Jacobs" <robertjacob... @gmail.comwrote :
Please advise...
I currently have a Mainform (Customers) and a Subform (Service
Requests) with a one to many relationship (one customer, many service
requests) with a CustomerID that is unique for each customer and is
autofilled on the subform. Subform contains field called TicketID
(which there could be multiple instances of and is not referenced on
the mainform at all). I want to be able to type in a TicketID and
have the mainform navigate to the correct customer. I have a cmbbox
with following setup:
SELECT DISTINCT [Service Records].[Ticket ID], [Service
Records].CustomerID FROM [Service Records];
Marshall gave the following advice to someone with a similar problem,
but I can't get it to work. After Me.Recordset, there is no option
for FindFirst, and I don't know what to put in the "[Serial]="
section. Any help is appreciated.
Ok, the combo box is unbound ans you want it to make the
main form display (navigate to) the record for the selected
computer. If that's a correct understanding of your
arrangement, then the code in the combo box's AfterUpdate
event needs to be something like this:
If Serial is a numeric type field:
Me.Recordset.Fi ndFirst "[Serial]=" & Me.combobox
If serial is a Text field:
Me.Recordset.Fi ndFirst "[Serial]=""" & Me.combobox & """"
me.recordset... . refers to the current form
if your combobox is on the subform, the above refers to the subform
me.parent.form. recordset.... would refer to the main form's recordset
On Apr 9, 11:34 am, lesperan...@nat pro.com wrote:
On Apr 9, 10:08 am, "Robert Jacobs" <robertjacob... @gmail.comwrote :
Please advise...
I currently have a Mainform (Customers) and a Subform (Service
Requests) with a one to many relationship (one customer, many service
requests) with a CustomerID that is unique for each customer and is
autofilled on the subform. Subform contains field called TicketID
(which there could be multiple instances of and is not referenced on
the mainform at all). I want to be able to type in a TicketID and
have the mainform navigate to the correct customer. I have a cmbbox
with following setup:
SELECT DISTINCT [Service Records].[Ticket ID], [Service
Records].CustomerID FROM [Service Records];
Marshall gave the following advice to someone with a similar problem,
but I can't get it to work. After Me.Recordset, there is no option
for FindFirst, and I don't know what to put in the "[Serial]="
section. Any help is appreciated.
Ok, the combo box is unbound ans you want it to make the
main form display (navigate to) the record for the selected
computer. If that's a correct understanding of your
arrangement, then the code in the combo box's AfterUpdate
event needs to be something like this:
If Serial is a numeric type field:
Me.Recordset.Fi ndFirst "[Serial]=" & Me.combobox
If serial is a Text field:
Me.Recordset.Fi ndFirst "[Serial]=""" & Me.combobox & """"
me.recordset... . refers to the current form
if your combobox is on the subform, the above refers to the subform
me.parent.form. recordset.... would refer to the main form's recordset- Hide quoted text -
- Show quoted text -
Thanks. The combobox is on the mainform, and refers to the subform.
when I type me.recordset. I hear a sound like "dun" and then it
doesn't keep trying to autofill the FindFirst entry. If I do
me.parent. I get the same sound and it won't keep filling the word
form. Am I doing something wrong, or is it supposed to do this?
Also, what do I need to put in the "[serial]="" section from above?
Robert Jacobs wrote:
>I currently have a Mainform (Customers) and a Subform (Service Requests) with a one to many relationship (one customer, many service requests) with a CustomerID that is unique for each customer and is autofilled on the subform. Subform contains field called TicketID (which there could be multiple instances of and is not referenced on the mainform at all). I want to be able to type in a TicketID and have the mainform navigate to the correct customer. I have a cmbbox with following setup:
SELECT DISTINCT [Service Records].[Ticket ID], [Service Records].CustomerID FROM [Service Records];
Marshall gave the following advice to someone with a similar problem, but I can't get it to work. After Me.Recordset, there is no option for FindFirst, and I don't know what to put in the "[Serial]=" section. Any help is appreciated.
Ok, the combo box is unbound ans you want it to make the main form display (navigate to) the record for the selected computer. If that's a correct understanding of your arrangement, then the code in the combo box's AfterUpdate event needs to be something like this:
If Serial is a numeric type field:
Me.Recordset.Fi ndFirst "[Serial]=" & Me.combobox
If serial is a Text field:
Me.Recordset.Fi ndFirst "[Serial]=""" & Me.combobox & """"
I am having trouble following what you want to happen here.
I think you want the main form to navigate to the customer
selected in the combo box. Assuming the combo box's
BoundColumn is set to 1, I think you would use this kind of
statement:
Me.Recordset.Fi ndFirst "CustomerID =" & combobox.Column (1)
But, if you get a method not found error, it's probably
because the form is using an ADO recordset instead of a DAO
recordset. ADO uses the Find method instead of FindFirst.
OTOH, your main form should not be loading all the customer
records, which would be a gross waste of resources. Instead
the form should open with no customer records and only load
one customer record after a selection is made in the combo
box.
--
Marsh
On Apr 10, 2:45 pm, Marshall Barton <marshbar...@wo wway.comwrote:
Robert Jacobs wrote:
I currently have a Mainform (Customers) and a Subform (Service
Requests) with a one to many relationship (one customer, many service
requests) with a CustomerID that is unique for each customer and is
autofilled on the subform. Subform contains field called TicketID
(which there could be multiple instances of and is not referenced on
the mainform at all). I want to be able to type in a TicketID and
have the mainform navigate to the correct customer. I have a cmbbox
with following setup:
SELECT DISTINCT [Service Records].[Ticket ID], [Service
Records].CustomerID FROM [Service Records];
Marshall gave the following advice to someone with a similar problem,
but I can't get it to work. After Me.Recordset, there is no option
for FindFirst, and I don't know what to put in the "[Serial]="
section. Any help is appreciated.
Ok, the combo box is unbound ans you want it to make the
main form display (navigate to) the record for the selected
computer. If that's a correct understanding of your
arrangement, then the code in the combo box's AfterUpdate
event needs to be something like this:
If Serial is a numeric type field:
Me.Recordset.Fi ndFirst "[Serial]=" & Me.combobox
If serial is a Text field:
Me.Recordset.Fi ndFirst "[Serial]=""" & Me.combobox & """"
I am having trouble following what you want to happen here.
I think you want the main form to navigate to the customer
selected in the combo box. Assuming the combo box's
BoundColumn is set to 1, I think you would use this kind of
statement:
Me.Recordset.Fi ndFirst "CustomerID =" & combobox.Column (1)
But, if you get a method not found error, it's probably
because the form is using an ADO recordset instead of a DAO
recordset. ADO uses the Find method instead of FindFirst.
OTOH, your main form should not be loading all the customer
records, which would be a gross waste of resources. Instead
the form should open with no customer records and only load
one customer record after a selection is made in the combo
box.
--
Marsh- Hide quoted text -
- Show quoted text -
Ok. That's not what I was trying to accomplish. I will try to be a
little more clear (sorry). I have multiple customers (which I do want
loaded on the mainform (customers) when it opens, there are never more
than 50 customers). Each customer is automatically assigned a
customer ID (which he never sees-it is an autonumber that is
irrelivant to the user, just there because there has to be a primary
key). This customer ID is automatically propogated to the linked
subform (service requests) for every record for that customer. In the
subform there is a txtbox that holds a ticket ID (which is not
necessarily unique, and each customer has multiple ticket IDs). I
have also added an embedded subform (just there so he can see the
ticket IDs and is not necessary) that shows all of the ticket IDs for
the currently displayed customer. I have created a combobox that is
on the mainform that is autopopulated with all of the ticket IDs for
ALL customers. I would for him to be able to select a ticket ID (or
type it in) and have the mainform go to the next customer that
contains that ticket ID in one of it's records in the subform.
Is this possible?
On Apr 10, 2:07 pm, "Robert Jacobs" <robertjacob... @gmail.comwrote :
On Apr 10, 2:45 pm, Marshall Barton <marshbar...@wo wway.comwrote:
Robert Jacobs wrote:
>I currently have a Mainform (Customers) and a Subform (Service
>Requests) with a one to many relationship (one customer, many service
>requests) with a CustomerID that is unique for each customer and is
>autofilled on the subform. Subform contains field called TicketID
>(which there could be multiple instances of and is not referenced on
>the mainform at all). I want to be able to type in a TicketID and
>have the mainform navigate to the correct customer. I have a cmbbox
>with following setup:
>SELECT DISTINCT [Service Records].[Ticket ID], [Service
>Records].CustomerID FROM [Service Records];
>Marshall gave the following advice to someone with a similar problem,
>but I can't get it to work. After Me.Recordset, there is no option
>for FindFirst, and I don't know what to put in the "[Serial]="
>section. Any help is appreciated.
>Ok, the combo box is unbound ans you want it to make the
>main form display (navigate to) the record for the selected
>computer. If that's a correct understanding of your
>arrangement, then the code in the combo box's AfterUpdate
>event needs to be something like this:
>If Serial is a numeric type field:
Me.Recordset.Fi ndFirst "[Serial]=" & Me.combobox
>If serial is a Text field:
Me.Recordset.Fi ndFirst "[Serial]=""" & Me.combobox & """"
I am having trouble following what you want to happen here.
I think you want the main form to navigate to the customer
selected in the combo box. Assuming the combo box's
BoundColumn is set to 1, I think you would use this kind of
statement:
Me.Recordset.Fi ndFirst "CustomerID =" & combobox.Column (1)
But, if you get a method not found error, it's probably
because the form is using an ADO recordset instead of a DAO
recordset. ADO uses the Find method instead of FindFirst.
OTOH, your main form should not be loading all the customer
records, which would be a gross waste of resources. Instead
the form should open with no customer records and only load
one customer record after a selection is made in the combo
box.
--
Marsh- Hide quoted text -
- Show quoted text -
Ok. That's not what I was trying to accomplish. I will try to be a
little more clear (sorry). I have multiple customers (which I do want
loaded on the mainform (customers) when it opens, there are never more
than 50 customers). Each customer is automatically assigned a
customer ID (which he never sees-it is an autonumber that is
irrelivant to the user, just there because there has to be a primary
key). This customer ID is automatically propogated to the linked
subform (service requests) for every record for that customer. In the
subform there is a txtbox that holds a ticket ID (which is not
necessarily unique, and each customer has multiple ticket IDs). I
have also added an embedded subform (just there so he can see the
ticket IDs and is not necessary) that shows all of the ticket IDs for
the currently displayed customer. I have created a combobox that is
on the mainform that is autopopulated with all of the ticket IDs for
ALL customers. I would for him to be able to select a ticket ID (or
type it in) and have the mainform go to the next customer that
contains that ticket ID in one of it's records in the subform.
Is this possible?- Hide quoted text -
- Show quoted text -
not sure want you mean by 'go to the next customer', but
you can do this
dim lngCustId as long
lngCust = dfirst("custId" ,"service records", "ticketId = " &
me.combobox)
Me.Recordset.Fi ndFirst "[custId]=" & lngCust
to give you the 'first' customer with a ticketId that matches what was
entered / selected
you can change the 'where' (ie. "ticketId = " & me.combobox) clause to
get a different customer id
On Apr 10, 3:42 pm, lesperan...@nat pro.com wrote:
On Apr 10, 2:07 pm, "Robert Jacobs" <robertjacob... @gmail.comwrote :
On Apr 10, 2:45 pm, Marshall Barton <marshbar...@wo wway.comwrote:
Robert Jacobs wrote:
I currently have a Mainform (Customers) and a Subform (Service
Requests) with a one to many relationship (one customer, many service
requests) with a CustomerID that is unique for each customer and is
autofilled on the subform. Subform contains field called TicketID
(which there could be multiple instances of and is not referenced on
the mainform at all). I want to be able to type in a TicketID and
have the mainform navigate to the correct customer. I have a cmbbox
with following setup:
SELECT DISTINCT [Service Records].[Ticket ID], [Service
Records].CustomerID FROM [Service Records];
Marshall gave the following advice to someone with a similar problem,
but I can't get it to work. After Me.Recordset, there is no option
for FindFirst, and I don't know what to put in the "[Serial]="
section. Any help is appreciated.
Ok, the combo box is unbound ans you want it to make the
main form display (navigate to) the record for the selected
computer. If that's a correct understanding of your
arrangement, then the code in the combo box's AfterUpdate
event needs to be something like this:
If Serial is a numeric type field:
Me.Recordset.Fi ndFirst "[Serial]=" & Me.combobox
If serial is a Text field:
Me.Recordset.Fi ndFirst "[Serial]=""" & Me.combobox & """"
I am having trouble following what you want to happen here.
I think you want the main form to navigate to the customer
selected in the combo box. Assuming the combo box's
BoundColumn is set to 1, I think you would use this kind of
statement:
Me.Recordset.Fi ndFirst "CustomerID =" & combobox.Column (1)
But, if you get a method not found error, it's probably
because the form is using an ADO recordset instead of a DAO
recordset. ADO uses the Find method instead of FindFirst.
OTOH, your main form should not be loading all the customer
records, which would be a gross waste of resources. Instead
the form should open with no customer records and only load
one customer record after a selection is made in the combo
box.
--
Marsh- Hide quoted text -
- Show quoted text -
Ok. That's not what I was trying to accomplish. I will try to be a
little more clear (sorry). I have multiple customers (which I do want
loaded on the mainform (customers) when it opens, there are never more
than 50 customers). Each customer is automatically assigned a
customer ID (which he never sees-it is an autonumber that is
irrelivant to the user, just there because there has to be a primary
key). This customer ID is automatically propogated to the linked
subform (service requests) for every record for that customer. In the
subform there is a txtbox that holds a ticket ID (which is not
necessarily unique, and each customer has multiple ticket IDs). I
have also added an embedded subform (just there so he can see the
ticket IDs and is not necessary) that shows all of the ticket IDs for
the currently displayed customer. I have created a combobox that is
on the mainform that is autopopulated with all of the ticket IDs for
ALL customers. I would for him to be able to select a ticket ID (or
type it in) and have the mainform go to the next customer that
contains that ticket ID in one of it's records in the subform.
Is this possible?- Hide quoted text -
- Show quoted text -
not sure want you mean by 'go to the next customer', but
you can do this
dim lngCustId as long
lngCust = dfirst("custId" ,"service records", "ticketId = " &
me.combobox)
Me.Recordset.Fi ndFirst "[custId]=" & lngCust
to give you the 'first' customer with a ticketId that matches what was
entered / selected
you can change the 'where' (ie. "ticketId = " & me.combobox) clause to
get a different customer id- Hide quoted text -
- Show quoted text -
What I mean by go to the next customer is I want the mainform to
navigate to the customer that contains the entered ticketID. I don't
want the user type in a ticket ID and be given a customer ID, I want
the user to type a ticket ID and have the mainform navigate to the
appropriate customer (or customer ID)
I will try what you have typed above.
Robert Jacobs wrote:
>On Apr 10, 2:45 pm, Marshall Barton <marshbar...@wo wway.comwrote:
>Robert Jacobs wrote:
>I currently have a Mainform (Customers) and a Subform (Service Requests) with a one to many relationship (one customer, many service requests) with a CustomerID that is unique for each customer and is autofilled on the subform. Subform contains field called TicketID (which there could be multiple instances of and is not referenced on the mainform at all). I want to be able to type in a TicketID and have the mainform navigate to the correct customer. I have a cmbbox with following setup:
>SELECT DISTINCT [Service Records].[Ticket ID], [Service Records].CustomerID FROM [Service Records];
>Marshall gave the following advice to someone with a similar problem, but I can't get it to work. After Me.Recordset, there is no option for FindFirst, and I don't know what to put in the "[Serial]=" section. Any help is appreciated.
>Ok, the combo box is unbound ans you want it to make the main form display (navigate to) the record for the selected computer. If that's a correct understanding of your arrangement, then the code in the combo box's AfterUpdate event needs to be something like this:
>If Serial is a numeric type field:
Me.Recordset.Fi ndFirst "[Serial]=" & Me.combobox
>If serial is a Text field:
Me.Recordset.Fi ndFirst "[Serial]=""" & Me.combobox & """"
I am having trouble following what you want to happen here. I think you want the main form to navigate to the customer selected in the combo box. Assuming the combo box's BoundColumn is set to 1, I think you would use this kind of statement:
Me.Recordset.F indFirst "CustomerID =" & combobox.Column (1)
But, if you get a method not found error, it's probably because the form is using an ADO recordset instead of a DAO recordset. ADO uses the Find method instead of FindFirst.
OTOH, your main form should not be loading all the customer records, which would be a gross waste of resources. Instead the form should open with no customer records and only load one customer record after a selection is made in the combo box.
Ok. That's not what I was trying to accomplish. I will try to be a little more clear (sorry). I have multiple customers (which I do want loaded on the mainform (customers) when it opens, there are never more than 50 customers). Each customer is automatically assigned a customer ID (which he never sees-it is an autonumber that is irrelivant to the user, just there because there has to be a primary key). This customer ID is automatically propogated to the linked subform (service requests) for every record for that customer. In the subform there is a txtbox that holds a ticket ID (which is not necessarily unique, and each customer has multiple ticket IDs). I have also added an embedded subform (just there so he can see the ticket IDs and is not necessary) that shows all of the ticket IDs for the currently displayed customer. I have created a combobox that is on the mainform that is autopopulated with all of the ticket IDs for ALL customers. I would for him to be able to select a ticket ID (or type it in) and have the mainform go to the next customer that contains that ticket ID in one of it's records in the subform.
Now I am even more confused, because that's what I thought
you wanted and what I intended to happen when a user
selected a ticket in the combo box.
Can you explain what you did, what effect it produced and
what happened?
--
Marsh
On Apr 10, 3:59 pm, Marshall Barton <marshbar...@wo wway.comwrote:
Robert Jacobs wrote:
On Apr 10, 2:45 pm, Marshall Barton <marshbar...@wo wway.comwrote:
Robert Jacobs wrote:
I currently have a Mainform (Customers) and a Subform (Service
Requests) with a one to many relationship (one customer, many service
requests) with a CustomerID that is unique for each customer and is
autofilled on the subform. Subform contains field called TicketID
(which there could be multiple instances of and is not referenced on
the mainform at all). I want to be able to type in a TicketID and
have the mainform navigate to the correct customer. I have a cmbbox
with following setup:
SELECT DISTINCT [Service Records].[Ticket ID], [Service
Records].CustomerID FROM [Service Records];
Marshall gave the following advice to someone with a similar problem,
but I can't get it to work. After Me.Recordset, there is no option
for FindFirst, and I don't know what to put in the "[Serial]="
section. Any help is appreciated.
Ok, the combo box is unbound ans you want it to make the
main form display (navigate to) the record for the selected
computer. If that's a correct understanding of your
arrangement, then the code in the combo box's AfterUpdate
event needs to be something like this:
If Serial is a numeric type field:
Me.Recordset.Fi ndFirst "[Serial]=" & Me.combobox
If serial is a Text field:
Me.Recordset.Fi ndFirst "[Serial]=""" & Me.combobox & """"
I am having trouble following what you want to happen here.
I think you want the main form to navigate to the customer
selected in the combo box. Assuming the combo box's
BoundColumn is set to 1, I think you would use this kind of
statement:
Me.Recordset.Fi ndFirst "CustomerID =" & combobox.Column (1)
But, if you get a method not found error, it's probably
because the form is using an ADO recordset instead of a DAO
recordset. ADO uses the Find method instead of FindFirst.
OTOH, your main form should not be loading all the customer
records, which would be a gross waste of resources. Instead
the form should open with no customer records and only load
one customer record after a selection is made in the combo
box.
Ok. That's not what I was trying to accomplish. I will try to be a
little more clear (sorry). I have multiple customers (which I do want
loaded on the mainform (customers) when it opens, there are never more
than 50 customers). Each customer is automatically assigned a
customer ID (which he never sees-it is an autonumber that is
irrelivant to the user, just there because there has to be a primary
key). This customer ID is automatically propogated to the linked
subform (service requests) for every record for that customer. In the
subform there is a txtbox that holds a ticket ID (which is not
necessarily unique, and each customer has multiple ticket IDs). I
have also added an embedded subform (just there so he can see the
ticket IDs and is not necessary) that shows all of the ticket IDs for
the currently displayed customer. I have created a combobox that is
on the mainform that is autopopulated with all of the ticket IDs for
ALL customers. I would for him to be able to select a ticket ID (or
type it in) and have the mainform go to the next customer that
contains that ticket ID in one of it's records in the subform.
Now I am even more confused, because that's what I thought
you wanted and what I intended to happen when a user
selected a ticket in the combo box.
Can you explain what you did, what effect it produced and
what happened?
--
Marsh- Hide quoted text -
- Show quoted text -
I'm sorry. Marshall, your post worked. The only thing I can see that
doesn't work now, is that if there are multiple instances of one
ticket ID, it goes to the first one it finds, but won't go to the next
one if the first one it finds isn't the correct instance of it. For
instance, if Mike and Tom both have ticket ID 13225, and I type 13225
in the combo box, it will go to Mike (customer record). If I type it
again and hit enter, it stays on Mike. I can click the drop down,
find the two instances of 13225 and click on both of them and it will
take me to both Tom and Mike's accounts (when the correct one is
clicked on) but you never know which 13225 belongs to which customer.
Is there a way to make it go to the next customer containing 13225 if
needed?
THANK YOU SOOOO MUCH FOR YOUR HELP. WHAT YOU HAVE GIVEN ME SO FAR IS
INCREDIBLE!!!!
Robert Jacobs wrote:
>I'm sorry. Marshall, your post worked. The only thing I can see that doesn't work now, is that if there are multiple instances of one ticket ID, it goes to the first one it finds, but won't go to the next one if the first one it finds isn't the correct instance of it. For instance, if Mike and Tom both have ticket ID 13225, and I type 13225 in the combo box, it will go to Mike (customer record). If I type it again and hit enter, it stays on Mike. I can click the drop down, find the two instances of 13225 and click on both of them and it will take me to both Tom and Mike's accounts (when the correct one is clicked on) but you never know which 13225 belongs to which customer. Is there a way to make it go to the next customer containing 13225 if needed?
How about just adding the customer name to the combo box so
you can see which one you are selecting?
If you want some other mechanism to navigate between
customers with the same ticket number, then try using
buttons with the FindNext and FindPrevious methods. E.g.
Sub btnNextCust_Cli ck()
Dim varCurrRec As Variant
strCurrRec = Me.Bookmark
Me.Recordset.Fi ndNext "[customer ID]=" & Me.combobox
If Me.Recordset.No Match Then
Beep
Me.Bookmark = varCurrRec
End If
End Sub
Similarly for the btnPrevCust button.
--
Marsh This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Sabine Oebbecke |
last post by:
Hi Experts!
I have several forms and reports where controls get their values with
'Forms!MainForm!Control' or 'Forms!MainForm!Subform!Control' resp
'Forms!MainForm!Subform.Form!Control' which works without any problem
in Acc97, 2000 and 2002, but now in Access 2003 there seem to be a
problem with this.
A user is working with my app, and he uses an Access 2002 MDE in an
Access 2003 environment.
|
by: P Mitchell |
last post by:
Hello
I would like someone to be able to help with the updating of data in a
lookup list in a subform. In short, is their a VB instruction that is the
equivalent of performing the action of going to the menu and selecting
Records and then Refresh?
or
To explain, based on a three table system where cars participate in rallies,
|
by: planetthoughtful |
last post by:
Hi All,
I have a mainform with a subform in which I show some task summary
data.
On the mainform I have a number of unbound controls that reflect values
relevant to each task in the subform. The unbound controls are
populated in the subform's OnCurrent even from a number of different
tables related to the records in tbl_tasks, which is the recordset
displayed in the subform.
|
by: Macbane |
last post by:
Hi,
I have a 'main' form called frmIssues which has a subform control
(named linkIssuesDrug) containing the subform sfrmLink_Issues_Drugs.
A control button on the main form opens a pop-up form which allows me
to edit the record in the subform. What I want to happen is for
subform with the new edits to be updated on the main form when I close
the popup. I'm sure this is a very small bit of code in the the 'On
close' event for the popup...
|
by: John |
last post by:
I have a mainform with a subform. The subform is sorted on a specific field
and when I just open the subform, the sorting is OK. However, when I open
the mainform, the sorting in the subform is gone. The subform has no data
link to the mainform. How can I persist my sorting in the subform?
Thanks in advance,
john
| |
by: mseo |
last post by:
hi,
I have mainform with two cmdbuttons:
1- Save
2- Add Detail
the mainform has subform which is set to invisible, if I click Add Detail the subform appears, if not and user clicked Save the fields in the mainform will move to new blank record without having any details
what I need to do, when the user click save and the fields in the subform is not filled, In this case I need the save action (moving to next blank record) to be cancelled ...
|
by: Andy Hopper |
last post by:
I am getting the error "Object reference not set to an instance of an object." after launching a child form by a click of a button, reason why I know of is due to setting MdiParent to Null in order to launch this new form which leads to nulling out the reference of the busObject/main form, how can I restore the busObject/main form and avoid the error?
Here is some code:
1) Here where the new/child form is being launched:
...
|
by: neelsfer |
last post by:
I have a button on mainform that create current time.In the subform, i already have data in some of the fields.
I would like to highlight these specific rows in the subform (select them with mouse) and then add the value created by button on mainform to these selected rows in the subform at once.
Mainform = racef
Subform = timesf
field in subform = timestart
i currently use this code to add the value created by button on mainform,...
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |