Hi!
Is there a way to bind a label with a value obtained from a table(in its caption)
I'm using a datacombo that displays companies name and i need two values of the row, but I can obtain only the two values of the first row.
I need the two values to generate an Id, code:
sig =...
Hi, I'm using a DataCombo, in it, depending it's boudtext it will bind all my text box on my form, as follows:
Private rsPreliminar As New ADODB.Recordset
Private Sub DataCombo1_LostFocus()
If DataCombo1.BoundText = "GNP" Then
'Open recordset directly
With rsPreliminar...
Hi!
I'm using a form with 3 Adodc, I have a problem:
Record1
IDcomp:GNP
Address: Main St.
Ofnumber: 2
Record2
IDcomp: SCA
address: 5th Av
Ofnumber: 4
etc.
In a data combo I choose the company name, and I just store its Idcomp (in boundtext property), I need to obtain its Ofnumber in a...
No, I'm not using a Grid, I have done a form, in it I'm using a Data Combo, which shows companies name, depending of its Bound Text I need to change the Datafield and DataMember. DataSource is the same for all objects (Dataenvironment1)
If DataCombo1.BoundText = "GNP" Then...
Hey Antzz
Thanks for your info, but I'm new on Visual Basic, so How I can set the recordsource object? I need to do it with code or Do I need to build an object on my form?
Collin79
Hi
I'm using Dataenvironment to work with an Access Database, my question is how can I create an object or control to manipulate my records? (you know, next, last, etc.) I've tried with ADODC, Data, but I just can manipulate the database connection directly to Acces
Hope you help me
Thanks...
Hi:
I'm designing a form, in it I've done a command Buttom that it should save the captured data to an Access Database and I've wrote this code:
Private Sub Command1_Click()
If DataCombo1.BoundText = "GNP" Then
Dataenvironment1.rsGNP.AddNew
Dataenvironment1.rsGNP.Update
ElseIf...
Thanks all:
The error occurs over this line:
DataCombo1.DataField = Company
with this error:
Compile error:
type mismatch
and I can see highlighted .Datafield
Hi!!
I'm using a Data Combo object with this code:
Private Sub DataCombo1_LostFocus()
If DataCombo1.BoundText = "GNP" Then
DataCombo1.DataMember = rpGNP
DataCombo1.DataField = Company
ElseIf DataCombo1.BoundText = "SCA" Then
DataCombo1.DataMember = rpSCA...
Hi!
I need the Month and Year of the date system, I'm using Month(date) and Year(date) function and it works ok, but in month I need two digits (february=02 not 2) and in year I need two digits too (01 not 2001)
I've tried with Format() but I can't do that, any hint?
Thanks
Collin79
edderic:
I'm working with DAO
I've been reading the Programmer's Guide and I've used this on Save Button_click:
Set text1.Datasource= Data1
text1.Datafield= employee
But I can't do that it works
Any comment?
Collin79
Hi!
I'm new programing in VB, and I have a question, I'm using a combo box, depending of it's selected value, I'll use a table from an Access database, but I need to do a command that saves all the data captured, How can I do it, in Fox Pro I used to use the Replace command, but in VB don't...
Hi!
I'm using a DBCombo which data source is from an access database (I have employeename and employeId fields in my table), in the dbCombo I must display employee name but I need to store his ID, How can I do that?
Any hint or tip will be ok,
Thanks
Collin79
Hello!
I'm working with a form, in this, I've done a checkbox, if its value = 1 it will open a subform, it works ok, but I don't know how to synchronize data, I've done relationships in data enviroment with tables' IDs, any tip or hint will be helpful
Thanks
Collin79
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.