John,
---In MS_Access_Professionals@yahoogroups.com, <JohnV@...> wrote :
John Viescas, author
On Jul 29, 2017, at 22:33, khalidtanweerburrah@... [MS_Access_Professionals] <MS_Access_Professionals@yahoogroups.com> wrote:
---In MS_Access_Professionals@yahoogroups.com, <JohnV@...> wrote :
On Jul 29, 2017, at 21:03, khalidtanweerburrah@... [MS_Access_Professionals] <MS_Access_Professionals@yahoogroups.com> wrote:
---In MS_Access_Professionals@yahoogroups.com, <khalidtanweerburrah@...> wrote :
---In MS_Access_Professionals@yahoogroups.com, <duanehookom@...> wrote :
Khalid,
This could just be a simple spelling error that should have been found by setting Option Explicit and compiling your code.
Regards,
Duane
Sent: Saturday, July 29, 2017 12:09 PM
To: MS_Access_Professionals@yahoogroups.com
Subject: Re: [MS_AccessPros] Populating a combo box
John,
---In MS_Access_Professionals@yahoogroups.com, <JohnV@...> wrote :
Me.cboReceiptsSubID.RowSource = "SELECT DISTINCT ReceiptSubID.ReceiptsSubID, ReceiptSubID.ReceiptsSubID_Description " & _
"FROM ReceiptSubID " & _
"WHERE Left(cboReceiptsSubID,3) = " & Me.cboRecieptsID
John Viescas, author
If you're at all interested in Microsoft Access or SQL Server, this is the place to be! Check out the book recommendations and all the cool links! |
On Jul 29, 2017, at 18:38, khalidtanweerburrah@... [MS_Access_Professionals] <MS_Access_Professionals@yahoogroups.com> wrote:
Hi all,
On my Continuous Form "Receipts" I have a Combo Box "cboReceiptsID" with Control Source "ReceiptsID" and Row Source:
SELECT ReceiptID.ReceiptsID, ReceiptID.ReceiptID_Description
FROM ReceiptID
ORDER BY ReceiptID.ReceiptsID;
cboReceiptsSubID is also Text Field
"cboReceiptsSubID" --> Control Source "ReceiptsSubID"
Row Source:
SELECT ReceiptSubID.ReceiptsSubID, ReceiptSubID.ReceiptsSubID_Description
FROM ReceiptSubID
ORDER BY ReceiptSubID.ReceiptsSubID;
I am struggling with following code and getting nothing on combo box "cboReceiptsSubID"
Private Sub cboReceiptsID_AfterUpdate()
Me.cboReceiptsSubID.RowSource = "SELECT DISTINCT ReceiptSubID.ReceiptsSubID, ReceiptSubID.ReceiptsSubID_Description " & _
"FROM ReceiptSubID " & _
"WHERE Left(cboReceiptsSubID,3) = cboReceiptsID"
End Sub
Posted by: khalidtanweerburrah@yahoo.com
Reply via web post | • | Reply to sender | • | Reply to group | • | Start a New Topic | • | Messages in this topic (10) |
Tidak ada komentar:
Posting Komentar