I'm a newbie to SQL Server. I'm trying to create a database where multiple fields in a table can point to one field in a second table. I create a foreign key from Field1 in Table1 to Field1 in Table2. I then try to create a Foreign Key from Field2 in Table1 to Field1 in Table2. It won't let me...
...I have a data file that is over 2GB and I need a file size reading.
below is my current code
Meth1
unsigned long GetFileLength ( FILE * fileName)
{
unsigned long pos = ftell(fileName);
unsigned long len = 0;
fseek ( fileName, 0L, SEEK_END );
len = ftell (...
...Function PointerToString(lpszString As Long) As String
Dim lpszStr1 As String, lpszStr2 As String, nRet As Long
lpszStr1 = String(1000, "*")
nRet = lstrcpyW(lpszStr1, lpszString)
lpszStr2 = (StrConv(lpszStr1, vbFromUnicode))
PointerToString = Left(lpszStr2, InStr(lpszStr2, Chr$(0))...
try downgrading mdac to 2.5
and making sure u do not have a circular refrence
IE you make a change then the bound control does a change and so on
Failing that you will have to post your code so we can look at it for you
http://www.vbaccelerator.com/home/VB/Code/Controls/S_Grid/bugTrak11-5.asp
and here
http://www.vbaccelerator.com/home/VB/Code/Libraries/Subclassing/Adding_Scroll_Bars_To_Forms__PictureBoxes_and_UserControls/article.asp
hope this helps
If i am understand your question you want to seek to a position in a data file and get some data ??
dim iFile as Integer
Dim RetStr as string
open "Filename" for binary as ifile
seek iFile,YourPos
RetStr = space(3) 'Set the size of the string to 3 bytes
get iFile,,RetStr
close ifile...
How do you want it displayed. In a grid or a simple textbox like HarleyQuinn has posted
just note that if you have a space in your field name then you will need to do the following RS("Your Field Name") and not RS!YourFieldName
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.