I assume you're using ADO with an access database...
You need to access one of the dynamic properties of the field object in question. ADO objects have two kinds of properties - built-in and dynamic. Built-in properties are defined by ADO itself and are assigned to all objects. Dynamic...
Hmm. This is interesting, because most of the time, icons are stored as resources rather than straight .ico files.
I can't answer this, but hopefully I can point you in the right direction.
First of all, you will need to poke around in the registry. Say for example you want to find the icon...
You could try processing the image yourself pixel by pixel. The colour of each pixel is given by an 8 digit hex number defining the brightness of each of the red, green and blue pixels on a scale of 0 to 255 (&H0 to &HFF). For white this would be &H00FFFFFF,
ie. $H00<Red><Green><Blue>
where...
First of all, I wouldn't use the OLE control if I didn't have to. Secondly ,when you say you want to write to it, do you mean programmatically, or do you want the user of your program to actually be able to type in it as if they were using Word itself?
If the latter, then it might be worth you...
OK, this is all getting very confusing now! Sorry Jeff, you are of course right - if you have a type library then VB CAN access the object (although the TypeLib will need to contain the vtable for the object, not the DispIDs). If the TypeLib contains just the DispIDs (a dispinterface), then...
Whoa!
Ok, forget definitions of COM and ActiveX. Jeff is correct - they are essentially the same thing. You say you need to access a "native" COM component. I'm not sure exactly what you mean by that, but here goes anyway:
A COM component is defined as one that implements the...
I assume that the error is occurring on the forllowing line:
sql = "SELECT Titel FROM Skiva WHERE Snr = '" & Val(txtsnr.Text) & "'"
Is Snr a text field or a numeric field? If it's numeric then you will get the above error because you have put quotes around the value you are...
What version of vb are you using?
Assuming you are using vb5 or vb6 (I'm not sure about 4) then MichaelRed is wrong in saying that both forms must be open. If the value you have is in a text box on form1 (open) and you want to pass it to a text box on form2 (open or not), then the statement...
Is the formula you've shown the one in the main report?
If so, you need to initialise your variable - ie. you need to do something like
shared numbervar prevmonth:= 0;
rather than just
shared numbervar prevmonth;
If you don't initialise it like this in the main report, you will get a zero back.
What's the error? It's not 'Type Mismatch' is it?
selectionformula = "renewal.counter = variables" AND "order.counter = variables"
will return this error in VB.
From what I see, you need:
selectionformula = "renewal.counter = variables AND order.counter = variables"
It sounds like you need a UNION query for your report SELECT.
ie.
SELECT digits, street, apt [,1 ADDRTYPE]
FROM address
WHERE digits = digparam
AND street = strparam
AND apt = aptparam
UNION
SELECT wrongdigits, wrongstreet, wrongapt [,0 ADDRTYPE]
FROM wrongaddress
WHERE wrongdigits =...
You're using a MonthName command that I don't have (V7?). However, given a month in the form of a string, the following:
instr('FEBMARAPRMAYJUNJULAUGSEPOCTNOVDECJAN',left({?ReportDate},3))+2)/3
will return the NUMBER for the previous month. ie if {?ReportDate} is 'NOVEMBER', then it will...
Just out of interest, did you try the Replace solution?
ie. instead of using:
If InStr(1, cmbclub.Text, "'") > 0 Then
spot = InStr(1, cmbclub.Text, "'")
clublen = len(cmbclub.text)
fmlatext = Left(cmbclub.Text, spot - 1) & "' in {result.club} [1...
You could modify your code as follows
fmlatext = "{result.club} = '" & Replace(cmbclub.Text,"'","''") & "'"
report1.SelectionFormula = fmlatext
The Replace function is part of the VBA library if you are using VB6. The above will replace any instances of...
Hello,
Firstly, I am not sure what you mean by the following:
left('4',{result.club}) = 'Fred' and right('11',{result.club}) = 's Bass Club'"
The syntax of left is left(string,chars) which will return the left 'chars' characters of 'string'.
Anyway, I think this is all beside the point...
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.