Connecting Tech Pros Worldwide Help | Site Map

me.cb.Type?

 
LinkBack Thread Tools Search this Thread
  #1  
Old November 13th, 2005, 07:17 AM
Tim
Guest
 
Posts: n/a
Default me.cb.Type?

Hello,

I'm trying to create a change log for database
I get a runtime error 438 while tying to get the type of a bound
combo-box (table/query) control.

How am I supposed to get the type. It even works for other combobox
with a value list. What don't I understand. I'm using DAO. I would like
the datatype of the field and not the data entered.

Thanks

Tim


  #2  
Old November 13th, 2005, 07:17 AM
Tim
Guest
 
Posts: n/a
Default Re: me.cb.Type?

Forgot to add that I'm using Access 2002

Tim

  #3  
Old November 13th, 2005, 07:17 AM
pietlinden@hotmail.com
Guest
 
Posts: n/a
Default Re: me.cb.Type?


Tim wrote:[color=blue]
> Forgot to add that I'm using Access 2002
>
> Tim[/color]

you may need to go through the columns collection, as a combobox can
have any number of columns. So it's probably
cboSomeCombo.Column(x).Type

  #4  
Old November 13th, 2005, 07:18 AM
Tim Marshall
Guest
 
Posts: n/a
Default Re: me.cb.Type?

Tim Marshall wrote:
[color=blue]
> Tim wrote:
>[color=green]
>> How am I supposed to get the type. It even works for other combobox
>> with a value list. What don't I understand. I'm using DAO. I would like
>> the datatype of the field and not the data entered.[/color]
>
>
> me.cb.RowSourceType[/color]

Sorry, misread, disregard.
--
Tim http://www.ucs.mun.ca/~tmarshal/
^o<
/#) "Burp-beep, burp-beep, burp-beep?" - Quaker Jake
/^^ "Whatcha doin?" - Ditto "TIM-MAY!!" - Me
  #5  
Old November 13th, 2005, 07:19 AM
Tim Marshall
Guest
 
Posts: n/a
Default Re: me.cb.Type?

Tim wrote:
[color=blue]
> How am I supposed to get the type. It even works for other combobox
> with a value list. What don't I understand. I'm using DAO. I would like
> the datatype of the field and not the data entered.[/color]

me.cb.RowSourceType

--
Tim http://www.ucs.mun.ca/~tmarshal/
^o<
/#) "Burp-beep, burp-beep, burp-beep?" - Quaker Jake
/^^ "Whatcha doin?" - Ditto "TIM-MAY!!" - Me
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,662 network members.