Re: $$Excel-Macros$$ Re: Excel to Access Data

2012-09-20 Thread wirelesscellularguy
excel-...@googlegroups.com [mailto: > excel-...@googlegroups.com ] *On Behalf Of *Swapnil Palande > *Sent:* 14 September 2012 11:14 > *To:* excel-...@googlegroups.com > *Subject:* Re: $$Excel-Macros$$ Re: Excel to Access Data > > > > Hi, > > > > If you want to

RE: $$Excel-Macros$$ Re: Excel to Access Data

2012-09-14 Thread Swapnil Palande
l-macros@googlegroups.com] *On Behalf Of *Swapnil Palande > *Sent:* 14 September 2012 11:14 > *To:* excel-macros@googlegroups.com > *Subject:* Re: $$Excel-Macros$$ Re: Excel to Access Data > > ** ** > > Hi, > > > > If you want to populate combo boxes

RE: $$Excel-Macros$$ Re: Excel to Access Data

2012-09-14 Thread Rajan_Verma
cel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of Swapnil Palande Sent: 14 September 2012 11:14 To: excel-macros@googlegroups.com Subject: Re: $$Excel-Macros$$ Re: Excel to Access Data Hi, If you want to populate combo boxes using minimum code then create saperate f

Re: $$Excel-Macros$$ Re: Excel to Access Data

2012-09-13 Thread Swapnil Palande
Hi, If you want to populate combo boxes using minimum code then create saperate function to populate combobox and then call that function for each combobox. Following is the sample code: 1. Create function to populate combobox Function populateCombo(rst as ADODB.Recordset, cmb as ComboBox)

Re: $$Excel-Macros$$ Re: Excel to Access Data

2012-09-13 Thread wirelesscellularguy
Hi Swapnil, I could populate the 2ns combo-box by repeating the code used to populate ComboBox1. But in this way, if i need to populate other ActiveX Controls, the code size will become unnecessarily large. Can it be done with few code lines? I am pasting the code used by me to populate the two

$$Excel-Macros$$ Re: Excel to Access Data

2012-09-13 Thread wirelesscellularguy
Hi Swapnil, Please go thru the procedureand suggest to modify the code for the 2nd combo-box With com .ActiveConnection = con .CommandText = "Select DISTINCT [Date] from DR ORDER BY [Date]" .CommandType = adCmdText End With Set rst = New ADODB.Recordset

$$Excel-Macros$$ Re: Excel to Access Data

2012-09-13 Thread wirelesscellularguy
Hi Swapnil, I have done that. And I got the unique values in the drop down. But in the second combo-box, i am trying to retrieve other category with same procedure. But in vain. Can you please suggest? On Thursday, August 2, 2012 6:59:45 PM UTC+5:30, wirelesscellularguy wrote: > > Hi All, > > I

Re: $$Excel-Macros$$ Re: Excel to Access Data

2012-09-13 Thread Swapnil Palande
Hi, You can populate the combo-box with unique items using "Select distinct " query Do following steps: 1. Store "Select distinct" query data in Record Set 2. Loop through record set and add values to the Combo Box Regards, Swapnil. On Thu, Sep 13, 2012 at 11:21 AM, wirelesscellularguy < wire

$$Excel-Macros$$ Re: Excel to Access Data

2012-09-12 Thread wirelesscellularguy
Thanks Noorain. I couldn't reply in time as I was not keeping well. I worked with the procedure suggested by Swapnil and moved ahead. And now I got an obstruction. In the excel sheet, I am using an combo-box and want to populate the combo-box with 'Items' category in the Access Database. The 'I

Re: $$Excel-Macros$$ Re: Excel to Access Data

2012-08-04 Thread xlstime
use odbc connection for export and import data from access to excel On Fri, Aug 3, 2012 at 6:08 PM, wirelesscellularguy < wirelesscellular...@gmail.com> wrote: > > > On Thursday, August 2, 2012 6:59:45 PM UTC+5:30, wirelesscellularguy wrote: >> >> Hi All, >> >> I am trying to relate Access data

$$Excel-Macros$$ Re: Excel to Access Data

2012-08-03 Thread wirelesscellularguy
Hi Swapnil, Many thanks. I will practice with the samples shared by you and will consult you in case I find any issues. Regards, Wireless On Friday, August 3, 2012 6:08:55 PM UTC+5:30, wirelesscellularguy wrote: > > > > On Thursday, August 2, 2012 6:59:45 PM UTC+5:30, wirelesscellularguy wrote:

$$Excel-Macros$$ Re: Excel to Access Data

2012-08-03 Thread wirelesscellularguy
On Thursday, August 2, 2012 6:59:45 PM UTC+5:30, wirelesscellularguy wrote: > > Hi All, > > I am trying to relate Access data & queries to excel. The excel will be > the user interface. This excel will contain the various buttons to get > specific informations and clicking these buttons will fe